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: 432 Bytes
fa7abfb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [
{
"idx": 0,
"name": "0",
"path": "",
"type": "sentence_transformers.base.modules.transformer.Transformer"
},
{
"idx": 1,
"name": "1",
"path": "1_Pooling",
"type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling"
},
{
"idx": 2,
"name": "2",
"path": "2_Normalize",
"type": "sentence_transformers.base.modules.normalize.Normalize"
}
] |