Downloads · 30 days
12
35% of all-time downloads
atsizelti/turkish_org_classifier_16k
turkish_org_classifier_16k is a text classification model from atsizelti. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is fine-tuned on the dbmdz/bert-base-turkish-uncased architecture for detecting organization accounts within Turkish Twitter. This initiative is part of the Politus Project's efforts to analyze organization…
Downloads · 30 days
12
35% of all-time downloads
All-time downloads
34
Public
Parameters
111M
442 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors442 MB · 100%
From the Hugging Face model README
This model is fine-tuned on the dbmdz/bert-base-turkish-uncased architecture for detecting organization accounts within Turkish Twitter. This initiative is part of the Politus Project's efforts to analyze organizational presence in social media data.
Performed using Optuna, achieving best settings:
[[2715, 103],
[ 60, 322]]
[[936, 3],
[ 4, 31]]
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("atsizelti/atsizelti/turkish_org_classifier_16k")
tokenizer = AutoTokenizer.from_pretrained("atsizelti/atsizelti/turkish_org_classifier_16k")
text = "Örnek metin buraya girilir."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
predictions = outputs.logits.argmax(-1)