kush5699 ck37 commited on
Commit
ecef4e5
·
verified ·
0 Parent(s):

Duplicate from ucberkeley-dlab/measuring-hate-speech

Browse files

Co-authored-by: Chris Kennedy <ck37@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
28
+ measuring-hate-speech.csv filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,385 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - crowdsourced
4
+ language:
5
+ - en
6
+ license:
7
+ - cc-by-4.0
8
+ multilinguality:
9
+ - monolingual
10
+ source_datasets:
11
+ - original
12
+ task_categories:
13
+ - text-classification
14
+ task_ids:
15
+ - hate-speech-detection
16
+ - sentiment-classification
17
+ - multi-label-classification
18
+ pretty_name: measuring-hate-speech
19
+ tags:
20
+ - arxiv:2009.10277
21
+ - counterspeech
22
+ - hate-speech
23
+ - text-regression
24
+ - irt
25
+ dataset_info:
26
+ features:
27
+ - name: comment_id
28
+ dtype: int32
29
+ - name: annotator_id
30
+ dtype: int32
31
+ - name: platform
32
+ dtype: int8
33
+ - name: sentiment
34
+ dtype: float64
35
+ - name: respect
36
+ dtype: float64
37
+ - name: insult
38
+ dtype: float64
39
+ - name: humiliate
40
+ dtype: float64
41
+ - name: status
42
+ dtype: float64
43
+ - name: dehumanize
44
+ dtype: float64
45
+ - name: violence
46
+ dtype: float64
47
+ - name: genocide
48
+ dtype: float64
49
+ - name: attack_defend
50
+ dtype: float64
51
+ - name: hatespeech
52
+ dtype: float64
53
+ - name: hate_speech_score
54
+ dtype: float64
55
+ - name: text
56
+ dtype: string
57
+ - name: infitms
58
+ dtype: float64
59
+ - name: outfitms
60
+ dtype: float64
61
+ - name: annotator_severity
62
+ dtype: float64
63
+ - name: std_err
64
+ dtype: float64
65
+ - name: annotator_infitms
66
+ dtype: float64
67
+ - name: annotator_outfitms
68
+ dtype: float64
69
+ - name: hypothesis
70
+ dtype: float64
71
+ - name: target_race_asian
72
+ dtype: bool
73
+ - name: target_race_black
74
+ dtype: bool
75
+ - name: target_race_latinx
76
+ dtype: bool
77
+ - name: target_race_middle_eastern
78
+ dtype: bool
79
+ - name: target_race_native_american
80
+ dtype: bool
81
+ - name: target_race_pacific_islander
82
+ dtype: bool
83
+ - name: target_race_white
84
+ dtype: bool
85
+ - name: target_race_other
86
+ dtype: bool
87
+ - name: target_race
88
+ dtype: bool
89
+ - name: target_religion_atheist
90
+ dtype: bool
91
+ - name: target_religion_buddhist
92
+ dtype: bool
93
+ - name: target_religion_christian
94
+ dtype: bool
95
+ - name: target_religion_hindu
96
+ dtype: bool
97
+ - name: target_religion_jewish
98
+ dtype: bool
99
+ - name: target_religion_mormon
100
+ dtype: bool
101
+ - name: target_religion_muslim
102
+ dtype: bool
103
+ - name: target_religion_other
104
+ dtype: bool
105
+ - name: target_religion
106
+ dtype: bool
107
+ - name: target_origin_immigrant
108
+ dtype: bool
109
+ - name: target_origin_migrant_worker
110
+ dtype: bool
111
+ - name: target_origin_specific_country
112
+ dtype: bool
113
+ - name: target_origin_undocumented
114
+ dtype: bool
115
+ - name: target_origin_other
116
+ dtype: bool
117
+ - name: target_origin
118
+ dtype: bool
119
+ - name: target_gender_men
120
+ dtype: bool
121
+ - name: target_gender_non_binary
122
+ dtype: bool
123
+ - name: target_gender_transgender_men
124
+ dtype: bool
125
+ - name: target_gender_transgender_unspecified
126
+ dtype: bool
127
+ - name: target_gender_transgender_women
128
+ dtype: bool
129
+ - name: target_gender_women
130
+ dtype: bool
131
+ - name: target_gender_other
132
+ dtype: bool
133
+ - name: target_gender
134
+ dtype: bool
135
+ - name: target_sexuality_bisexual
136
+ dtype: bool
137
+ - name: target_sexuality_gay
138
+ dtype: bool
139
+ - name: target_sexuality_lesbian
140
+ dtype: bool
141
+ - name: target_sexuality_straight
142
+ dtype: bool
143
+ - name: target_sexuality_other
144
+ dtype: bool
145
+ - name: target_sexuality
146
+ dtype: bool
147
+ - name: target_age_children
148
+ dtype: bool
149
+ - name: target_age_teenagers
150
+ dtype: bool
151
+ - name: target_age_young_adults
152
+ dtype: bool
153
+ - name: target_age_middle_aged
154
+ dtype: bool
155
+ - name: target_age_seniors
156
+ dtype: bool
157
+ - name: target_age_other
158
+ dtype: bool
159
+ - name: target_age
160
+ dtype: bool
161
+ - name: target_disability_physical
162
+ dtype: bool
163
+ - name: target_disability_cognitive
164
+ dtype: bool
165
+ - name: target_disability_neurological
166
+ dtype: bool
167
+ - name: target_disability_visually_impaired
168
+ dtype: bool
169
+ - name: target_disability_hearing_impaired
170
+ dtype: bool
171
+ - name: target_disability_unspecific
172
+ dtype: bool
173
+ - name: target_disability_other
174
+ dtype: bool
175
+ - name: target_disability
176
+ dtype: bool
177
+ - name: target_politics_alt_right
178
+ dtype: bool
179
+ - name: target_politics_communist
180
+ dtype: bool
181
+ - name: target_politics_conservative
182
+ dtype: bool
183
+ - name: target_politics_democrat
184
+ dtype: bool
185
+ - name: target_politics_green_party
186
+ dtype: bool
187
+ - name: target_politics_leftist
188
+ dtype: bool
189
+ - name: target_politics_liberal
190
+ dtype: bool
191
+ - name: target_politics_libertarian
192
+ dtype: bool
193
+ - name: target_politics_republican
194
+ dtype: bool
195
+ - name: target_politics_socialist
196
+ dtype: bool
197
+ - name: target_politics_other
198
+ dtype: bool
199
+ - name: target_politics
200
+ dtype: bool
201
+ - name: annotator_gender
202
+ dtype: string
203
+ - name: annotator_trans
204
+ dtype: string
205
+ - name: annotator_educ
206
+ dtype: string
207
+ - name: annotator_income
208
+ dtype: string
209
+ - name: annotator_ideology
210
+ dtype: string
211
+ - name: annotator_gender_men
212
+ dtype: bool
213
+ - name: annotator_gender_women
214
+ dtype: bool
215
+ - name: annotator_gender_non_binary
216
+ dtype: bool
217
+ - name: annotator_gender_prefer_not_to_say
218
+ dtype: bool
219
+ - name: annotator_gender_self_describe
220
+ dtype: bool
221
+ - name: annotator_transgender
222
+ dtype: bool
223
+ - name: annotator_cisgender
224
+ dtype: bool
225
+ - name: annotator_transgender_prefer_not_to_say
226
+ dtype: bool
227
+ - name: annotator_education_some_high_school
228
+ dtype: bool
229
+ - name: annotator_education_high_school_grad
230
+ dtype: bool
231
+ - name: annotator_education_some_college
232
+ dtype: bool
233
+ - name: annotator_education_college_grad_aa
234
+ dtype: bool
235
+ - name: annotator_education_college_grad_ba
236
+ dtype: bool
237
+ - name: annotator_education_professional_degree
238
+ dtype: bool
239
+ - name: annotator_education_masters
240
+ dtype: bool
241
+ - name: annotator_education_phd
242
+ dtype: bool
243
+ - name: annotator_income_<10k
244
+ dtype: bool
245
+ - name: annotator_income_10k-50k
246
+ dtype: bool
247
+ - name: annotator_income_50k-100k
248
+ dtype: bool
249
+ - name: annotator_income_100k-200k
250
+ dtype: bool
251
+ - name: annotator_income_>200k
252
+ dtype: bool
253
+ - name: annotator_ideology_extremeley_conservative
254
+ dtype: bool
255
+ - name: annotator_ideology_conservative
256
+ dtype: bool
257
+ - name: annotator_ideology_slightly_conservative
258
+ dtype: bool
259
+ - name: annotator_ideology_neutral
260
+ dtype: bool
261
+ - name: annotator_ideology_slightly_liberal
262
+ dtype: bool
263
+ - name: annotator_ideology_liberal
264
+ dtype: bool
265
+ - name: annotator_ideology_extremeley_liberal
266
+ dtype: bool
267
+ - name: annotator_ideology_no_opinion
268
+ dtype: bool
269
+ - name: annotator_race_asian
270
+ dtype: bool
271
+ - name: annotator_race_black
272
+ dtype: bool
273
+ - name: annotator_race_latinx
274
+ dtype: bool
275
+ - name: annotator_race_middle_eastern
276
+ dtype: bool
277
+ - name: annotator_race_native_american
278
+ dtype: bool
279
+ - name: annotator_race_pacific_islander
280
+ dtype: bool
281
+ - name: annotator_race_white
282
+ dtype: bool
283
+ - name: annotator_race_other
284
+ dtype: bool
285
+ - name: annotator_age
286
+ dtype: float64
287
+ - name: annotator_religion_atheist
288
+ dtype: bool
289
+ - name: annotator_religion_buddhist
290
+ dtype: bool
291
+ - name: annotator_religion_christian
292
+ dtype: bool
293
+ - name: annotator_religion_hindu
294
+ dtype: bool
295
+ - name: annotator_religion_jewish
296
+ dtype: bool
297
+ - name: annotator_religion_mormon
298
+ dtype: bool
299
+ - name: annotator_religion_muslim
300
+ dtype: bool
301
+ - name: annotator_religion_nothing
302
+ dtype: bool
303
+ - name: annotator_religion_other
304
+ dtype: bool
305
+ - name: annotator_sexuality_bisexual
306
+ dtype: bool
307
+ - name: annotator_sexuality_gay
308
+ dtype: bool
309
+ - name: annotator_sexuality_straight
310
+ dtype: bool
311
+ - name: annotator_sexuality_other
312
+ dtype: bool
313
+ splits:
314
+ - name: train
315
+ num_bytes: 53193054
316
+ num_examples: 135556
317
+ download_size: 20097387
318
+ dataset_size: 53193054
319
+ configs:
320
+ - config_name: default
321
+ data_files:
322
+ - split: train
323
+ path: data/train-*
324
+ ---
325
+
326
+ ## Dataset Description
327
+
328
+ - **Homepage:** http://hatespeech.berkeley.edu
329
+ - **Paper:** https://arxiv.org/abs/2009.10277
330
+
331
+ # Dataset card for _Measuring Hate Speech_
332
+
333
+ This is a public release of the dataset described in Kennedy et al. (2020) and Sachdeva et al. (2022), consisting of 39,565 comments annotated by 7,912 annotators, for 135,556 combined rows. The primary outcome variable is the "hate speech score" but the 10 constituent ordinal labels (sentiment, (dis)respect, insult, humiliation, inferior status, violence, dehumanization, genocide, attack/defense, hate speech benchmark) can also be treated as outcomes. Includes 8 target identity groups (race/ethnicity, religion, national origin/citizenship, gender, sexual orientation, age, disability, political ideology) and 42 target identity subgroups, as well as 6 annotator demographics and 40 subgroups. The hate speech score incorporates an IRT adjustment by estimating variation in annotator interpretation of the labeling guidelines.
334
+
335
+ This dataset card is a work in progress and will be improved over time.
336
+
337
+ ## Key dataset columns
338
+
339
+ * hate_speech_score - continuous hate speech measure, where higher = more hateful and lower = less hateful. > 0.5 is approximately hate speech, < -1 is counter or supportive speech, and -1 to +0.5 is neutral or ambiguous.
340
+ * text - lightly processed text of a social media post
341
+ * comment\_id - unique ID for each comment
342
+ * annotator\_id - unique ID for each annotator
343
+ * sentiment - ordinal label that is combined into the continuous score
344
+ * respect - ordinal label that is combined into the continuous score
345
+ * insult - ordinal label that is combined into the continuous score
346
+ * humiliate - ordinal label that is combined into the continuous score
347
+ * status - ordinal label that is combined into the continuous score
348
+ * dehumanize - ordinal label that is combined into the continuous score
349
+ * violence - ordinal label that is combined into the continuous score
350
+ * genocide - ordinal label that is combined into the continuous score
351
+ * attack\_defend - ordinal label that is combined into the continuous score
352
+ * hatespeech - ordinal label that is combined into the continuous score
353
+ * annotator_severity - annotator's estimated survey interpretation bias
354
+
355
+ ## Code to download
356
+
357
+ The dataset can be downloaded using the following python code:
358
+
359
+ ```python
360
+ import datasets
361
+ dataset = datasets.load_dataset('ucberkeley-dlab/measuring-hate-speech', 'binary')
362
+ df = dataset['train'].to_pandas()
363
+ df.describe()
364
+ ```
365
+
366
+ ## Citation
367
+
368
+ ```
369
+ @article{kennedy2020constructing,
370
+ title={Constructing interval variables via faceted Rasch measurement and multitask deep learning: a hate speech application},
371
+ author={Kennedy, Chris J and Bacon, Geoff and Sahn, Alexander and von Vacano, Claudia},
372
+ journal={arXiv preprint arXiv:2009.10277},
373
+ year={2020}
374
+ }
375
+ ```
376
+
377
+ ## Contributions
378
+
379
+ Dataset curated by [@ck37](https://github.com/ck37), [@pssachdeva](https://github.com/pssachdeva), et al.
380
+
381
+ ## References
382
+
383
+ Kennedy, C. J., Bacon, G., Sahn, A., & von Vacano, C. (2020). [Constructing interval variables via faceted Rasch measurement and multitask deep learning: a hate speech application](https://arxiv.org/abs/2009.10277). arXiv preprint arXiv:2009.10277.
384
+
385
+ Pratik Sachdeva, Renata Barreto, Geoff Bacon, Alexander Sahn, Claudia von Vacano, and Chris Kennedy. 2022. [The Measuring Hate Speech Corpus: Leveraging Rasch Measurement Theory for Data Perspectivism](https://aclanthology.org/2022.nlperspectives-1.11/). In *Proceedings of the 1st Workshop on Perspectivist Approaches to NLP @LREC2022*, pages 83–94, Marseille, France. European Language Resources Association.
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d65ce8cfb857f5db90e74ce295067bba7473fe12115715f9dd18d2a5f87e976
3
+ size 20097387
measuring-hate-speech.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6819525ce61bc24344df9fc3f7bf48270b31038273cc27c67fc225b51433b0e1
3
+ size 14123673