Datasets:

Modalities:
Tabular
Text
Formats:
csv
Languages:
Portuguese
ArXiv:
DOI:
Libraries:
Datasets
pandas
License:
File size: 2,928 Bytes
471f1b9
 
6c8d705
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6864451
9650b6a
 
 
6c8d705
9650b6a
6c8d705
5008c87
 
6864451
 
 
6c8d705
6864451
6c8d705
2adb3f1
 
 
 
9cf3d78
2adb3f1
 
 
 
 
 
 
 
 
 
 
 
9cf3d78
 
 
 
df7764a
 
 
 
 
 
 
 
 
5c440ef
df7764a
 
 
 
 
9cf3d78
 
 
2adb3f1
 
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
license: cc-by-4.0
annotations_creators:
- crowdsourced
language_creators:
- crowdsourced
language:
- pt
multilinguality:
- monolingual
size_categories:
- 10K<n<100K
source_datasets:
- original
task_categories:
- text-classification
task_ids: []
pretty_name: TuPy
language_bcp47:
- pt-BR
tags:
- hate-speech-detection
configs:
- config_name: multilabel
  data_files:
  - split: train
    path: multilabel/multilabel_train.csv
  - split: test
    path: multilabel/multilabel_test.csv
  default: true
  
- config_name: binary
  data_files:
  - split: train
    path: binary/binary_train.csv
  - split: test
    path: binary/binary_test.csv
---

# Portuguese Hate Speech Dataset (TuPy)

The Portuguese hate speech dataset (TuPy) is an annotated corpus designed to facilitate the development of advanced hate speech detection models using machine learning (ML) and natural language processing (NLP) techniques. TuPy is formed by 10000 thousand unpublished, annotated, and anonymous tweets collected in 2023.

This repository is organized as follows:

```sh
root.
    ├── binary     : binary dataset (including training and testing split)
    ├── multilabel : multilabel dataset (including training and testing split)
    └── README.md  : documentation and card metadata
```
## Voting process
To generate the binary matrices, we employed a straightforward voting process. Three distinct evaluations were assigned to each document. In cases where a document received two or more identical classifications, the adopted value is set to 1; otherwise, it is marked as 0.Raw data can be checked into the repository in the [project repository](https://github.com/Silly-Machine/TuPy-Dataset)


## Data structure
A data point comprises the tweet text (a string) along with thirteen categories, each category is assigned a value of 0 when there is an absence of aggressive or hateful content and a value of 1 when such content is present. These values represent the consensus of annotators regarding the presence of aggressive, hate, ageism, aporophobia, body shame, capacitism, lgbtphobia, political, racism, religious intolerance, misogyny, xenophobia, and others. An illustration from the multilabel ToLD-Br dataset is depicted below:

```python
{text: "e tem pobre de direita imbecil que ainda defendia a manutenção da política de preços atrelada ao dólar link",
aggressive: 1,
hate: 1,
ageism: 0,
aporophobia: 1,
body shame: 0,
capacitism: 0,
lgbtphobia: 0,
political: 1
racism : 0,
religious intolerance : 0,
misogyny : 0,
xenophobia : 0,
other : 0}
```


## Acknowledge
The TuPy project is the result of the development of Felipe Oliveira's thesis and the work of several collaborators. This project is financed by the Federal University of Rio de Janeiro ([UFRJ](https://ufrj.br/)) and the Alberto Luiz Coimbra Institute for Postgraduate Studies and Research in Engineering ([COPPE](https://coppe.ufrj.br/)).