license: apache-2.0
task_categories:
- text-classification
- token-classification
size_categories:
- 1M<n<10M
language:
- ar
- es
- pa
- th
- et
- fr
- fi
- hu
- lt
- ur
- so
- pl
- el
- mr
- sk
- gu
- he
- af
- te
- ro
- lv
- sv
- ne
- kn
- it
- mk
- cs
- en
- de
- da
- ta
- bn
- pt
- sq
- tl
- uk
- bg
- ca
- sw
- hi
- zh
- ja
- hr
- ru
- vi
- id
- sl
- cy
- ko
- nl
- ml
- tr
- fa
- 'no'
tags:
- nlp
I have decided to release the auto-moderation models all at once sometime in July, 2023. The curated datasets for training these models will be avaliable first.
This is a large multilingual toxicity dataset with nearly 3M rows of text data from 55 natural languages, all of which are written/sent by humans, not machine translation models.
The preprocessed training data alone consists of 2,880,667 rows of comments, tweets, and messages. Among these rows, 416,529 are classified as toxic, while the remaining 2,463,773 are considered neutral. Below is a table to illustrate the data composition:
Toxic | Neutral | Total | |
---|---|---|---|
multilingual-train-deduplicated.csv | 416,529 | 2,464,138 | 2,880,667 |
multilingual-validation.csv | 1,230 | 6,770 | 8,000 |
multilingual-test.csv | 14,410 | 49,402 | 63,812 |
Each CSV file has three columns: text , is_toxic , and lang . |
Supported types of toxicity:
- Identity Hate/Homophobia
- Hate Speech
- Serious Insults
- Obscene
- Threats
- Harassment
- Racism
- Trolling
- Doxing
- Others
Supported languages:
- Afrikaans
- Albanian
- Arabic
- Bengali
- Bulgarian
- Catalan
- Chinese (Simplified)
- Chinese (Traditional)
- Croatian
- Czech
- Danish
- Dutch
- English
- Estonian
- Finnish
- French
- German
- Greek
- Gujarati
- Hebrew
- Hindi
- Hungarian
- Indonesian
- Italian
- Japanese
- Kannada
- Korean
- Latvian
- Lithuanian
- Macedonian
- Malayalam
- Marathi
- Nepali
- Norwegian
- Persian
- Polish
- Portuguese
- Punjabi
- Romanian
- Russian
- Slovak
- Slovenian
- Somali
- Spanish
- Swahili
- Swedish
- Tagalog
- Tamil
- Telugu
- Thai
- Turkish
- Ukrainian
- Urdu
- Vietnamese
- Welsh
Original Source?
Around 11 months ago, I downloaded and preprocessed 2.7M rows of text data, but completely forgot the original source of these datasets... All I remember is that I downloaded datasets from everywhere I could: HuggingFace, research papers, GitHub, Kaggle, SurgeAI, and Google search. I even fetched 20K+ tweets using the Twitter API. Recently, I came across two newer HuggingFace datasets, so I remembered to credit them below.
Known datasets:
- tomekkorbak/pile-toxicity-balanced2
- datasets/thai_toxicity_tweet
- inspection-ai/japanese-toxic-dataset (GitHub)
Limitations
Limitations include:
- All labels were rounded to the nearest integer. If a text was classified as 46%-54% toxic, the text itself might not be noticeably toxic or neutral.
- There were disagreements among moderators on some labels, due to ambiguity and lack of context.
- When there're only URL(s), emojis, or anything that's unrecognizable as natural language in the "text" column, the corresponding "lang" is "unkown".
- The validation data is not representative of the training data.
Have fun modelling!