Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
dense
Generated from Trainer
dataset_size:12582766
loss:CoSENTLoss
text-embeddings-inference
Instructions to use KhaledReda/all-MiniLM-L6-v34-pair_score with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use KhaledReda/all-MiniLM-L6-v34-pair_score with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("KhaledReda/all-MiniLM-L6-v34-pair_score") sentences = [ "police pyramid north", "silver sparkle category fashion footwear shoe heels tags silver heels women heels thin straps heels rhinestones heels heels sparkle heels keywords heels sparkle heels attrs gender women brand unidentical generic name heels size 37 features thin straps sparkle material rhinestones color silver description thin straps with rhinestones heels. height 7 cm.", "colorful printed long cardigan category fashion casual wear outerwear outerwear tags cardigan colorful cardigan long cardigan printed cardigan keywords cardigan colorful cardigan long cardigan printed cardigan attrs gender women brand u modest generic name cardigan features long types of fashion styles casual everyday wear color colorful pattern printed", "courtly black category fashion footwear shoe flats tags flat shoe black shoe black flat shoe courtly keywords courtly attrs color black" ] 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!