Datasets:
Tasks:
Text Classification
Sub-tasks:
hate-speech-detection
Languages:
Portuguese
Size:
1K<n<10K
Tags:
instagram
DOI:
Commit
·
8f5a87c
1
Parent(s):
67fcdad
hate speech labels
Browse files
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):
|