from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("swardiantara/bert-tiny-snli-k3-adaptive-euclidean")
# Run inference
sentences = [
'A couple play in the tide with their young son. [SEP] The family is on vacation.',
'A woman with a panda hat and headphones is in front of a man outside in the snow. [SEP] The man is on the beach.',
'Male standing in the roadway, he is wearing a light colored shirt and holding a backpack. [SEP] A male is watching his dogs play.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 128]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.9980, 0.9919],# [0.9980, 1.0000, 0.9903],# [0.9919, 0.9903, 1.0000]])
Training Details
Training Dataset
Unnamed Dataset
Size: 3,845,587 training samples
Columns:
text_a
,
text_b
, and
label
Approximate statistics based on the first 100 samples:
text_a
text_b
label
type
string
string
list
modality
text
text
details
min: 13 tokens
mean: 24.67 tokens
max: 47 tokens
min: 22 tokens
mean: 28.88 tokens
max: 43 tokens
size: 2 elements
Samples:
text_a
text_b
label
A person on a horse jumps over a broken down airplane. [SEP] A person is training his horse for a competition.
A man in goggles and a hat is sitting in the street holding something and wearing white gloves. [SEP] The man is a performance artist.
[1.0, 0.0]
A person on a horse jumps over a broken down airplane. [SEP] A person is training his horse for a competition.
Two boys and a woman standing in front of a Pronto Pups Hamburger stand. [SEP] People are outside.
[0.0, 0.5]
A person on a horse jumps over a broken down airplane. [SEP] A person is training his horse for a competition.
A little girl in a red shirt is suspended in midair on a contraption, as a man wearing white shorts looks up at her. [SEP] A little girl and a man are looking at each other.
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
Runs of swardiantara bert-tiny-snli-k3-adaptive-euclidean on huggingface.co
78
Total runs
0
24-hour runs
-7
3-day runs
16
7-day runs
10
30-day runs
More Information About bert-tiny-snli-k3-adaptive-euclidean huggingface.co Model
bert-tiny-snli-k3-adaptive-euclidean huggingface.co is an AI model on huggingface.co that provides bert-tiny-snli-k3-adaptive-euclidean's model effect (), which can be used instantly with this swardiantara bert-tiny-snli-k3-adaptive-euclidean model. huggingface.co supports a free trial of the bert-tiny-snli-k3-adaptive-euclidean model, and also provides paid use of the bert-tiny-snli-k3-adaptive-euclidean. Support call bert-tiny-snli-k3-adaptive-euclidean model through api, including Node.js, Python, http.
bert-tiny-snli-k3-adaptive-euclidean huggingface.co is an online trial and call api platform, which integrates bert-tiny-snli-k3-adaptive-euclidean's modeling effects, including api services, and provides a free online trial of bert-tiny-snli-k3-adaptive-euclidean, you can try bert-tiny-snli-k3-adaptive-euclidean online for free by clicking the link below.
swardiantara bert-tiny-snli-k3-adaptive-euclidean online free url in huggingface.co:
bert-tiny-snli-k3-adaptive-euclidean is an open source model from GitHub that offers a free installation service, and any user can find bert-tiny-snli-k3-adaptive-euclidean on GitHub to install. At the same time, huggingface.co provides the effect of bert-tiny-snli-k3-adaptive-euclidean install, users can directly use bert-tiny-snli-k3-adaptive-euclidean installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bert-tiny-snli-k3-adaptive-euclidean install url in huggingface.co: