Downloads · 30 days
10
24% of all-time downloads
celalkartoglu/tr-toxic-bert-multiclass-v1
tr-toxic-bert-multiclass-v1 is a machine learning model from celalkartoglu. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Etiketler: DİĞER, KÜFÜR, HAKARET, IRKÇI, CİNSİYETÇİ Veri: Overfit-GM/turkish-toxic-language (77,800 örnek) Taban model: dbmdz/bert-base-turkish-cased Eğitim: 3 epoch, bs=16/32, lr=3e-5, classweight ile dengeleme
Downloads · 30 days
10
24% of all-time downloads
All-time downloads
42
Public
Parameters
111M
443 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors443 MB · 100%
From the Hugging Face model README
Etiketler: DİĞER, KÜFÜR, HAKARET, IRKÇI, CİNSİYETÇİ
Veri: Overfit-GM/turkish-toxic-language (77,800 örnek)
Taban model: dbmdz/bert-base-turkish-cased
Eğitim: 3 epoch, bs=16/32, lr=3e-5, class_weight ile dengeleme
from transformers import AutoTokenizer, AutoModelForSequenceClassification, TextClassificationPipeline
tok = AutoTokenizer.from_pretrained("celalkartoglu/tr-toxic-bert-multiclass-v1")
mdl = AutoModelForSequenceClassification.from_pretrained("celalkartoglu/tr-toxic-bert-multiclass-v1")
pipe = TextClassificationPipeline(model=mdl, tokenizer=tok, top_k=1)
pipe("Defol git buradan.") # -> [{'label': 'HAKARET', 'score': ...}]