atasoglu's picture
Update README.md
2fa321c verified
metadata
library_name: transformers
license: mit
datasets:
  - coltekin/offenseval2020_tr
language:
  - tr
pipeline_tag: text-classification
tags:
  - offensive
  - language
  - detection

atasoglu/turkish-tiny-bert-uncased-offenseval2020_tr

This is a lightweight offensive language detection model fine-tuned with coltekin/offenseval2020_tr dataset on ytu-ce-cosmos/turkish-tiny-bert-uncased.

Usage

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

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