Downloads · 30 days
12
2% of all-time downloads
atasoglu/turkish-tiny-bert-uncased-offenseval2020_tr
turkish-tiny-bert-uncased-offenseval2020_tr is a text classification model from atasoglu. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This is a lightweight offensive language detection model fine-tuned with coltekin/offenseval2020tr dataset on ytu-ce-cosmos/turkish-tiny-bert-uncased.
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
670
Public
Parameters
4.6M
18.3 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.3 MB · 95%
From the Hugging Face model README
This is a lightweight offensive language detection model fine-tuned with coltekin/offenseval2020_tr dataset on ytu-ce-cosmos/turkish-tiny-bert-uncased.
from transformers import pipeline
pipe = pipeline("text-classification", "atasoglu/turkish-tiny-bert-uncased-offenseval2020_tr")
print(pipe("bu bir test metnidir.", top_k=None))
# [{'label': 'NOT', 'score': 0.9964759945869446}, {'label': 'OFF', 'score': 0.0035239490680396557}]
Test results examined on the test split of fine-tuning dataset.
| precision | recall | f1-score | support | |
|---|---|---|---|---|
| NOT | 0.8966 | 0.9317 | 0.9138 | 2812 |
| OFF | 0.6832 | 0.5782 | 0.6263 | 716 |
| accuracy | 0.8600 | 3528 | ||
| macro avg | 0.7899 | 0.7550 | 0.7701 | 3528 |
| weighted avg | 0.8533 | 0.8600 | 0.8555 | 3528 |