SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
This is a
sentence-transformers
model finetuned from
sentence-transformers/all-mpnet-base-v2
. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("andreyunic23/beds_step4")
# Run inference
sentences = [
"Customer's data released to public.",
"Customer's data released to public.",
'Equipment Operated Beyond Limits.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Training Details
Training Dataset
Unnamed Dataset
Size: 1,084 training samples
Columns:
sentence1
,
sentence2
, and
label
Approximate statistics based on the first 1000 samples:
sentence1
sentence2
label
type
string
string
int
details
min: 4 tokens
mean: 13.7 tokens
max: 48 tokens
min: 4 tokens
mean: 13.7 tokens
max: 48 tokens
0: 100.00%
Samples:
sentence1
sentence2
label
A collision between the ACROBOTER robotic platform and an unknown object must be avoided at all times.
A collision between the ACROBOTER robotic platform and an unknown object must be avoided at all times.
0
A non‐patient is injured or killed by radiation.
A non‐patient is injured or killed by radiation.
0
A nonpatient is injured or killed in the process of MRI simulation.
A nonpatient is injured or killed in the process of MRI simulation.
@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",
}
ContrastiveTensionLossInBatchNegatives
@inproceedings{carlsson2021semantic,
title={Semantic Re-tuning with Contrastive Tension},
author={Fredrik Carlsson and Amaru Cuba Gyllensten and Evangelia Gogoulou and Erik Ylip{"a}{"a} Hellqvist and Magnus Sahlgren},
booktitle={International Conference on Learning Representations},
year={2021},
url={https://openreview.net/forum?id=Ov_sMNau-PF}
}
Runs of andreyunic23 beds_step4 on huggingface.co
98
Total runs
2
24-hour runs
0
3-day runs
-4
7-day runs
6
30-day runs
More Information About beds_step4 huggingface.co Model
beds_step4 huggingface.co
beds_step4 huggingface.co is an AI model on huggingface.co that provides beds_step4's model effect (), which can be used instantly with this andreyunic23 beds_step4 model. huggingface.co supports a free trial of the beds_step4 model, and also provides paid use of the beds_step4. Support call beds_step4 model through api, including Node.js, Python, http.
beds_step4 huggingface.co is an online trial and call api platform, which integrates beds_step4's modeling effects, including api services, and provides a free online trial of beds_step4, you can try beds_step4 online for free by clicking the link below.
andreyunic23 beds_step4 online free url in huggingface.co:
beds_step4 is an open source model from GitHub that offers a free installation service, and any user can find beds_step4 on GitHub to install. At the same time, huggingface.co provides the effect of beds_step4 install, users can directly use beds_step4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.