Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: sentence-similarity
|
3 |
+
language: english
|
4 |
+
tags:
|
5 |
+
- sentence-transformers
|
6 |
+
- sentence-similarity
|
7 |
+
- transformers
|
8 |
+
---
|
9 |
+
# recobo/agri-sentence-transformer
|
10 |
+
|
11 |
+
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 512 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
12 |
+
This model was built using recobo/agriculture-bert-uncased, which is a BERT model trained on 6.5 million passages from the agricultural domain. Hence, this model is expected to perform well on sentence similarity tasks specifically for agricultural text data.
|
13 |
+
## Usage (Sentence-Transformers)
|
14 |
+
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
|
15 |
+
```
|
16 |
+
pip install -U sentence-transformers
|
17 |
+
```
|
18 |
+
Then you can use the model like this:
|
19 |
+
```python
|
20 |
+
from sentence_transformers import SentenceTransformer
|
21 |
+
sentences = ["A man is eating food.", "A man is eating a piece of bread"]
|
22 |
+
|
23 |
+
model = SentenceTransformer('recobo/agri-sentence-transformer')
|
24 |
+
embeddings = model.encode(sentences)
|
25 |
+
print(embeddings)
|