README: Replace MODEL_NAME
Browse files
README.md
CHANGED
@@ -30,7 +30,7 @@ Then you can use the model like this:
|
|
30 |
from sentence_transformers import SentenceTransformer
|
31 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
32 |
|
33 |
-
model = SentenceTransformer('
|
34 |
embeddings = model.encode(sentences)
|
35 |
print(embeddings)
|
36 |
```
|
@@ -53,8 +53,8 @@ def cls_pooling(model_output, attention_mask):
|
|
53 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
54 |
|
55 |
# Load model from HuggingFace Hub
|
56 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
57 |
-
model = AutoModel.from_pretrained('
|
58 |
|
59 |
# Tokenize sentences
|
60 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
@@ -76,7 +76,7 @@ print(sentence_embeddings)
|
|
76 |
|
77 |
<!--- Describe how your model was evaluated -->
|
78 |
|
79 |
-
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=
|
80 |
|
81 |
|
82 |
|
|
|
30 |
from sentence_transformers import SentenceTransformer
|
31 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
32 |
|
33 |
+
model = SentenceTransformer('BAAI_bge-base-en-v1.5-tunned-for-blender-issues')
|
34 |
embeddings = model.encode(sentences)
|
35 |
print(embeddings)
|
36 |
```
|
|
|
53 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
54 |
|
55 |
# Load model from HuggingFace Hub
|
56 |
+
tokenizer = AutoTokenizer.from_pretrained('BAAI_bge-base-en-v1.5-tunned-for-blender-issues')
|
57 |
+
model = AutoModel.from_pretrained('BAAI_bge-base-en-v1.5-tunned-for-blender-issues')
|
58 |
|
59 |
# Tokenize sentences
|
60 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
|
|
76 |
|
77 |
<!--- Describe how your model was evaluated -->
|
78 |
|
79 |
+
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=BAAI_bge-base-en-v1.5-tunned-for-blender-issues)
|
80 |
|
81 |
|
82 |
|