Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:1000010
loss:OrdinalProxyContrastiveLoss
text-embeddings-inference
Instructions to use swardiantara/bert-tiny-amazon_reviews-k1-fixed-euclidean with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use swardiantara/bert-tiny-amazon_reviews-k1-fixed-euclidean with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("swardiantara/bert-tiny-amazon_reviews-k1-fixed-euclidean") sentences = [ "I had problem with the 2 screen protectors, any of them paste well on the screen. Very disappointing because I also bought the complete screen protection and I hope not happening the same thing...", "Seems to protect well, feels nice, just wish it would stick a bit better. The first one would not stay applied. Kept peeling from the top no matter what I did. I figured it could be my error, so I removed and cleaned the screen very well with additional alcohol wipes. The second one has been on a few days, but is starting to peel from a different spot. I love the feel of the protector otherwise.", "I bought this headphone for my daughter. She loves it. It's super lightweight and no pressure felt either on head or ears after hours using. It also has awesome sound quality. Best value to buy for this price.", "I bought this headphone for my daughter. She loves it. It's super lightweight and no pressure felt either on head or ears after hours using. It also has awesome sound quality. Best value to buy for this price." ] 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!