File size: 1,138 Bytes
3363582 ca788f7 3363582 ab52c51 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
---
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
language:
- en
- fr
license: apache-2.0
---
## `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](http://www.semanlink.net/sl/home?lang=fr) via the library [MKB](https://github.com/raphaelsty/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:
```python
from sentence_transformers import SentenceTransformer
sentences = ["Machine Learning", "Geoffrey Hinton"]
model = SentenceTransformer('raphaelsty/semanlink_all_mpnet_base_v2')
embeddings = model.encode(sentences)
print(embeddings)
``` |