Downloads · 30 days
214
0% of all-time downloads
NYTK/sentence-transformers-experimental-hubert-hungarian
sentence-transformers-experimental-hubert-hungarian is a sentence similarity model from NYTK. 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.
The pre-trained huBERT was fine-tuned on the Hunglish 2.0 parallel corpus to mimic the bert-base-nli-stsb-mean-tokens model provided by UKPLab. Sentence embeddings were obtained by applying mean pooling to the huBERT…
Downloads · 30 days
214
0% of all-time downloads
All-time downloads
88K
Public
Repo size
885 MB
Likes
1
Public
Click a slice to open those files.
.bin443 MB · 100%
From the Hugging Face model README
The pre-trained huBERT was fine-tuned on the Hunglish 2.0 parallel corpus to mimic the bert-base-nli-stsb-mean-tokens model provided by UKPLab. Sentence embeddings were obtained by applying mean pooling to the huBERT output. The data was split into training (98%) and validation (2%) sets. By the end of the training, a mean squared error of 0.106 was computed on the validation set. Our code was based on the Sentence-Transformers library. Our model was trained for 2 epochs on a single GTX 1080Ti GPU card with the batch size set to 32. The training took approximately 15 hours.
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('NYTK/sentence-transformers-experimental-hubert-hungarian')
embeddings = model.encode(sentences)
print(embeddings)
If you use this model, please cite the following paper:
@article {bertopic,
title = {Analyzing Narratives of Patient Experiences: A BERT Topic Modeling Approach},
journal = {Acta Polytechnica Hungarica},
year = {2023},
author = {Osváth, Mátyás and Yang, Zijian Győző and Kósa, Karolina},
pages = {153--171},
volume = {20},
number = {7}
}