Update README.md
Browse files
README.md
CHANGED
|
@@ -8,7 +8,7 @@ tags:
|
|
| 8 |
|
| 9 |
---
|
| 10 |
|
| 11 |
-
#
|
| 12 |
|
| 13 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
| 14 |
|
|
@@ -51,8 +51,8 @@ def cls_pooling(model_output, attention_mask):
|
|
| 51 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
| 52 |
|
| 53 |
# Load model from HuggingFace Hub
|
| 54 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
| 55 |
-
model = AutoModel.from_pretrained('
|
| 56 |
|
| 57 |
# Tokenize sentences
|
| 58 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
|
|
|
| 8 |
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# SproutsAI/embedding-model
|
| 12 |
|
| 13 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
| 14 |
|
|
|
|
| 51 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
| 52 |
|
| 53 |
# Load model from HuggingFace Hub
|
| 54 |
+
tokenizer = AutoTokenizer.from_pretrained('SproutsAI/embedding-model')
|
| 55 |
+
model = AutoModel.from_pretrained('SproutsAI/embedding-model')
|
| 56 |
|
| 57 |
# Tokenize sentences
|
| 58 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|