Downloads · 30 days
896
6% of all-time downloads
kornwtp/ConGen-WangchanBERT-Small
ConGen-WangchanBERT-Small is a sentence similarity model from kornwtp. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as apache-2.0.
This is a ConGen model: It maps sentences to a 128 dimensional dense vector space and can be used for tasks like semantic search.
Downloads · 30 days
896
6% of all-time downloads
All-time downloads
14.8K
Public
Repo size
230 MB
Likes
0
Public
Click a slice to open those files.
.bin115 MB · 99%
From the Hugging Face model README
This is a ConGen model: It maps sentences to a 128 dimensional dense vector space and can be used for tasks like semantic search.
Using this model becomes easy when you have ConGen installed:
pip install -U git+https://github.com/KornWtp/ConGen.git
Then you can use the model like this:
from sentence_transformers import SentenceTransformer
sentences = ["กลุ่มผู้ชายเล่นฟุตบอลบนชายหาด", "กลุ่มเด็กชายกำลังเล่นฟุตบอลบนชายหาด"]
model = SentenceTransformer('kornwtp/ConGen-WangchanBERT-Small')
embeddings = model.encode(sentences)
print(embeddings)
For an automated evaluation of this model, see the Thai Sentence Embeddings Benchmark: Semantic Textual Similarity
@inproceedings{limkonchotiwat-etal-2022-congen,
title = "{ConGen}: Unsupervised Control and Generalization Distillation For Sentence Representation",
author = "Limkonchotiwat, Peerat and
Ponwitayarat, Wuttikorn and
Lowphansirikul, Lalita and
Udomcharoenchaikit, Can and
Chuangsuwanich, Ekapol and
Nutanong, Sarana",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2022",
year = "2022",
publisher = "Association for Computational Linguistics",
}