Downloads · 30 days
19
16% of all-time downloads
yeniguno/bertopic-turkish-political
bertopic-turkish-political is a text classification model from yeniguno. Use it when you need a label for a piece of text. It is set up for bertopic.
This is a BERTopic model. BERTopic is a flexible and modular topic modeling framework that allows for the generation of easily interpretable topics from large datasets.
Downloads · 30 days
19
16% of all-time downloads
All-time downloads
120
Public
Repo size
549 KB
Likes
0
Public
Click a slice to open those files.
.json621 KB · 53%
From the Hugging Face model README
This is a BERTopic model. BERTopic is a flexible and modular topic modeling framework that allows for the generation of easily interpretable topics from large datasets.
This model is fine tuned on a custom dataset of Turkish political comments.
To use this model, please install BERTopic:
pip install -U bertopic
You can use the model as follows:
from bertopic import BERTopic
topic_model = BERTopic.load("yeniguno/bertopic-turkish-political", embedding_model="sentence-transformers/paraphrase-multilingual-mpnet-base-v2")
topic_model.get_topic_info()
text = "Belediye, sokak hayvanları için yeni bir proje başlattı."
predictions, probabilities = topic_model.transform(text)
| Topic ID | Topic Keywords | Topic Frequency | Label |
|---|---|---|---|
| -1 | türkiye - halk - iktidar - muhalefet - seçmen | 281 | -1_türkiye_halk_iktidar_muhalefet |
| 0 | türkiye - atatürk - seçmen - siyaset - halk | 20262 | 0_türkiye_atatürk_seçmen_siyaset |
| 1 | olmak - iktidar - ekonomik - gerekmek - görüş | 12760 | 1_olmak_iktidar_ekonomik_gerekmek |
| 2 | seçim - seçmen - koalisyon - meclis - ittifak | 3395 | 2_seçim_seçmen_koalisyon_meclis |
| 3 | medya - milliyet - muhalefet - politik - faşist | 3065 | 3_medya_milliyet_muhalefet_politik |
| 4 | terör - şiddet - saldırı - terörist - toplum | 2437 | 4_terör_şiddet_saldırı_terörist |
| 5 | mahkeme - yargı - toplum - kavram - hukuk | 1641 | 5_mahkeme_yargı_toplum_kavram |
| 6 | seçim - meclis - endişe - sonuç - zor | 648 | 6_seçim_meclis_endişe_sonuç |
| 7 | köpek - sokak - park - protesto - taksi | 473 | 7_köpek_sokak_park_protesto |
| 8 | cinsiyet - lgbt - siyaset - cinsel - tecavüz | 287 | 8_cinsiyet_lgbt_siyaset_cinsel |