Update README.md
Browse files
README.md
CHANGED
@@ -9,7 +9,7 @@ language:
|
|
9 |
- es
|
10 |
---
|
11 |
|
12 |
-
# Roberta_finetuning_semantic_similarity_stsb_multi_mt
|
13 |
|
14 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 1024 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
15 |
|
@@ -29,7 +29,7 @@ Then you can use the model like this:
|
|
29 |
from sentence_transformers import SentenceTransformer
|
30 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
31 |
|
32 |
-
model = SentenceTransformer('Roberta_finetuning_semantic_similarity_stsb_multi_mt')
|
33 |
embeddings = model.encode(sentences)
|
34 |
print(embeddings)
|
35 |
```
|
@@ -55,8 +55,8 @@ def mean_pooling(model_output, attention_mask):
|
|
55 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
56 |
|
57 |
# Load model from HuggingFace Hub
|
58 |
-
tokenizer = AutoTokenizer.from_pretrained('Roberta_finetuning_semantic_similarity_stsb_multi_mt')
|
59 |
-
model = AutoModel.from_pretrained('Roberta_finetuning_semantic_similarity_stsb_multi_mt')
|
60 |
|
61 |
# Tokenize sentences
|
62 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
|
|
9 |
- es
|
10 |
---
|
11 |
|
12 |
+
# Maite89/Roberta_finetuning_semantic_similarity_stsb_multi_mt
|
13 |
|
14 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 1024 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
15 |
|
|
|
29 |
from sentence_transformers import SentenceTransformer
|
30 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
31 |
|
32 |
+
model = SentenceTransformer('Maite89/Roberta_finetuning_semantic_similarity_stsb_multi_mt')
|
33 |
embeddings = model.encode(sentences)
|
34 |
print(embeddings)
|
35 |
```
|
|
|
55 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
56 |
|
57 |
# Load model from HuggingFace Hub
|
58 |
+
tokenizer = AutoTokenizer.from_pretrained('Maite89/Roberta_finetuning_semantic_similarity_stsb_multi_mt')
|
59 |
+
model = AutoModel.from_pretrained('Maite89/Roberta_finetuning_semantic_similarity_stsb_multi_mt')
|
60 |
|
61 |
# Tokenize sentences
|
62 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|