Update README.md
Browse files
README.md
CHANGED
|
@@ -16,7 +16,7 @@ language:
|
|
| 16 |
library_name: sentence-transformers
|
| 17 |
---
|
| 18 |
|
| 19 |
-
#
|
| 20 |
|
| 21 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
| 22 |
|
|
@@ -36,7 +36,7 @@ Then you can use the model like this:
|
|
| 36 |
from sentence_transformers import SentenceTransformer
|
| 37 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
| 38 |
|
| 39 |
-
model = SentenceTransformer('
|
| 40 |
embeddings = model.encode(sentences)
|
| 41 |
print(embeddings)
|
| 42 |
```
|
|
@@ -62,8 +62,8 @@ def mean_pooling(model_output, attention_mask):
|
|
| 62 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
| 63 |
|
| 64 |
# Load model from HuggingFace Hub
|
| 65 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
| 66 |
-
model = AutoModel.from_pretrained('
|
| 67 |
|
| 68 |
# Tokenize sentences
|
| 69 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
|
|
|
| 16 |
library_name: sentence-transformers
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# QulBERT
|
| 20 |
|
| 21 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
| 22 |
|
|
|
|
| 36 |
from sentence_transformers import SentenceTransformer
|
| 37 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
| 38 |
|
| 39 |
+
model = SentenceTransformer('FDSRashid/QulBERT')
|
| 40 |
embeddings = model.encode(sentences)
|
| 41 |
print(embeddings)
|
| 42 |
```
|
|
|
|
| 62 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
| 63 |
|
| 64 |
# Load model from HuggingFace Hub
|
| 65 |
+
tokenizer = AutoTokenizer.from_pretrained('FDSRashid/QulBERT')
|
| 66 |
+
model = AutoModel.from_pretrained('FDSRashid/QulBERT')
|
| 67 |
|
| 68 |
# Tokenize sentences
|
| 69 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|