Datasets:
Upload 3 files
Browse files- README.md +3 -3
- dataset_infos.json +2 -2
- 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:
|
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 |
-
{'
|
117 |
-
'label':
|
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 |
-
"
|
8 |
"dtype": "string",
|
9 |
"id": null,
|
10 |
"_type": "Value"
|
11 |
},
|
12 |
-
"
|
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 |
-
"
|
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 |
-
"
|
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 |
|