from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("swardiantara/bert-tiny-snli-k5-fixed-euclidean")
# Run inference
sentences = [
'Children smiling and waving at camera [SEP] The kids are frowning',
'A room full of girls raising their hands. [SEP] The boys are jumping on the trampoline.',
'A woman is walking across the street eating a banana, while a man is following with his briefcase. [SEP] the woman is a seductress',
]
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.9991, 0.9962],# [0.9991, 1.0000, 0.9956],# [0.9962, 0.9956, 1.0000]])
Training Details
Training Dataset
Unnamed Dataset
Size: 6,043,097 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: 22.88 tokens
max: 47 tokens
min: 20 tokens
mean: 27.54 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 woman is walking across the street eating a banana, while a man is following with his briefcase. [SEP] the woman is a seductress
[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.
A man on stilts is playing a tuba for money on the boardwalk. [SEP] A male street performer with a tuba is playing 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 boy is standing next to a car in front of a clothesline. [SEP] The boy is outside.
@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-k5-fixed-euclidean on huggingface.co
72
Total runs
16
24-hour runs
19
3-day runs
8
7-day runs
-12
30-day runs
More Information About bert-tiny-snli-k5-fixed-euclidean huggingface.co Model
bert-tiny-snli-k5-fixed-euclidean huggingface.co
bert-tiny-snli-k5-fixed-euclidean huggingface.co is an AI model on huggingface.co that provides bert-tiny-snli-k5-fixed-euclidean's model effect (), which can be used instantly with this swardiantara bert-tiny-snli-k5-fixed-euclidean model. huggingface.co supports a free trial of the bert-tiny-snli-k5-fixed-euclidean model, and also provides paid use of the bert-tiny-snli-k5-fixed-euclidean. Support call bert-tiny-snli-k5-fixed-euclidean model through api, including Node.js, Python, http.
bert-tiny-snli-k5-fixed-euclidean huggingface.co is an online trial and call api platform, which integrates bert-tiny-snli-k5-fixed-euclidean's modeling effects, including api services, and provides a free online trial of bert-tiny-snli-k5-fixed-euclidean, you can try bert-tiny-snli-k5-fixed-euclidean online for free by clicking the link below.
swardiantara bert-tiny-snli-k5-fixed-euclidean online free url in huggingface.co:
bert-tiny-snli-k5-fixed-euclidean is an open source model from GitHub that offers a free installation service, and any user can find bert-tiny-snli-k5-fixed-euclidean on GitHub to install. At the same time, huggingface.co provides the effect of bert-tiny-snli-k5-fixed-euclidean install, users can directly use bert-tiny-snli-k5-fixed-euclidean installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bert-tiny-snli-k5-fixed-euclidean install url in huggingface.co: