ruanchaves commited on
Commit
e12dd41
1 Parent(s): c3efdf4

bool hate speech

Browse files
Files changed (1) hide show
  1. hatebr.py +2 -2
hatebr.py CHANGED
@@ -17,7 +17,7 @@ _DESCRIPTION = """
17
  HateBR is the first large-scale expert annotated corpus of Brazilian Instagram comments for hate speech and offensive language detection on the web and social media. The HateBR corpus was collected from Brazilian Instagram comments of politicians and manually annotated by specialists. It is composed of 7,000 documents annotated according to three different layers: a binary classification (offensive versus non-offensive comments), offensiveness-level (highly, moderately, and slightly offensive messages), and nine hate speech groups (xenophobia, racism, homophobia, sexism, religious intolerance, partyism, apology for the dictatorship, antisemitism, and fatphobia). Each comment was annotated by three different annotators and achieved high inter-annotator agreement. Furthermore, baseline experiments were implemented reaching 85% of F1-score outperforming the current literature models for the Portuguese language. Accordingly, we hope that the proposed expertly annotated corpus may foster research on hate speech and offensive language detection in the Natural Language Processing area.
18
  """
19
  _URLS = {
20
- "train": "https://raw.githubusercontent.com/ruanchaves/HateBR/main/dataset/HateBR.csv"
21
  }
22
 
23
  _LABEL_INT_KEY = {
@@ -45,7 +45,7 @@ class Boun(datasets.GeneratorBasedBuilder):
45
  features=datasets.Features(
46
  {
47
  "instagram_comments": datasets.Value("string"),
48
- "offensive_language": datasets.Value("int32"),
49
  "offensiveness_levels": datasets.Value("int32"),
50
  "antisemitism": datasets.Value("bool"),
51
  "apology_for_the_dictatorship": datasets.Value("bool"),
 
17
  HateBR is the first large-scale expert annotated corpus of Brazilian Instagram comments for hate speech and offensive language detection on the web and social media. The HateBR corpus was collected from Brazilian Instagram comments of politicians and manually annotated by specialists. It is composed of 7,000 documents annotated according to three different layers: a binary classification (offensive versus non-offensive comments), offensiveness-level (highly, moderately, and slightly offensive messages), and nine hate speech groups (xenophobia, racism, homophobia, sexism, religious intolerance, partyism, apology for the dictatorship, antisemitism, and fatphobia). Each comment was annotated by three different annotators and achieved high inter-annotator agreement. Furthermore, baseline experiments were implemented reaching 85% of F1-score outperforming the current literature models for the Portuguese language. Accordingly, we hope that the proposed expertly annotated corpus may foster research on hate speech and offensive language detection in the Natural Language Processing area.
18
  """
19
  _URLS = {
20
+ "train": "https://raw.githubusercontent.com/franciellevargas/HateBR/2d18c5b9410c2dfdd6d5394caa54d608857dae7c/dataset/HateBR.csv"
21
  }
22
 
23
  _LABEL_INT_KEY = {
 
45
  features=datasets.Features(
46
  {
47
  "instagram_comments": datasets.Value("string"),
48
+ "offensive_language": datasets.Value("bool"),
49
  "offensiveness_levels": datasets.Value("int32"),
50
  "antisemitism": datasets.Value("bool"),
51
  "apology_for_the_dictatorship": datasets.Value("bool"),