off-load
Loaders for 43 hate speech and offensive language data sets in 18 languages. Each returns a list of {'text': ..., 'label': ...}; off_load.preproc maps the label names to classes. Formerly dataload.
functions
| Code | Dataset Name | Languages |
|---|---|---|
conan |
CONAN | en/fr/it |
mlma_hate |
MLMA_hate_speech | ar/en/fr |
largescale_hate |
largescale-hatespeech | en/tr |
hateval2019 |
hateval2019 | en/es |
hasoc2020 |
hasoc-2020 | de/en/hi |
en_hate1 |
hate-speech-and-offensive-language | en |
en_hate2 |
NAACL_SRW_2016 | en |
en_hate3 |
hate-speech-dataset | en |
en_hate4 |
hatespeechtwitter | en |
en_delft |
delft/data/sequenceLabelling/toxic | en |
en_offense19 |
OffensEval 2019 (SemEval 2019 - Task 6) | en |
en_offense20 |
OffensEval 2020 | en |
en_olid |
OLID | en |
en_hatexplain |
HateXplain | en |
en_malignant |
MalignantCommentClassification | en |
en_cad |
ContextualAbuseDataset | en |
en_threat1 |
hexis-english-threats | en |
en_spam1 |
smsspamcollection | en |
de_germeval |
loader for various versions of the tab-separated germeval format. also: haspeede 2020 (it) | de/it |
de_germeval2021 |
germeval 2021 | de |
es_hate1 |
haternet | es |
es_hate2 |
violentometro-online | es |
it_hate1 |
Italian Hate Speech Corpus (IHSC) | it |
ru_hate1 |
russian-inappropriate-messages | ru |
ru_hate2 |
Russian Language Toxic Comments | ru |
ru_hate3 |
RuEthnoHate | ru |
fr_hate1 |
help_dicrah | fr |
ar_hate1 |
Aljazeera Deleted Comments | ar |
ar_hate2 |
Corpus_of_offensive_language_in_Arabic | ar |
pt_hate1 |
OffComBR | pt |
pt_hate2 |
Portuguese-Hate-Speech-Dataset | pt |
pt_hate3 |
ToLD-Br | pt |
tr_troff |
troff | tr |
ko_hatescore |
hatescore-korean-hate-speech | ko |
hi_constraint |
Constraint_AAAI2021 | hi |
el_offense20 |
greek offenseval 2020 | el |
id_hate1 |
id-hatespeech-detection | id |
id_hate2 |
id-multi-label-hate-speech-and-abusive-language-detection | id |
mr_mahahate |
L3Cube-MahaHate | mr |
pl_poleval19 |
PolEval_2019 | pl |
vi_vihsd |
vihsd | vi |
da_dkhate |
dkhate | da |
nl_dalc |
DALC | nl |
wordlist |
loader for wordlists | - |
augmentations |
loader for dataset-specific augmentations | - |
relabel |
loader for re-labeled data | - |
debias_madlibs |
loads eval_datasets from unintended-ml-bias-analysis | - |
twint |
loads the output of twint scraper | - |
install
pip install off-load, then import off_load
for loading from a MongoDB/gridFS data lake (see datalake):
pip install "off-load[datalake]"
Used by autofit2 for its moderation configs: pip install "autofit2[dataload]".
usage
By default, data sets are read from the local file system, below data/ in the working directory. The default paths follow the layout of the original repositories, e.g.:
git clone https://github.com/t-davidson/hate-speech-and-offensive-language data/en/hate-speech-and-offensive-language
from off_load.loader import en_hate1
data = en_hate1() # [{'text': ..., 'label': ...}, ...]
Other locations can be passed with files=[...]. If DATALAKE_ADDR is set (e.g. 127.0.0.1:27017), data sets are loaded from gridFS instead.
good to know
off-load(asdataload) is built into augment, bpemb, and autofit as well as autofit2.- The paper Antypas & Camacho-Collados - Robust Hate Speech Detection in Social Media: A Cross-Dataset Empirical Evaluation [arxiv link] backs up some of our re-labelings and selective use of certain data sets in order to improve data aggregation.
Metadata
Release files for off-load 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| off_load-0.3.0.tar.gz | 19.2 kB | Without provenance | Details for off_load-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| off_load-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for off_load-0.3.0-py3-none-any.whl |
Total release size: 37.2 kB
Release files / off_load-0.3.0.tar.gz
| Download URL | off_load-0.3.0.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a12863239868bc7c9a773c3a9bf05f7b5cde33e8532e8c500abe263f6d5eb8a
|
|
BLAKE2b-256 checksum How to use checksums |
74926b188b4f9c228ed2898bfd3a514eccf67b1756dafbdd9d60965821c1377d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Release files / off_load-0.3.0-py3-none-any.whl
| Download URL | off_load-0.3.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e92451d6f309d8b0d1739b1757aa4a1106cded994630032e7c045149cc603c99
|
|
BLAKE2b-256 checksum How to use checksums |
5e0df30fa430474410ba448b1239c529234f424ec7c56d7d561ba3f322e97731
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Security for off-load 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.