Sentence Similarity
sentence-transformers
Safetensors
mpnet
feature-extraction
Generated from Trainer
dataset_size:24004
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use hamzax001/sentence_seg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use hamzax001/sentence_seg with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("hamzax001/sentence_seg") sentences = [ "the revisions remove unnecessary and outdated content from volume i, and relocate basic instructions and technical explanations to a newly designed web page on the commission's website.", "\\1\\ we originally adopted the filer manual on april 1, 1993, with an effective date of april 26, 1993.", "\\6\\ updates to these taxonomies and schemas are ministerial in nature.", "the two commenters expressed concern that the proposed ea see user fee would be used to fund the program for enrollment and renewal of enrolled agents in addition to recovering the irs's cost of overseeing the ea see." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K