Viona's picture
Update README.md
fd6c5d0
|
raw
history blame
835 Bytes
metadata
pipeline_tag: sentence-similarity
language: english
tags:
  - sentence-transformers
  - sentence-similarity
  - transformers

recobo/agri-sentence-transformer

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.

Usage (Sentence-Transformers)

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)