from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("swardiantara/bert-tiny-sst5-k5-fixed-euclidean")
# Run inference
sentences = [
'you end up simply admiring this bit or that , this performance or that .',
"a semi-autobiographical film that 's so sloppily written and cast that you can not believe anyone more central to the creation of bugsy than the caterer had anything to do with it .",
"guilty of the worst sin of attributable to a movie like this : it 's not scary in the slightest .",
]
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.9958, 0.9944],# [0.9958, 1.0000, 0.9967],# [0.9944, 0.9967, 1.0000]])
Training Details
Training Dataset
Unnamed Dataset
Size: 179,524 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.62 tokens
max: 48 tokens
min: 16 tokens
mean: 34.48 tokens
max: 56 tokens
size: 2 elements
Samples:
text_a
text_b
label
a stirring , funny and finally transporting re-imagining of beauty and the beast and 1930s horror films
vividly conveys the passion , creativity , and fearlessness of one of mexico 's most colorful and controversial artists -- a captivating drama that will speak to the nonconformist in us all .
[1.0, 0.0]
a stirring , funny and finally transporting re-imagining of beauty and the beast and 1930s horror films
... a cheap , ludicrous attempt at serious horror .
[0.0, 1.0]
a stirring , funny and finally transporting re-imagining of beauty and the beast and 1930s horror films
guilty of the worst sin of attributable to a movie like this : it 's not scary in the slightest .
@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-sst5-k5-fixed-euclidean on huggingface.co
90
Total runs
0
24-hour runs
0
3-day runs
12
7-day runs
21
30-day runs
More Information About bert-tiny-sst5-k5-fixed-euclidean huggingface.co Model
bert-tiny-sst5-k5-fixed-euclidean huggingface.co
bert-tiny-sst5-k5-fixed-euclidean huggingface.co is an AI model on huggingface.co that provides bert-tiny-sst5-k5-fixed-euclidean's model effect (), which can be used instantly with this swardiantara bert-tiny-sst5-k5-fixed-euclidean model. huggingface.co supports a free trial of the bert-tiny-sst5-k5-fixed-euclidean model, and also provides paid use of the bert-tiny-sst5-k5-fixed-euclidean. Support call bert-tiny-sst5-k5-fixed-euclidean model through api, including Node.js, Python, http.
bert-tiny-sst5-k5-fixed-euclidean huggingface.co is an online trial and call api platform, which integrates bert-tiny-sst5-k5-fixed-euclidean's modeling effects, including api services, and provides a free online trial of bert-tiny-sst5-k5-fixed-euclidean, you can try bert-tiny-sst5-k5-fixed-euclidean online for free by clicking the link below.
swardiantara bert-tiny-sst5-k5-fixed-euclidean online free url in huggingface.co:
bert-tiny-sst5-k5-fixed-euclidean is an open source model from GitHub that offers a free installation service, and any user can find bert-tiny-sst5-k5-fixed-euclidean on GitHub to install. At the same time, huggingface.co provides the effect of bert-tiny-sst5-k5-fixed-euclidean install, users can directly use bert-tiny-sst5-k5-fixed-euclidean installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bert-tiny-sst5-k5-fixed-euclidean install url in huggingface.co: