5roop commited on
Commit
ce76283
1 Parent(s): 64c91e8

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +98 -0
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ languages:
3
+ - en
4
+
5
+ licenses:
6
+ - CLARIN.SI Licence ACA ID-BY-NC-INF-NORED 1.0
7
+
8
+ task_categories:
9
+ - text-classification
10
+
11
+ ---
12
+
13
+ # Offensive language dataset of Croatian, English and Slovenian comments FRENK 1.0
14
+
15
+ The original FRENK dataset consists of comments to Facebook posts (news articles) of mainstream media outlets from Croatia, Great Britain, and Slovenia, on the topics of migrants and LGBT. The dataset contains whole discussion threads. Each comment is annotated by the type of socially unacceptable discourse (e.g., inappropriate, offensive, violent speech) and its target (e.g., migrants/LGBT, commenters, media). The annotation schema is described in detail in [https://arxiv.org/pdf/1906.02045.pdf]. Usernames in the metadata are pseudo-anonymised and removed from the comments.
16
+
17
+ The data in each language (Croatian (hr), English (en), Slovenian (sl), and topic (migrants, LGBT) is divided into a training and a testing portion. The training and testing data consist of separate discussion threads, i.e., there is no cross-discussion-thread contamination between training and testing data. The sizes of the splits are the following: Croatian, migrants: 4356 training comments, 978 testing comments; Croatian LGBT: 4494 training comments, 1142 comments; English, migrants: 4540 training comments, 1285 testing comments; English, LGBT: 4819 training comments, 1017 testing comments; Slovenian, migrants: 5145 training comments, 1277 testing comments; Slovenian, LGBT: 2842 training comments, 900 testing comments.
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("5roop/FRENK-hate-en","binary")
26
+ ```
27
+
28
+ For binary classification the following encoding is used:
29
+
30
+
31
+ ```python
32
+ _CLASS_MAP_BINARY = {
33
+ 'Acceptable': 0,
34
+ 'Offensive': 1,
35
+ }
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("5roop/FRENK-hate-en","multiclass").
42
+ ```
43
+
44
+ In this case the encoding used is:
45
+ ```python
46
+ _CLASS_MAP_MULTICLASS = {
47
+ 'Acceptable speech': 0,
48
+ 'Inappropriate': 1,
49
+ 'Background offensive': 2,
50
+ 'Other offensive': 3,
51
+ 'Background violence': 4,
52
+ 'Other violence': 5,
53
+ }
54
+ ```
55
+
56
+
57
+ # Data structure
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
+ # Data instance
65
+
66
+ ```
67
+ {'text': "Not everyone has the option of a rainbow reaction; I don't but wish I did.",
68
+ 'target': 'No target',
69
+ 'topic': 'lgbt',
70
+ 'label': 0}
71
+ ```
72
+
73
+
74
+
75
+ When using this dataset please cite the following paper:
76
+
77
+ ```
78
+ @misc{ljubešić2019frenk,
79
+ title={The FRENK Datasets of Socially Unacceptable Discourse in Slovene and English},
80
+ author={Nikola Ljubešić and Darja Fišer and Tomaž Erjavec},
81
+ year={2019},
82
+ eprint={1906.02045},
83
+ archivePrefix={arXiv},
84
+ primaryClass={cs.CL},
85
+ url={https://arxiv.org/abs/1906.02045}
86
+ }
87
+ ```
88
+
89
+ The original dataset can be cited as
90
+ ```
91
+ @misc{11356/1433,
92
+ title = {Offensive language dataset of Croatian, English and Slovenian comments {FRENK} 1.0},
93
+ author = {Ljube{\v s}i{\'c}, Nikola and Fi{\v s}er, Darja and Erjavec, Toma{\v z}},
94
+ url = {http://hdl.handle.net/11356/1433},
95
+ note = {Slovenian language resource repository {CLARIN}.{SI}},
96
+ copyright = {{CLARIN}.{SI} Licence {ACA} {ID}-{BY}-{NC}-{INF}-{NORED} 1.0},
97
+ year = {2021} }
98
+ ```