ruanchaves commited on
Commit
8f5a87c
·
1 Parent(s): 67fcdad

hate speech labels

Browse files
Files changed (1) hide show
  1. hatebr.py +1 -1
hatebr.py CHANGED
@@ -81,7 +81,7 @@ class Boun(datasets.GeneratorBasedBuilder):
81
  for default_label in _LABEL_INT_KEY.keys():
82
  row["hate_speech"][default_label] = False
83
  for int_label in categories:
84
- row["hate_speech"][_INT_LABEL_KEY[int_label]] = True
85
  return row
86
  records = pd.read_csv(filepath).to_dict("records")
87
  for idx, row in enumerate(records):
 
81
  for default_label in _LABEL_INT_KEY.keys():
82
  row["hate_speech"][default_label] = False
83
  for int_label in categories:
84
+ row["hate_speech"][_INT_LABEL_KEY[int(int_label)]] = True
85
  return row
86
  records = pd.read_csv(filepath).to_dict("records")
87
  for idx, row in enumerate(records):