from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("swardiantara/bert-tiny-sst5-k1-adaptive-euclidean")
# Run inference
sentences = [
'a metaphor for a modern-day urban china searching for its identity .',
'-lrb- janey -rrb- forgets about her other obligations , leading to a tragedy which is somehow guessable from the first few minutes , maybe because it echoes the by now intolerable morbidity of so many recent movies .',
"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 .",
]
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.8648, 0.8707],# [0.8648, 1.0000, 0.9650],# [0.8707, 0.9650, 1.0000]])
Training Details
Training Dataset
Unnamed Dataset
Size: 42,720 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: 7 tokens
mean: 22.86 tokens
max: 48 tokens
min: 33 tokens
mean: 43.28 tokens
max: 53 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
director lee has a true cinematic knack , but it 's also nice to see a movie with its heart so thoroughly , unabashedly on its sleeve .
[1.0, 0.0]
a stirring , funny and finally transporting re-imagining of beauty and the beast and 1930s horror films
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 .
[0.0, 1.0]
a stirring , funny and finally transporting re-imagining of beauty and the beast and 1930s horror films
-lrb- janey -rrb- forgets about her other obligations , leading to a tragedy which is somehow guessable from the first few minutes , maybe because it echoes the by now intolerable morbidity of so many recent movies .
@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-k1-adaptive-euclidean on huggingface.co
74
Total runs
-1
24-hour runs
-15
3-day runs
-6
7-day runs
-12
30-day runs
More Information About bert-tiny-sst5-k1-adaptive-euclidean huggingface.co Model
bert-tiny-sst5-k1-adaptive-euclidean huggingface.co is an AI model on huggingface.co that provides bert-tiny-sst5-k1-adaptive-euclidean's model effect (), which can be used instantly with this swardiantara bert-tiny-sst5-k1-adaptive-euclidean model. huggingface.co supports a free trial of the bert-tiny-sst5-k1-adaptive-euclidean model, and also provides paid use of the bert-tiny-sst5-k1-adaptive-euclidean. Support call bert-tiny-sst5-k1-adaptive-euclidean model through api, including Node.js, Python, http.
bert-tiny-sst5-k1-adaptive-euclidean huggingface.co is an online trial and call api platform, which integrates bert-tiny-sst5-k1-adaptive-euclidean's modeling effects, including api services, and provides a free online trial of bert-tiny-sst5-k1-adaptive-euclidean, you can try bert-tiny-sst5-k1-adaptive-euclidean online for free by clicking the link below.
swardiantara bert-tiny-sst5-k1-adaptive-euclidean online free url in huggingface.co:
bert-tiny-sst5-k1-adaptive-euclidean is an open source model from GitHub that offers a free installation service, and any user can find bert-tiny-sst5-k1-adaptive-euclidean on GitHub to install. At the same time, huggingface.co provides the effect of bert-tiny-sst5-k1-adaptive-euclidean install, users can directly use bert-tiny-sst5-k1-adaptive-euclidean installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bert-tiny-sst5-k1-adaptive-euclidean install url in huggingface.co: