Amanpreet Singh commited on
Commit
1735d9b
1 Parent(s): c8c670b

Update 0 => nothate, 1 => hate

Browse files
Files changed (2) hide show
  1. dataset_infos.json +1 -0
  2. dynahate.py +2 -2
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"0.2.3": {"description": "We present a human-and-model-in-the-loop process for dynamically generating datasets and training better performing and more robust hate detection models. We provide a new dataset of ~40,000 entries, generated and labelled by trained annotators over four rounds of dynamic data creation. It includes ~15,000 challenging perturbations and each hateful entry has fine-grained labels for the type and target of hate. Hateful entries make up 54% of the dataset, which is substantially higher than comparable datasets. We show that model performance is substantially improved using this approach. Models trained on later rounds of data collection perform better on test sets and are harder for annotators to trick. They also perform better on HATECHECK, a suite of functional tests for online hate detection. See https://arxiv.org/abs/2012.15761 for more details.\n", "citation": "@inproceedings{vidgen2021learning,\n title={Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detection},\n author={Vidgen, Bertie and Thrush, Tristan and Waseem, Zeerak and Kiela, Douwe},\n booktitle={Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},\n pages={1667--1682},\n year={2021}\n}\n", "homepage": "https://arxiv.org/abs/2012.15761", "license": "", "features": {"acl.id": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["nothate", "hate"], "id": null, "_type": "ClassLabel"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "X1": {"dtype": "int32", "id": null, "_type": "Value"}, "type": {"dtype": "string", "id": null, "_type": "Value"}, "target": {"dtype": "string", "id": null, "_type": "Value"}, "level": {"dtype": "string", "id": null, "_type": "Value"}, "split": {"dtype": "string", "id": null, "_type": "Value"}, "round.base": {"dtype": "int32", "id": null, "_type": "Value"}, "annotator": {"dtype": "string", "id": null, "_type": "Value"}, "round": {"dtype": "string", "id": null, "_type": "Value"}, "acl.id.matched": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "text", "label_column": "label"}], "builder_name": "dynahate", "config_name": "0.2.3", "version": {"version_str": "0.2.3", "description": null, "major": 0, "minor": 2, "patch": 3}, "splits": {"train": {"name": "train", "num_bytes": 9828044, "num_examples": 41144, "dataset_name": "dynahate"}, "validation": {"name": "validation", "num_bytes": 9828044, "num_examples": 41144, "dataset_name": "dynahate"}, "test": {"name": "test", "num_bytes": 9828044, "num_examples": 41144, "dataset_name": "dynahate"}}, "download_checksums": {"https://raw.githubusercontent.com/bvidgen/Dynamically-Generated-Hate-Speech-Dataset/main/Dynamically%20Generated%20Hate%20Dataset%20v0.2.3.csv": {"num_bytes": 9755776, "checksum": "6e0aa7e598ab5b648cb1f0b48626a3e5f2e39a5abbd9fee998efa5a0b6cab4ca"}}, "download_size": 9755776, "post_processing_size": null, "dataset_size": 29484132, "size_in_bytes": 39239908}, "0.2.2": {"description": "We present a human-and-model-in-the-loop process for dynamically generating datasets and training better performing and more robust hate detection models. We provide a new dataset of ~40,000 entries, generated and labelled by trained annotators over four rounds of dynamic data creation. It includes ~15,000 challenging perturbations and each hateful entry has fine-grained labels for the type and target of hate. Hateful entries make up 54% of the dataset, which is substantially higher than comparable datasets. We show that model performance is substantially improved using this approach. Models trained on later rounds of data collection perform better on test sets and are harder for annotators to trick. They also perform better on HATECHECK, a suite of functional tests for online hate detection. See https://arxiv.org/abs/2012.15761 for more details.\n", "citation": "@inproceedings{vidgen2021learning,\n title={Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detection},\n author={Vidgen, Bertie and Thrush, Tristan and Waseem, Zeerak and Kiela, Douwe},\n booktitle={Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},\n pages={1667--1682},\n year={2021}\n}\n", "homepage": "https://arxiv.org/abs/2012.15761", "license": "", "features": {"acl.id": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["nothate", "hate"], "id": null, "_type": "ClassLabel"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "X1": {"dtype": "int32", "id": null, "_type": "Value"}, "type": {"dtype": "string", "id": null, "_type": "Value"}, "target": {"dtype": "string", "id": null, "_type": "Value"}, "level": {"dtype": "string", "id": null, "_type": "Value"}, "split": {"dtype": "string", "id": null, "_type": "Value"}, "round.base": {"dtype": "int32", "id": null, "_type": "Value"}, "annotator": {"dtype": "string", "id": null, "_type": "Value"}, "round": {"dtype": "string", "id": null, "_type": "Value"}, "acl.id.matched": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "text", "label_column": "label"}], "builder_name": "dynahate", "config_name": "0.2.2", "version": "0.2.2", "splits": {"train": {"name": "train", "num_bytes": 9843093, "num_examples": 41255, "dataset_name": "dynahate"}, "validation": {"name": "validation", "num_bytes": 9843093, "num_examples": 41255, "dataset_name": "dynahate"}, "test": {"name": "test", "num_bytes": 9843093, "num_examples": 41255, "dataset_name": "dynahate"}}, "download_checksums": {"https://raw.githubusercontent.com/bvidgen/Dynamically-Generated-Hate-Speech-Dataset/main/Dynamically%20Generated%20Hate%20Dataset%20v0.2.2.csv": {"num_bytes": 9770336, "checksum": "1be97ea2b0000cdada09a89d24f4d008ea1eeb6edfb237664c749775d9e408cc"}}, "download_size": 9770336, "post_processing_size": null, "dataset_size": 29529279, "size_in_bytes": 39299615}}
dynahate.py CHANGED
@@ -38,7 +38,7 @@ _CITATION = """\
38
  """
39
 
40
  _DOWNLOAD_URL = "https://raw.githubusercontent.com/bvidgen/Dynamically-Generated-Hate-Speech-Dataset/main/Dynamically%20Generated%20Hate%20Dataset%20v{version}.csv"
41
- _VERSIONS = ("0.2.2", "0.2.3")
42
 
43
 
44
  class Dynahate(datasets.GeneratorBasedBuilder):
@@ -51,7 +51,7 @@ class Dynahate(datasets.GeneratorBasedBuilder):
51
  features=datasets.Features(
52
  {
53
  "acl.id": datasets.Value("string"),
54
- "label": datasets.features.ClassLabel(names=["hate", "nothate"]),
55
  "text": datasets.Value("string"),
56
  "X1": datasets.Value("int32"),
57
  "type": datasets.Value("string"),
 
38
  """
39
 
40
  _DOWNLOAD_URL = "https://raw.githubusercontent.com/bvidgen/Dynamically-Generated-Hate-Speech-Dataset/main/Dynamically%20Generated%20Hate%20Dataset%20v{version}.csv"
41
+ _VERSIONS = ("0.2.3", "0.2.2")
42
 
43
 
44
  class Dynahate(datasets.GeneratorBasedBuilder):
 
51
  features=datasets.Features(
52
  {
53
  "acl.id": datasets.Value("string"),
54
+ "label": datasets.features.ClassLabel(names=["nothate", "hate"]),
55
  "text": datasets.Value("string"),
56
  "X1": datasets.Value("int32"),
57
  "type": datasets.Value("string"),