Datasets:
Upload 3 files
Browse files- README.md +1 -1
- dataset_infos.json +1 -1
- kmhas_korean_hate_speech.py +9 -10
README.md
CHANGED
@@ -42,7 +42,7 @@ dataset_info:
|
|
42 |
5: gender
|
43 |
6: race
|
44 |
7: religion
|
45 |
-
8:
|
46 |
splits:
|
47 |
- name: train
|
48 |
num_bytes: 6845463
|
|
|
42 |
5: gender
|
43 |
6: race
|
44 |
7: religion
|
45 |
+
8: not_hate_speech
|
46 |
splits:
|
47 |
- name: train
|
48 |
num_bytes: 6845463
|
dataset_infos.json
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
"gender",
|
22 |
"race",
|
23 |
"religion",
|
24 |
-
"
|
25 |
],
|
26 |
"names_file": null,
|
27 |
"id": null,
|
|
|
21 |
"gender",
|
22 |
"race",
|
23 |
"religion",
|
24 |
+
"not_hate_speech"
|
25 |
],
|
26 |
"names_file": null,
|
27 |
"id": null,
|
kmhas_korean_hate_speech.py
CHANGED
@@ -55,16 +55,15 @@ _VALIDATION_DOWNLOAD_URL = "https://raw.githubusercontent.com/adlnlp/K-MHaS/main
|
|
55 |
_TEST_DOWNLOAD_URL = "https://raw.githubusercontent.com/adlnlp/K-MHaS/main/data/kmhas_test.txt"
|
56 |
|
57 |
_CLASS_NAMES = [
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
}
|
68 |
]
|
69 |
|
70 |
class Kmhas(datasets.GeneratorBasedBuilder):
|
|
|
55 |
_TEST_DOWNLOAD_URL = "https://raw.githubusercontent.com/adlnlp/K-MHaS/main/data/kmhas_test.txt"
|
56 |
|
57 |
_CLASS_NAMES = [
|
58 |
+
"origin",
|
59 |
+
"physical",
|
60 |
+
"politics",
|
61 |
+
"profanity",
|
62 |
+
"age",
|
63 |
+
"gender",
|
64 |
+
"race",
|
65 |
+
"religion",
|
66 |
+
"not_hate_speech"
|
|
|
67 |
]
|
68 |
|
69 |
class Kmhas(datasets.GeneratorBasedBuilder):
|