Sentence Similarity
sentence-transformers
PyTorch
Safetensors
English
French
mpnet
feature-extraction
text-embeddings-inference
Instructions to use raphaelsty/semanlink_all_mpnet_base_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use raphaelsty/semanlink_all_mpnet_base_v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("raphaelsty/semanlink_all_mpnet_base_v2") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
semanlink_all_mpnet_base_v2
This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
semanlink_all_mpnet_base_v2 has been fine-tuned on the knowledge graph Semanlink via the library MKB on the link-prediction task. The model is dedicated to the representation of both technical and generic terminology in machine learning, NLP, news.
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 = ["Machine Learning", "Geoffrey Hinton"]
model = SentenceTransformer('raphaelsty/semanlink_all_mpnet_base_v2')
embeddings = model.encode(sentences)
print(embeddings)
- Downloads last month
- 8