mbayan commited on
Commit
f843fb5
·
verified ·
1 Parent(s): bf4f26e

Add dataset card for ArHateMeme preview

Browse files
Files changed (1) hide show
  1. README.md +175 -27
README.md CHANGED
@@ -1,27 +1,175 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- configs:
4
- - config_name: sample_100
5
- data_files:
6
- - split: train
7
- path: sample_100/train-*
8
- dataset_info:
9
- config_name: sample_100
10
- features:
11
- - name: id
12
- dtype: string
13
- - name: image
14
- dtype: image
15
- - name: text
16
- dtype: string
17
- - name: label
18
- dtype: string
19
- - name: fine_grained_label
20
- sequence: string
21
- splits:
22
- - name: train
23
- num_bytes: 8801740.0
24
- num_examples: 100
25
- download_size: 8769620
26
- dataset_size: 8801740.0
27
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ar
4
+ license: cc-by-nc-4.0
5
+ task_categories:
6
+ - image-classification
7
+ - text-classification
8
+ tags:
9
+ - hate-speech
10
+ - memes
11
+ - arabic
12
+ - multimodal
13
+ - multi-label
14
+ pretty_name: Arabic Hateful Memes (ArHateMeme)
15
+ size_categories:
16
+ - n<1K
17
+ configs:
18
+ - config_name: sample_100
19
+ data_files:
20
+ - split: train
21
+ path: sample_100/train-*
22
+ default: true
23
+ dataset_info:
24
+ config_name: sample_100
25
+ features:
26
+ - name: id
27
+ dtype: string
28
+ - name: image
29
+ dtype: image
30
+ - name: text
31
+ dtype: string
32
+ - name: label
33
+ dtype: string
34
+ - name: fine_grained_label
35
+ sequence: string
36
+ splits:
37
+ - name: train
38
+ num_examples: 100
39
+ ---
40
+
41
+ # Arabic Hateful Memes (ArHateMeme) — Public Sample
42
+
43
+ This repository hosts a **100-example diversity-sampled preview** drawn from the
44
+ **training split** of the **ArHateMeme** dataset: 5,000 Arabic memes manually
45
+ annotated for hatefulness and fine-grained sub-types. The full dataset will be
46
+ released alongside the associated shared task.
47
+
48
+ > ⚠️ This preview is intended for format inspection, tooling validation, and
49
+ > schema alignment only. It is **not** a benchmark and should not be used for
50
+ > model evaluation.
51
+
52
+ ---
53
+
54
+ ## About the full dataset
55
+
56
+ **ArHateMeme** is a multimodal (image + Arabic text) meme dataset annotated for
57
+ hate speech in Arabic. It contains **5,000 memes** with a binary hatefulness
58
+ label and a **multi-label** set of fine-grained sub-types.
59
+
60
+ ### Annotation
61
+
62
+ - 500 memes are triple-annotated (calibration / gold test set).
63
+ - 4,500 memes are single-annotated by trained annotators.
64
+ - Binary labels use majority voting on the triple-annotated subset.
65
+ - Fine-grained sub-types are the union of sub-types from annotators whose
66
+ binary label matches the majority label.
67
+
68
+ ### Label Taxonomy
69
+
70
+ | Aspect | Values |
71
+ |---|---|
72
+ | Binary | `Hateful`, `Not Hateful` |
73
+ | Hateful sub-types | Mocking, Incitement, Dehumanization, Slurs, Contempt, Inferiority, Exclusion, Stereotyping, Extremism, Threat, Insults, Historical, Other |
74
+ | Non-hateful sub-types | Humor, Sarcasm, Other |
75
+
76
+ A meme is never assigned both hateful and non-hateful sub-types simultaneously.
77
+
78
+ ### Official splits (full dataset)
79
+
80
+ | Split | Records | % | Hateful | Not Hateful |
81
+ |---|---|---|---|---|
82
+ | train | 3,500 | 70% | 1,324 | 2,176 |
83
+ | dev | 500 | 10% | 189 | 311 |
84
+ | test | 1,000 | 20% | 337 | 663 |
85
+ | **Total** | **5,000** | 100% | **1,850** | **3,150** |
86
+
87
+ All 500 triple-annotated gold memes are in the **test** split. Splits are
88
+ stratified by binary label (seed 42) and there is no meme overlap between
89
+ splits.
90
+
91
+ ---
92
+
93
+ ## About this preview sample
94
+
95
+ - **Source split:** `train` (single-annotated bulk memes)
96
+ - **Size:** 100 memes
97
+ - **Sampling:** stratified to cover **every fine-grained sub-type present in
98
+ the training data** and preserve a realistic hateful / non-hateful ratio.
99
+ - **Images:** embedded as bytes via the `datasets.Image` feature — no external
100
+ files required.
101
+ - **Arrow/Parquet:** stored as a Hugging Face `Dataset` (Arrow) and uploaded as
102
+ parquet shards so the Hub viewer renders images inline.
103
+
104
+ ### Sample distribution
105
+
106
+ | Binary | Count |
107
+ |---|---|
108
+ | Not Hateful | 60 |
109
+ | Hateful | 40 |
110
+
111
+ | Fine-grained sub-type | Count |
112
+ |---|---|
113
+ | Sarcasm | 27 |
114
+ | Humor | 23 |
115
+ | Mocking | 19 |
116
+ | Incitement | 15 |
117
+ | Other | 10 |
118
+ | Contempt | 8 |
119
+ | Slurs | 8 |
120
+ | Dehumanization | 8 |
121
+ | Exclusion | 5 |
122
+ | Inferiority | 5 |
123
+
124
+ (Fine-grained counts sum to more than 100 because the label is multi-label.)
125
+
126
+ ---
127
+
128
+ ## Record schema
129
+
130
+ ```python
131
+ {
132
+ "id": "102396787_870863910087838_...jpg", # string, unique meme id
133
+ "image": <PIL.Image>, # embedded bytes, decoded on load
134
+ "text": "…", # OCR-extracted meme text (Arabic)
135
+ "label": "Hateful" | "Not Hateful", # binary label
136
+ "fine_grained_label": ["Mocking", "Incitement"], # multi-label sub-types
137
+ }
138
+ ```
139
+
140
+ ## Usage
141
+
142
+ ```python
143
+ from datasets import load_dataset
144
+
145
+ ds = load_dataset("QCRI/Arabic-Hateful-Memes", split="train")
146
+ print(ds)
147
+
148
+ example = ds[0]
149
+ example["image"].show()
150
+ print(example["text"], example["label"], example["fine_grained_label"])
151
+ ```
152
+
153
+ ---
154
+
155
+ ## Intended use and limitations
156
+
157
+ - **Intended use:** research on Arabic multimodal hate speech detection,
158
+ including binary classification, fine-grained sub-type classification, and
159
+ vision-language modeling evaluation.
160
+ - **Limitations:** memes reflect online discourse and contain offensive and
161
+ harmful content. The preview is not balanced and is too small for training
162
+ or evaluation. Annotations are partially single-annotator and may contain
163
+ noise.
164
+ - **Content warning:** this dataset contains text and imagery that is
165
+ offensive, discriminatory, or otherwise harmful by design. Handle with care.
166
+
167
+ ## License
168
+
169
+ Released under **CC BY-NC 4.0** for research use only. Not to be used for
170
+ commercial purposes or for training systems that generate harmful content.
171
+
172
+ ## Citation
173
+
174
+ A citation will be provided when the full dataset is released. Until then,
175
+ please cite this repository URL.