Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
Generated from Trainer
dataset_size:3668
loss:OnlineContrastiveLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use ejun26/minilm-mrpc-clean-retrieval with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ejun26/minilm-mrpc-clean-retrieval with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ejun26/minilm-mrpc-clean-retrieval") sentences = [ "The transaction will expand Callebaut 's sales revenues from its consumer products business to 45 percent from 23 percent .", "The transaction will expand Callebaut 's sales revenues from its consumer products business by around 45 percent to some one-third of total sales .", "Yeager said the incident appeared to be isolated , but the suspect showed tendencies of being a prior offender .", "\" We must not engage in borough warfare , \" the Comptroller William Thompson told the Council , according to his written testimony ." ] 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!