Sentence Similarity
sentence-transformers
Safetensors
English
distilbert
feature-extraction
loss:TripletLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use tomaarsen/distilbert-base-uncased-wikipedia-sections-triplet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/distilbert-base-uncased-wikipedia-sections-triplet with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tomaarsen/distilbert-base-uncased-wikipedia-sections-triplet") sentences = [ "All charts rank the top 100.", "There are two primary charts: Gaon Album Chart and Gaon Digital Chart.", "Regional Preferente de Cataluña (3): 1999-00, 2002-03, 2008-09.", "Kyūsaku was born in Fukuoka city, Fukuoka prefecture as Sugiyama Naoki." ] 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!