Downloads · 30 days
49
0% of all-time downloads
barandinho/distilbert-base-turkish-cased-toxic-lang
distilbert-base-turkish-cased-toxic-lang is a text classification model from barandinho. 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.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
49
0% of all-time downloads
All-time downloads
11.7K
Public
Parameters
68.1M
545 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors272 MB · 100%
From the Hugging Face model README
Bu model distilbert-base-turkish'in turkish-toxic-language dataset'i üzerinde fine-tune edilmiş versiyonudur.
Model google colab üzerinde T4 GPU ile yaklaşık 1.5 saatte eğitilmiştir. Eğitim parametleri aşağıda verilmiştir.
Model evaluation veri setinde şu değerlere ulaşmıştır:
Verilen Türkçe cümlenin toksik olup olmadığını tespit edip etiketleme amaçlı kullanılmaktadır.
Etiketler :
OTHER : Toksik değil
INSULT : Hakaret
PROFANITY : Küfür
SEXIST : Cinsiyetçilik
RACIST : Irkçılık
from transformers import pipeline
pipe = pipeline("sentiment-analysis", model="barandinho/distilbert-base-turkish-cased-toxic-lang")
Model en başta training ve evaluation diye ayrılıp 2 epoch boyunca eğitilmiştir. Modelin başarısı doğrulanınca training ve evaluation veri setleri birleştirilip 3 epoch boyunca tekrardan eğitilecektir.
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.762 | 1.0 | 972 | 0.2179 | 0.9210 |
| 0.1682 | 2.0 | 1944 | 0.2019 | 0.9287 |