Downloads · 30 days
125
3% of all-time downloads
recobo/agri-sentence-transformer
agri-sentence-transformer is a sentence similarity model from recobo. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
This is a sentence-transformers model: It maps sentences & paragraphs to a 512 dimensional dense vector space and can be used for tasks like clustering or semantic search. This model was built using recobo/agriculture…
Downloads · 30 days
125
3% of all-time downloads
All-time downloads
3.6K
Public
Repo size
1.3 GB
Likes
4
Public
Click a slice to open those files.
.bin880 MB · 100%
From the Hugging Face model README
This is a sentence-transformers model: It maps sentences & paragraphs to a 512 dimensional dense vector space and can be used for tasks like clustering or semantic search. 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.
Using this model becomes easy when you have sentence-transformers installed:
pip install -U sentence-transformers
Then you can use the model like this:
from sentence_transformers import SentenceTransformer
sentences = ["A man is eating food.", "A man is eating a piece of bread"]
model = SentenceTransformer('recobo/agri-sentence-transformer')
embeddings = model.encode(sentences)
print(embeddings)