jeanlee commited on
Commit
af273e7
1 Parent(s): b13c842

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. dataset_infos.json +1 -1
  3. 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: not hate speech
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
- "not hate speech"
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
- {0: "origin",
59
- 1: "physical",
60
- 2: "politics",
61
- 3: "profanity",
62
- 4: "age",
63
- 5: "gender",
64
- 6: "race",
65
- 7: "religion",
66
- 8: "not_hate_speech"
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):