from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("yahyaabd/allstats-semantic-mpnet-v2")
# Run inference
sentences = [
'Direktori perusahaan pengelola hutan 2015',
'Direktori Perusahaan Kehutanan 2015',
'Indeks Pembangunan Manusia (IPM) Indonesia tahun 2024 mencapai 75,02, meningkat 0,63 poin atau 0,85 persen dibandingkan tahun sebelumnya yang sebesar 74,39.',
]
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]
Evaluation
Metrics
Semantic Similarity
Datasets:
allstats-semantic-mpnet-v2-eval
and
allstats-semantic-mpnet-v2-test
Approximate statistics based on the first 1000 samples:
query
doc
label
type
string
string
float
details
min: 5 tokens
mean: 11.28 tokens
max: 34 tokens
min: 5 tokens
mean: 14.71 tokens
max: 58 tokens
min: 0.0
mean: 0.48
max: 1.0
Samples:
query
doc
label
Data bisnis Kalbar sensus 2016
Indikator Ekonomi Oktober 2012
0.1
Informasi tentang pola pengeluaran masyarakat Bengkulu berdasarkan kelompok pendapatan?
Rata-rata Konsumsi dan Pengeluaran Perkapita Seminggu Menurut Komoditi Makanan dan Golongan Pengeluaran per Kapita Seminggu di Provinsi Bengkulu, 2018-2023
0.88
Laopran keuagnan lmebaga non proft 20112-013
Neraca Lembaga Non Profit yang Melayani Rumah Tangga 2011-2013
@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 yahyaabd allstats-semantic-mpnet-v2 on huggingface.co
1
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
1
30-day runs
More Information About allstats-semantic-mpnet-v2 huggingface.co Model
allstats-semantic-mpnet-v2 huggingface.co
allstats-semantic-mpnet-v2 huggingface.co is an AI model on huggingface.co that provides allstats-semantic-mpnet-v2's model effect (), which can be used instantly with this yahyaabd allstats-semantic-mpnet-v2 model. huggingface.co supports a free trial of the allstats-semantic-mpnet-v2 model, and also provides paid use of the allstats-semantic-mpnet-v2. Support call allstats-semantic-mpnet-v2 model through api, including Node.js, Python, http.
allstats-semantic-mpnet-v2 huggingface.co is an online trial and call api platform, which integrates allstats-semantic-mpnet-v2's modeling effects, including api services, and provides a free online trial of allstats-semantic-mpnet-v2, you can try allstats-semantic-mpnet-v2 online for free by clicking the link below.
yahyaabd allstats-semantic-mpnet-v2 online free url in huggingface.co:
allstats-semantic-mpnet-v2 is an open source model from GitHub that offers a free installation service, and any user can find allstats-semantic-mpnet-v2 on GitHub to install. At the same time, huggingface.co provides the effect of allstats-semantic-mpnet-v2 install, users can directly use allstats-semantic-mpnet-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
allstats-semantic-mpnet-v2 install url in huggingface.co: