Sentence Similarity
sentence-transformers
PyTorch
Slovak
roberta
feature-extraction
sts
text-embeddings-inference
Instructions to use kinit/slovakbert-sts-stsb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use kinit/slovakbert-sts-stsb with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("kinit/slovakbert-sts-stsb") sentences = [ "Izrael uskutočnil letecké údery v blízkosti Damasku.", "Izrael uskutočnil vzdušný útok na Sýriu.", "Pes leží na gauči a má hlavu na bielom vankúši." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download modules.json from kinit/slovakbert-sts-stsb: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/kinit/slovakbert-sts-stsb/resolve/main/modules.json
- Command line
-
hf download hf://kinit/slovakbert-sts-stsb/modules.json
-
curl -L -o modules.json https://huggingface.co/kinit/slovakbert-sts-stsb/resolve/main/modules.json
229 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| } | |
| ] |