Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:11537277
loss:OrdinalProxyContrastiveLoss
text-embeddings-inference
Instructions to use swardiantara/bert-tiny-snli-k10-fixed-cosine with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use swardiantara/bert-tiny-snli-k10-fixed-cosine with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("swardiantara/bert-tiny-snli-k10-fixed-cosine") sentences = [ "The school is having a special event in order to show the american culture on how other cultures are dealt with in parties. [SEP] A high school is hosting an event.", "An older man in a red vest and blue cap is walking with a cane carrying a white bag. [SEP] The man is wearing green shorts.", "A soccer player slays on the group and kicks a yellow ball as another player wearing a gray hat runs by. [SEP] The people are at a soccer field.", "A brown dog with a green ball sit in the snow. [SEP] There is an animal outside." ] 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!