Downloads · 30 days
224
22% of all-time downloads
TdelaSelle/PatriLaSE
PatriLaSE is a sentence similarity model from TdelaSelle. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as cc-by-4.0.
This is a Latin sentence-transformers model finetuned from bowphs/LaBerta. It maps Latin sentences and paragraphs to a dense vector space and can be used for semantic correspondances detection or information retrieval…
Downloads · 30 days
224
22% of all-time downloads
All-time downloads
1K
Public
Parameters
126M
504 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors504 MB · 99%
From the Hugging Face model README
This is a Latin sentence-transformers model finetuned from bowphs/LaBerta. It maps Latin sentences and paragraphs to a dense vector space and can be used for semantic correspondances detection or information retrieval (e.g. for detection of quotations and allusions).
SentenceTransformer(
(0): Transformer(transformer_task=feature-extraction, architecture=RobertaModel)
(1): Pooling(embedding_dimension=768, pooling_mode=cls)
)
pip install -U sentence-transformers
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Tdelaselle/PatriLaSE")
sentences = [
"quis ergo sanat omnes languores tuos nisi qui propitius fit omnibus iniquitatibus tuis?",
"qui propitiatur omnibus iniquitatibus tuis qui sanat omnes infirmitates tuas",
]
embeddings = model.encode(sentences)
print(embeddings.shape)