Sentence Similarity
sentence-transformers
Safetensors
mpnet
feature-extraction
dense
Generated from Trainer
dataset_size:23156
loss:CosineSimilarityLoss
text-embeddings-inference
Instructions to use Gaurav30/mpnet-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Gaurav30/mpnet-finetuned with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Gaurav30/mpnet-finetuned") sentences = [ "The rules established in Section 70 were repealed as of January 1, 1957.", "Section 70:\n Rules of Procedure.\n Rep. by s. 7 ibid, (w.e.f. 1-1-1957).", "Section ORDER V - Rule 2:\n Copy of plaint annexed to summons.\n Every summon shall be accompanied by a copy of the plaint.", "Section ORDER XLV - Rule 6:\n Effect of refusal of certificate.\n Where such certificate is refused, the petition shall be dismissed." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 100 Bytes
fa7abfb | 1 2 3 4 | {
"module_input_name": "sentence_embedding",
"module_output_name": "sentence_embedding"
} |