Datasets:
Added metadata
Browse files
README.md
CHANGED
|
@@ -8,6 +8,13 @@ licenses:
|
|
| 8 |
task_categories:
|
| 9 |
- text-classification
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
# Offensive language dataset of Croatian, English and Slovenian comments FRENK 1.0
|
|
@@ -18,8 +25,8 @@ The data in each language (Croatian (hr), English (en), Slovenian (sl), and topi
|
|
| 18 |
|
| 19 |
For this dataset only the English data was used. Training segment has been split into beginning 90% (published here as training split) and end 10% (published here as dev split).
|
| 20 |
|
| 21 |
-
# Usage in `Transformers`
|
| 22 |
|
|
|
|
| 23 |
```python
|
| 24 |
import datasets
|
| 25 |
ds = datasets.load_dataset("classla/FRENK-hate-en","binary")
|
|
@@ -36,6 +43,26 @@ _CLASS_MAP_BINARY = {
|
|
| 36 |
```
|
| 37 |
The original labels are available if the dataset is loaded with the `multiclass` option:
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
```python
|
| 40 |
import datasets
|
| 41 |
ds = datasets.load_dataset("classla/FRENK-hate-en","multiclass").
|
|
@@ -54,14 +81,14 @@ _CLASS_MAP_MULTICLASS = {
|
|
| 54 |
```
|
| 55 |
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
* `text`: text
|
| 60 |
* `target`: who is the target of the hate-speech text ("no target", "commenter", "target" (migrants or LGBT, depending on the topic), or "related to" (again, the topic))
|
| 61 |
* `topic`: whether the text relates to lgbt or migrants hate-speech domains
|
| 62 |
* `label`: label of the text instance, see above.
|
| 63 |
|
| 64 |
-
|
| 65 |
|
| 66 |
```
|
| 67 |
{'text': "Not everyone has the option of a rainbow reaction; I don't but wish I did.",
|
|
@@ -70,7 +97,7 @@ _CLASS_MAP_MULTICLASS = {
|
|
| 70 |
'label': 0}
|
| 71 |
```
|
| 72 |
|
| 73 |
-
|
| 74 |
|
| 75 |
When using this dataset please cite the following paper:
|
| 76 |
|
|
|
|
| 8 |
task_categories:
|
| 9 |
- text-classification
|
| 10 |
|
| 11 |
+
task_ids:
|
| 12 |
+
- text-classification-other-hate-speech-detection
|
| 13 |
+
- text-classification-other-offensive-languagage
|
| 14 |
+
|
| 15 |
+
size_categories:
|
| 16 |
+
- 1K<n<10K
|
| 17 |
+
|
| 18 |
---
|
| 19 |
|
| 20 |
# Offensive language dataset of Croatian, English and Slovenian comments FRENK 1.0
|
|
|
|
| 25 |
|
| 26 |
For this dataset only the English data was used. Training segment has been split into beginning 90% (published here as training split) and end 10% (published here as dev split).
|
| 27 |
|
|
|
|
| 28 |
|
| 29 |
+
## Usage in `Transformers`
|
| 30 |
```python
|
| 31 |
import datasets
|
| 32 |
ds = datasets.load_dataset("classla/FRENK-hate-en","binary")
|
|
|
|
| 43 |
```
|
| 44 |
The original labels are available if the dataset is loaded with the `multiclass` option:
|
| 45 |
|
| 46 |
+
```python
|
| 47 |
+
import datasets
|
| 48 |
+
ds = datasets.load_dataset("5roop/FRENK-hate-en","multiclass").
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
In this case the encoding used is:
|
| 52 |
+
```python
|
| 53 |
+
_CLASS_MAP_MULTICLASS = {
|
| 54 |
+
'Acceptable speech': 0,
|
| 55 |
+
'Inappropriate': 1,
|
| 56 |
+
'Background offensive': 2,
|
| 57 |
+
'Other offensive': 3,
|
| 58 |
+
'Background violence': 4,
|
| 59 |
+
'Other violence': 5,
|
| 60 |
+
}
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
The original labels are available if the dataset is loaded with the `multiclass` option:
|
| 65 |
+
|
| 66 |
```python
|
| 67 |
import datasets
|
| 68 |
ds = datasets.load_dataset("classla/FRENK-hate-en","multiclass").
|
|
|
|
| 81 |
```
|
| 82 |
|
| 83 |
|
| 84 |
+
## Data structure
|
| 85 |
|
| 86 |
* `text`: text
|
| 87 |
* `target`: who is the target of the hate-speech text ("no target", "commenter", "target" (migrants or LGBT, depending on the topic), or "related to" (again, the topic))
|
| 88 |
* `topic`: whether the text relates to lgbt or migrants hate-speech domains
|
| 89 |
* `label`: label of the text instance, see above.
|
| 90 |
|
| 91 |
+
## Data instance
|
| 92 |
|
| 93 |
```
|
| 94 |
{'text': "Not everyone has the option of a rainbow reaction; I don't but wish I did.",
|
|
|
|
| 97 |
'label': 0}
|
| 98 |
```
|
| 99 |
|
| 100 |
+
## Citation information
|
| 101 |
|
| 102 |
When using this dataset please cite the following paper:
|
| 103 |
|