from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("armaniii/bert-base-uncased-augmentation-indomain-bm25-sts")
# Run inference
sentences = [
'While Queen may refer to both Queen regent (sovereign) or Queen consort, the King has always been the sovereign.',
'There is a very good reason not to refer to the Queen\'s spouse as "King" - because they aren\'t the King.',
'A man sitting on the floor in a room is strumming a guitar.',
]
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]
@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 armaniii bert-base-uncased-augmentation-indomain-bm25-sts on huggingface.co
101
Total runs
0
24-hour runs
-7
3-day runs
25
7-day runs
23
30-day runs
More Information About bert-base-uncased-augmentation-indomain-bm25-sts huggingface.co Model
bert-base-uncased-augmentation-indomain-bm25-sts huggingface.co is an AI model on huggingface.co that provides bert-base-uncased-augmentation-indomain-bm25-sts's model effect (), which can be used instantly with this armaniii bert-base-uncased-augmentation-indomain-bm25-sts model. huggingface.co supports a free trial of the bert-base-uncased-augmentation-indomain-bm25-sts model, and also provides paid use of the bert-base-uncased-augmentation-indomain-bm25-sts. Support call bert-base-uncased-augmentation-indomain-bm25-sts model through api, including Node.js, Python, http.
bert-base-uncased-augmentation-indomain-bm25-sts huggingface.co is an online trial and call api platform, which integrates bert-base-uncased-augmentation-indomain-bm25-sts's modeling effects, including api services, and provides a free online trial of bert-base-uncased-augmentation-indomain-bm25-sts, you can try bert-base-uncased-augmentation-indomain-bm25-sts online for free by clicking the link below.
armaniii bert-base-uncased-augmentation-indomain-bm25-sts online free url in huggingface.co:
bert-base-uncased-augmentation-indomain-bm25-sts is an open source model from GitHub that offers a free installation service, and any user can find bert-base-uncased-augmentation-indomain-bm25-sts on GitHub to install. At the same time, huggingface.co provides the effect of bert-base-uncased-augmentation-indomain-bm25-sts install, users can directly use bert-base-uncased-augmentation-indomain-bm25-sts installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bert-base-uncased-augmentation-indomain-bm25-sts install url in huggingface.co: