Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:26
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use chelleboyer/legal-ft-6c2775cc-995a-41a8-b19f-aadf6fe29c2a with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use chelleboyer/legal-ft-6c2775cc-995a-41a8-b19f-aadf6fe29c2a with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("chelleboyer/legal-ft-6c2775cc-995a-41a8-b19f-aadf6fe29c2a") sentences = [ "Which river's length is highlighted in the context of Minneapolis's miles of trails?", "The ethnically diverse Broad Ripple Village has an array of cafes, art galleries, shops and brewpubs in cottages and pastel storefronts. We especially love Public Greens (Indy's first non-profit restaurant) and The Cake Bake Shop (a Parisian bakery serving macarons and cupcakes). Walk off meals at White River State Park, with paths leading past the Indianapolis Zoo, Indiana State Museum and the Eiteljorg Museum of American Indians and Western Art.\n\n\n \n06\nof 25\n\n\n Custer State Park, South Dakota", "03\nof 25\n\n\n Minneapolis \n \n\n\n\n\n\n \n Minnehaha Falls.\nDavid Nevala\n\n The larger of the Twin Cities does everything on a grand scale. It has more theater seats per capita than any city outside New York, it has the largest mall in America, and its miles of trails trace the second-longest river in America-the Mississippi.", "25 Perfect Weekend Getaways\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n\n\n\n\nSkip to content\n\n\n\n\n\n\n\n\n\n\n\n\n\n Midwest Living\n\n\n \n\n\n \n\n\n\n\n\n\nSearch\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\nPlease fill out this field.\n\n\n\n\n\n \n\n\n\nLog In\n\n \n\n\n\n\n\nMy Account\n\n\n\n\n\n\n\n Log Out\n \n\n\n\n\n\nMagazine\n\n\n\n\n\n\n\n Subscribe\n \n\n Current Issue\n \n\n Give a Gift Subscription\n \n\n Manage Your Subscription\n \n\n\n\nNewsletters\n\n\n Sweepstakes\n \n\n Subscribe\n \n\n\n\n\n\n\n\n\nSearch\n\n\n\n\n\n\n\n\n \n\n\n\nPlease fill out this field.\n\n\n\n\n\n\nTrip Ideas\n\n\n\n\n\n\n\n\n\n\n\nTrip Ideas\n\n\n\n Around the Midwest\n \n\n Beyond the Midwest\n \n\n Weekend Getaways\n \n\n Nature Travel\n \n\n State and National Parks\n \n\n Family Travel" ] 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!