Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- es
|
4 |
+
tags:
|
5 |
+
- es
|
6 |
+
- Sentence Similarity
|
7 |
+
license: "apache-2.0"
|
8 |
+
datasets:
|
9 |
+
- stsb_multi_mt(es)
|
10 |
+
metrics:
|
11 |
+
- Cosine-Similarity
|
12 |
+
- Manhattan-Distance
|
13 |
+
- Euclidean-Distance
|
14 |
+
- Dot-Product-Similarity
|
15 |
+
---
|
16 |
+
# Training
|
17 |
+
This model was built using Sentence Transformer.
|
18 |
+
## Model description
|
19 |
+
Input for the model: Any spanish text
|
20 |
+
Output for the model: encoded text
|
21 |
+
## Evaluation
|
22 |
+
```
|
23 |
+
- Cosine-Similarity : Pearson: 0.8056 Spearman: 0.7993
|
24 |
+
- Manhattan-Distance: Pearson: 0.7986 Spearman: 0.7953
|
25 |
+
- Euclidean-Distance: Pearson: 0.7991 Spearman: 0.7960
|
26 |
+
- Dot-Product-Similarity: Pearson: 0.7658 Spearman: 0.7542
|
27 |
+
```
|
28 |
+
#### How to use
|
29 |
+
Here is how to use this model to get the features of a given text in *PyTorch*:
|
30 |
+
```python
|
31 |
+
# You can include sample code which will be formatted
|
32 |
+
from sentence_transformers import SentenceTransformer
|
33 |
+
model = SentenceTransformer()
|
34 |
+
sentences = ["mi nombre es Siddhartha","¿viajas a kathmandu?"]
|
35 |
+
|
36 |
+
sentence_embeddings = model.encode(sentences)
|
37 |
+
print(sentence_embeddings)
|
38 |
+
```
|
39 |
+
## Training procedure
|
40 |
+
I trained on the dataset on the [dccuchile/bert-base-spanish-wwm-cased](https://huggingface.co/dccuchile/bert-base-spanish-wwm-cased).
|
41 |
+
|