Downloads · 30 days
199
21% of all-time downloads
sebastian-reichbauer/DistilSPhilBERTa
DistilSPhilBERTa is a sentence similarity model from sebastian-reichbauer. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
Latin and Ancient Greek cross-lingual sentence mining and similarity detection is a relatively new field.
Downloads · 30 days
199
21% of all-time downloads
All-time downloads
952
Public
Parameters
135M
541 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors541 MB · 99%
From the Hugging Face model README
Latin and Ancient Greek cross-lingual sentence mining and similarity detection is a relatively new field.
In our paper Evaluating Latin and Ancient Greek Sentence Alignment through Parallel Sentence Mining we introduce DistilSPhilBERTa, a sentence-transformers model finetuned from bowphs/SPhilBerta for exactly these tasks. It achieves significantly better results in our custom sentence mining benchmark than SPhilBERTa and other classical cross-lingual language models. It maps sentences & paragraphs to a vector space and can be used for semantic textual similarity, semantic search, parallel sentence mining and more.
With the Sentence Transformers library installed, you can use the model in the following way:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("sebastian-reichbauer/DistilSPhilBERTa")
# Run inference
sentences = [
'Νομίζω οὖν τοῦτο καλὸν ὑπάρχειν διὰ τὴν ἐνεστῶσαν ἀνάγκην, ὅτι καλὸν ἀνθρώπῳ τὸ οὕτως εἶναι.'
]
embeddings = model.encode(sentences)
print(embeddings)