jeanlee commited on
Commit
71b22db
β€’
1 Parent(s): c5d35fc

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +3 -3
  2. dataset_infos.json +2 -2
  3. kmhas_korean_hate_speech.py +2 -2
README.md CHANGED
@@ -28,7 +28,7 @@ task_ids:
28
  paperswithcode_id: korean-multi-label-hate-speech-dataset
29
  dataset_info:
30
  features:
31
- - name: document
32
  dtype: string
33
  - name: label
34
  sequence:
@@ -113,8 +113,8 @@ Korean
113
  The dataset is provided with train/validation/test set in the txt format. Each instance is a news comment with a corresponding one or more hate speech classes (labels: `Politics`, `Origin`, `Physical`, `Age`, `Gender`, `Religion`, `Race`, `Profanity`) or `Not Hate Speech` class. The label numbers matching in both English and Korean is in the data fields section.
114
 
115
  ```python
116
- {'document':'μˆ˜κΌ΄ν‹€λ”±μ‹œν‚€λ“€μ΄ λ‹€ λ””μ Έμ•Ό λ‚˜λΌκ°€ λ˜‘λ°”λ‘œ 될것같닀..닡이 μ—†λŠ” μ’…μžλ“€γ… '
117
- 'label': '2,3,4'
118
  }
119
  ```
120
 
 
28
  paperswithcode_id: korean-multi-label-hate-speech-dataset
29
  dataset_info:
30
  features:
31
+ - name: text
32
  dtype: string
33
  - name: label
34
  sequence:
 
113
  The dataset is provided with train/validation/test set in the txt format. Each instance is a news comment with a corresponding one or more hate speech classes (labels: `Politics`, `Origin`, `Physical`, `Age`, `Gender`, `Religion`, `Race`, `Profanity`) or `Not Hate Speech` class. The label numbers matching in both English and Korean is in the data fields section.
114
 
115
  ```python
116
+ {'text':'μˆ˜κΌ΄ν‹€λ”±μ‹œν‚€λ“€μ΄ λ‹€ λ””μ Έμ•Ό λ‚˜λΌκ°€ λ˜‘λ°”λ‘œ 될것같닀..닡이 μ—†λŠ” μ’…μžλ“€γ… '
117
+ 'label': [2, 3, 4]
118
  }
119
  ```
120
 
dataset_infos.json CHANGED
@@ -4,12 +4,12 @@
4
  "homepage": "https://github.com/adlnlp/K-MHaS",
5
  "license": "cc-by-sa-4.0",
6
  "features": {
7
- "document": {
8
  "dtype": "string",
9
  "id": null,
10
  "_type": "Value"
11
  },
12
- "labels": {
13
  "feature": {
14
  "num_classes": 9,
15
  "names": [
 
4
  "homepage": "https://github.com/adlnlp/K-MHaS",
5
  "license": "cc-by-sa-4.0",
6
  "features": {
7
+ "text": {
8
  "dtype": "string",
9
  "id": null,
10
  "_type": "Value"
11
  },
12
+ "label": {
13
  "feature": {
14
  "num_classes": 9,
15
  "names": [
kmhas_korean_hate_speech.py CHANGED
@@ -74,7 +74,7 @@ class Kmhas(datasets.GeneratorBasedBuilder):
74
  def _info(self):
75
  features = datasets.Features(
76
  {
77
- "document": datasets.Value("string"),
78
  "label": datasets.Sequence(datasets.ClassLabel(names=_CLASS_NAMES))
79
  }
80
  )
@@ -108,7 +108,7 @@ class Kmhas(datasets.GeneratorBasedBuilder):
108
  sentence = row[0]
109
  label = [int(ind) for ind in row[1].split(",")]
110
  yield index, {
111
- "document" : sentence,
112
  "label": label,
113
  }
114
 
 
74
  def _info(self):
75
  features = datasets.Features(
76
  {
77
+ "text": datasets.Value("string"),
78
  "label": datasets.Sequence(datasets.ClassLabel(names=_CLASS_NAMES))
79
  }
80
  )
 
108
  sentence = row[0]
109
  label = [int(ind) for ind in row[1].split(",")]
110
  yield index, {
111
+ "text" : sentence,
112
  "label": label,
113
  }
114