File size: 1,307 Bytes
a70d4be
 
0dddeb9
 
 
 
 
 
a70d4be
 
0dddeb9
a70d4be
0dddeb9
a70d4be
0dddeb9
a70d4be
0dddeb9
 
 
 
 
 
a70d4be
0dddeb9
a70d4be
0dddeb9
a70d4be
0dddeb9
 
 
 
a70d4be
0dddeb9
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
library_name: transformers
license: mit
datasets:
- coltekin/offenseval2020_tr
language:
- tr
pipeline_tag: text-classification
---

# atasoglu/turkish-tiny-bert-uncased-offenseval2020_tr

This is a lightweight offensive language detection model fine-tuned with [coltekin/offenseval2020_tr](https://huggingface.co/datasets/coltekin/offenseval2020_tr) dataset on [ytu-ce-cosmos/turkish-tiny-bert-uncased](https://huggingface.co/ytu-ce-cosmos/turkish-tiny-bert-uncased).

## Usage

```py
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   |