File size: 1,979 Bytes
c5e91d7
 
2c6ee8f
 
 
 
 
 
 
c5e91d7
2c6ee8f
 
 
 
 
 
 
 
 
 
 
 
 
 
5723921
 
 
 
 
 
 
 
 
 
 
2c6ee8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
license: apache-2.0
task_categories:
- text-classification
language:
- tr
pretty_name: Turkish Toxic Language Dataset
size_categories:
- 10K<n<100K
---

# Turkish Texts for Toxic Language Detection

## Dataset Description

### Dataset Summary


This text dataset is a collection of Turkish texts that have been merged from various existing offensive language datasets found online. The dataset contains a total of 77,800 instances, each labeled as either offensive or not offensive.

To ensure the dataset's completeness, we utilized multiple transformer models to augment the dataset with pseudo labels. The resulting dataset is designed to be a comprehensive resource for Turkish offensive language detection.

The dataset is provided in CSV format, for more details on the merged datasets used, please refer to the reference section.

## Loading Dataset

To use dataset by using Huggingface dataset use snippet below:

```python
from datasets import load_dataset

# If the dataset is gated/private, make sure you have run huggingface-cli login
dataset = load_dataset("Overfit-GM/turkish-toxic-language")
```

## Dataset Structure

| Dataset Information |       |
|---------------------|-------|
| Number of instances | 77,800|
| Target label distribution | |
|OTHER | 37,663|
|PROFANITY | 18,252|
|INSULT | 10,777|
|RACIST | 10,163|
|SEXIST | 945|
| Number of offensive instances | 40,137 |
| Number of non-offensive instances | 37,663 |
| Data source distribution | |
|Jigsaw Multilingual Toxic Comments | 35,624 |
|Turkish Offensive Language Detection Dataset | 39,551 |
|Turkish Cyberbullying Dataset | 2,525 |

### Source Data & References

- https://www.kaggle.com/c/jigsaw-multilingual-toxic-comment-classification
- https://huggingface.co/datasets/offenseval2020_tr
- https://github.com/imayda/turkish-hate-speech-dataset-2
- https://www.kaggle.com/datasets/kbulutozler/5k-turkish-tweets-with-incivil-content
- https://www.kaggle.com/abozyigit/turkish-cyberbullying