Sentence Similarity
sentence-transformers
PyTorch
Safetensors
roberta
feature-extraction
Generated from Trainer
dataset_size:16216
loss:TripletLoss
text-embeddings-inference
Instructions to use LATEiimas/roberta-large-sentence-transformer-embedding-finetuned-pt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use LATEiimas/roberta-large-sentence-transformer-embedding-finetuned-pt with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("LATEiimas/roberta-large-sentence-transformer-embedding-finetuned-pt") sentences = [ "<s>Moscovo alertar repetidamente nato brincar fogo fornecer arma ucrâni envio estrangeiro arma alvo legítimo Rússia Kremlin dmitry peskov afirmar Rússia ver confronto direto Rússia nato inevitável ocidente enviar tropa ucrâniar sugerir agressão potencial atitude característico antagonista procurar causar conflito instabilidade</s><s>Moscovo</s>", "Heroes or guardians who protect values or communities, ensuring safety and upholding justice. They often take on roles such as law enforcement officers, soldiers, or community leaders", "Heroes or guardians who protect values or communities, ensuring safety and upholding justice. They often take on roles such as law enforcement officers, soldiers, or community leaders", "Rebels, revolutionaries, or freedom fighters who challenge the status quo and fight for significant change or liberation from oppression. They are often seen as champions of justice and freedom." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!