5roop commited on
Commit
8d52bfe
1 Parent(s): d332207

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +96 -0
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Croatian 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-sl","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-sl","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
+ # Data structure
57
+
58
+ * `text`: text
59
+ * `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))
60
+ * `topic`: whether the text relates to lgbt or migrants hate-speech domains
61
+ * `label`: label of the text instance, see above.
62
+
63
+ # Data instance
64
+
65
+ ```
66
+ {'text': 'Otroci so odprti in brez predsodkov.Predsodke jim vcepimo starejši,starši,družba,družina...Če otroku lepo razložimo,razume.Nikoli ni dobro,da omejujemo otroka,njegovo inteligenco in duhovnost z lastnim ne razumevanjem nečesa ali nekoga.Predsodek je miselni zapor,prepreka,da bi bili svobodni.Ljubezen je svoboda.Sem ZA spremembo zakona!Srečno :D',
67
+ 'target': 'No target',
68
+ 'topic': 'lgbt',
69
+ 'label': 0}
70
+ ```
71
+
72
+
73
+ When using this dataset please cite the following paper:
74
+
75
+ ```
76
+ @misc{ljubešić2019frenk,
77
+ title={The FRENK Datasets of Socially Unacceptable Discourse in Slovene and English},
78
+ author={Nikola Ljubešić and Darja Fišer and Tomaž Erjavec},
79
+ year={2019},
80
+ eprint={1906.02045},
81
+ archivePrefix={arXiv},
82
+ primaryClass={cs.CL},
83
+ url={https://arxiv.org/abs/1906.02045}
84
+ }
85
+ ```
86
+
87
+ The original dataset can be cited as
88
+ ```
89
+ @misc{11356/1433,
90
+ title = {Offensive language dataset of Croatian, English and Slovenian comments {FRENK} 1.0},
91
+ author = {Ljube{\v s}i{\'c}, Nikola and Fi{\v s}er, Darja and Erjavec, Toma{\v z}},
92
+ url = {http://hdl.handle.net/11356/1433},
93
+ note = {Slovenian language resource repository {CLARIN}.{SI}},
94
+ copyright = {{CLARIN}.{SI} Licence {ACA} {ID}-{BY}-{NC}-{INF}-{NORED} 1.0},
95
+ year = {2021} }
96
+ ```