michsethowusu commited on
Commit
94f9053
·
1 Parent(s): 371e8e5

Initial commit: balanced multilingual emotion dataset

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +453 -0
  3. data.csv +3 -0
.gitattributes CHANGED
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ data.csv filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,453 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Multilingual Emotion Analysis Corpus
2
+
3
+ ## Dataset Description
4
+
5
+ This dataset contains emotion-labeled text data in multiple African languages for emotion classification (`joy`, `sadness`, `anger`, `fear`, `surprise`, `disgust`, `neutral`). Emotions were inferred from the original content using a multilingual processing pipeline and balanced per language to support fairer modeling.
6
+
7
+ The dataset is part of a growing collection of African language emotion analysis resources.
8
+
9
+ ## Dataset Statistics
10
+
11
+ **Language: afrikaans**
12
+ Total samples: 511287
13
+ - Anger: 73041 (14.3%)
14
+ - Disgust: 73041 (14.3%)
15
+ - Fear: 73041 (14.3%)
16
+ - Joy: 73041 (14.3%)
17
+ - Neutral: 73041 (14.3%)
18
+ - Sadness: 73041 (14.3%)
19
+ - Surprise: 73041 (14.3%)
20
+ **Language: akan**
21
+ Total samples: 1694
22
+ - Anger: 242 (14.3%)
23
+ - Disgust: 242 (14.3%)
24
+ - Fear: 242 (14.3%)
25
+ - Joy: 242 (14.3%)
26
+ - Neutral: 242 (14.3%)
27
+ - Sadness: 242 (14.3%)
28
+ - Surprise: 242 (14.3%)
29
+ **Language: amharic**
30
+ Total samples: 568750
31
+ - Anger: 81250 (14.3%)
32
+ - Disgust: 81250 (14.3%)
33
+ - Fear: 81250 (14.3%)
34
+ - Joy: 81250 (14.3%)
35
+ - Neutral: 81250 (14.3%)
36
+ - Sadness: 81250 (14.3%)
37
+ - Surprise: 81250 (14.3%)
38
+ **Language: bambara**
39
+ Total samples: 15309
40
+ - Anger: 2187 (14.3%)
41
+ - Disgust: 2187 (14.3%)
42
+ - Fear: 2187 (14.3%)
43
+ - Joy: 2187 (14.3%)
44
+ - Neutral: 2187 (14.3%)
45
+ - Sadness: 2187 (14.3%)
46
+ - Surprise: 2187 (14.3%)
47
+ **Language: bemba**
48
+ Total samples: 47985
49
+ - Anger: 6855 (14.3%)
50
+ - Disgust: 6855 (14.3%)
51
+ - Fear: 6855 (14.3%)
52
+ - Joy: 6855 (14.3%)
53
+ - Neutral: 6855 (14.3%)
54
+ - Sadness: 6855 (14.3%)
55
+ - Surprise: 6855 (14.3%)
56
+ **Language: chichewa**
57
+ Total samples: 222166
58
+ - Anger: 31738 (14.3%)
59
+ - Disgust: 31738 (14.3%)
60
+ - Fear: 31738 (14.3%)
61
+ - Joy: 31738 (14.3%)
62
+ - Neutral: 31738 (14.3%)
63
+ - Sadness: 31738 (14.3%)
64
+ - Surprise: 31738 (14.3%)
65
+ **Language: dinka**
66
+ Total samples: 9611
67
+ - Anger: 1373 (14.3%)
68
+ - Disgust: 1373 (14.3%)
69
+ - Fear: 1373 (14.3%)
70
+ - Joy: 1373 (14.3%)
71
+ - Neutral: 1373 (14.3%)
72
+ - Sadness: 1373 (14.3%)
73
+ - Surprise: 1373 (14.3%)
74
+ **Language: dyula**
75
+ Total samples: 13874
76
+ - Anger: 1982 (14.3%)
77
+ - Disgust: 1982 (14.3%)
78
+ - Fear: 1982 (14.3%)
79
+ - Joy: 1982 (14.3%)
80
+ - Neutral: 1982 (14.3%)
81
+ - Sadness: 1982 (14.3%)
82
+ - Surprise: 1982 (14.3%)
83
+ **Language: ewe**
84
+ Total samples: 116326
85
+ - Anger: 16618 (14.3%)
86
+ - Disgust: 16618 (14.3%)
87
+ - Fear: 16618 (14.3%)
88
+ - Joy: 16618 (14.3%)
89
+ - Neutral: 16618 (14.3%)
90
+ - Sadness: 16618 (14.3%)
91
+ - Surprise: 16618 (14.3%)
92
+ **Language: fon**
93
+ Total samples: 14035
94
+ - Anger: 2005 (14.3%)
95
+ - Disgust: 2005 (14.3%)
96
+ - Fear: 2005 (14.3%)
97
+ - Joy: 2005 (14.3%)
98
+ - Neutral: 2005 (14.3%)
99
+ - Sadness: 2005 (14.3%)
100
+ - Surprise: 2005 (14.3%)
101
+ **Language: fulah**
102
+ Total samples: 17955
103
+ - Anger: 2565 (14.3%)
104
+ - Disgust: 2565 (14.3%)
105
+ - Fear: 2565 (14.3%)
106
+ - Joy: 2565 (14.3%)
107
+ - Neutral: 2565 (14.3%)
108
+ - Sadness: 2565 (14.3%)
109
+ - Surprise: 2565 (14.3%)
110
+ **Language: ganda**
111
+ Total samples: 227689
112
+ - Anger: 32527 (14.3%)
113
+ - Disgust: 32527 (14.3%)
114
+ - Fear: 32527 (14.3%)
115
+ - Joy: 32527 (14.3%)
116
+ - Neutral: 32527 (14.3%)
117
+ - Sadness: 32527 (14.3%)
118
+ - Surprise: 32527 (14.3%)
119
+ **Language: hausa**
120
+ Total samples: 207732
121
+ - Anger: 29676 (14.3%)
122
+ - Disgust: 29676 (14.3%)
123
+ - Fear: 29676 (14.3%)
124
+ - Joy: 29676 (14.3%)
125
+ - Neutral: 29676 (14.3%)
126
+ - Sadness: 29676 (14.3%)
127
+ - Surprise: 29676 (14.3%)
128
+ **Language: igbo**
129
+ Total samples: 49350
130
+ - Anger: 7050 (14.3%)
131
+ - Disgust: 7050 (14.3%)
132
+ - Fear: 7050 (14.3%)
133
+ - Joy: 7050 (14.3%)
134
+ - Neutral: 7050 (14.3%)
135
+ - Sadness: 7050 (14.3%)
136
+ - Surprise: 7050 (14.3%)
137
+ **Language: kabiye**
138
+ Total samples: 5411
139
+ - Anger: 773 (14.3%)
140
+ - Disgust: 773 (14.3%)
141
+ - Fear: 773 (14.3%)
142
+ - Joy: 773 (14.3%)
143
+ - Neutral: 773 (14.3%)
144
+ - Sadness: 773 (14.3%)
145
+ - Surprise: 773 (14.3%)
146
+ **Language: kabuverdianu**
147
+ Total samples: 30072
148
+ - Anger: 4296 (14.3%)
149
+ - Disgust: 4296 (14.3%)
150
+ - Fear: 4296 (14.3%)
151
+ - Joy: 4296 (14.3%)
152
+ - Neutral: 4296 (14.3%)
153
+ - Sadness: 4296 (14.3%)
154
+ - Surprise: 4296 (14.3%)
155
+ **Language: kabyle**
156
+ Total samples: 1575
157
+ - Anger: 225 (14.3%)
158
+ - Disgust: 225 (14.3%)
159
+ - Fear: 225 (14.3%)
160
+ - Joy: 225 (14.3%)
161
+ - Neutral: 225 (14.3%)
162
+ - Sadness: 225 (14.3%)
163
+ - Surprise: 225 (14.3%)
164
+ **Language: kamba**
165
+ Total samples: 8407
166
+ - Anger: 1201 (14.3%)
167
+ - Disgust: 1201 (14.3%)
168
+ - Fear: 1201 (14.3%)
169
+ - Joy: 1201 (14.3%)
170
+ - Neutral: 1201 (14.3%)
171
+ - Sadness: 1201 (14.3%)
172
+ - Surprise: 1201 (14.3%)
173
+ **Language: kikuyu**
174
+ Total samples: 13160
175
+ - Anger: 1880 (14.3%)
176
+ - Disgust: 1880 (14.3%)
177
+ - Fear: 1880 (14.3%)
178
+ - Joy: 1880 (14.3%)
179
+ - Neutral: 1880 (14.3%)
180
+ - Sadness: 1880 (14.3%)
181
+ - Surprise: 1880 (14.3%)
182
+ **Language: kimbundu**
183
+ Total samples: 20034
184
+ - Anger: 2862 (14.3%)
185
+ - Disgust: 2862 (14.3%)
186
+ - Fear: 2862 (14.3%)
187
+ - Joy: 2862 (14.3%)
188
+ - Neutral: 2862 (14.3%)
189
+ - Sadness: 2862 (14.3%)
190
+ - Surprise: 2862 (14.3%)
191
+ **Language: kongo**
192
+ Total samples: 47894
193
+ - Anger: 6842 (14.3%)
194
+ - Disgust: 6842 (14.3%)
195
+ - Fear: 6842 (14.3%)
196
+ - Joy: 6842 (14.3%)
197
+ - Neutral: 6842 (14.3%)
198
+ - Sadness: 6842 (14.3%)
199
+ - Surprise: 6842 (14.3%)
200
+ **Language: lingala**
201
+ Total samples: 132671
202
+ - Anger: 18953 (14.3%)
203
+ - Disgust: 18953 (14.3%)
204
+ - Fear: 18953 (14.3%)
205
+ - Joy: 18953 (14.3%)
206
+ - Neutral: 18953 (14.3%)
207
+ - Sadness: 18953 (14.3%)
208
+ - Surprise: 18953 (14.3%)
209
+ **Language: lushai**
210
+ Total samples: 152495
211
+ - Anger: 21785 (14.3%)
212
+ - Disgust: 21785 (14.3%)
213
+ - Fear: 21785 (14.3%)
214
+ - Joy: 21785 (14.3%)
215
+ - Neutral: 21785 (14.3%)
216
+ - Sadness: 21785 (14.3%)
217
+ - Surprise: 21785 (14.3%)
218
+ **Language: malagasy**
219
+ Total samples: 388367
220
+ - Anger: 55481 (14.3%)
221
+ - Disgust: 55481 (14.3%)
222
+ - Fear: 55481 (14.3%)
223
+ - Joy: 55481 (14.3%)
224
+ - Neutral: 55481 (14.3%)
225
+ - Sadness: 55481 (14.3%)
226
+ - Surprise: 55481 (14.3%)
227
+ **Language: mossi**
228
+ Total samples: 38787
229
+ - Anger: 5541 (14.3%)
230
+ - Disgust: 5541 (14.3%)
231
+ - Fear: 5541 (14.3%)
232
+ - Joy: 5541 (14.3%)
233
+ - Neutral: 5541 (14.3%)
234
+ - Sadness: 5541 (14.3%)
235
+ - Surprise: 5541 (14.3%)
236
+ **Language: nuer**
237
+ Total samples: 2415
238
+ - Anger: 345 (14.3%)
239
+ - Disgust: 345 (14.3%)
240
+ - Fear: 345 (14.3%)
241
+ - Joy: 345 (14.3%)
242
+ - Neutral: 345 (14.3%)
243
+ - Sadness: 345 (14.3%)
244
+ - Surprise: 345 (14.3%)
245
+ **Language: oromo**
246
+ Total samples: 242879
247
+ - Anger: 34697 (14.3%)
248
+ - Disgust: 34697 (14.3%)
249
+ - Fear: 34697 (14.3%)
250
+ - Joy: 34697 (14.3%)
251
+ - Neutral: 34697 (14.3%)
252
+ - Sadness: 34697 (14.3%)
253
+ - Surprise: 34697 (14.3%)
254
+ **Language: pedi**
255
+ Total samples: 115255
256
+ - Anger: 16465 (14.3%)
257
+ - Disgust: 16465 (14.3%)
258
+ - Fear: 16465 (14.3%)
259
+ - Joy: 16465 (14.3%)
260
+ - Neutral: 16465 (14.3%)
261
+ - Sadness: 16465 (14.3%)
262
+ - Surprise: 16465 (14.3%)
263
+ **Language: rundi**
264
+ Total samples: 125419
265
+ - Anger: 17917 (14.3%)
266
+ - Disgust: 17917 (14.3%)
267
+ - Fear: 17917 (14.3%)
268
+ - Joy: 17917 (14.3%)
269
+ - Neutral: 17917 (14.3%)
270
+ - Sadness: 17917 (14.3%)
271
+ - Surprise: 17917 (14.3%)
272
+ **Language: sango**
273
+ Total samples: 33467
274
+ - Anger: 4781 (14.3%)
275
+ - Disgust: 4781 (14.3%)
276
+ - Fear: 4781 (14.3%)
277
+ - Joy: 4781 (14.3%)
278
+ - Neutral: 4781 (14.3%)
279
+ - Sadness: 4781 (14.3%)
280
+ - Surprise: 4781 (14.3%)
281
+ **Language: somali**
282
+ Total samples: 670327
283
+ - Anger: 95761 (14.3%)
284
+ - Disgust: 95761 (14.3%)
285
+ - Fear: 95761 (14.3%)
286
+ - Joy: 95761 (14.3%)
287
+ - Neutral: 95761 (14.3%)
288
+ - Sadness: 95761 (14.3%)
289
+ - Surprise: 95761 (14.3%)
290
+ **Language: swahili**
291
+ Total samples: 626913
292
+ - Anger: 89559 (14.3%)
293
+ - Disgust: 89559 (14.3%)
294
+ - Fear: 89559 (14.3%)
295
+ - Joy: 89559 (14.3%)
296
+ - Neutral: 89559 (14.3%)
297
+ - Sadness: 89559 (14.3%)
298
+ - Surprise: 89559 (14.3%)
299
+ **Language: swati**
300
+ Total samples: 30198
301
+ - Anger: 4314 (14.3%)
302
+ - Disgust: 4314 (14.3%)
303
+ - Fear: 4314 (14.3%)
304
+ - Joy: 4314 (14.3%)
305
+ - Neutral: 4314 (14.3%)
306
+ - Sadness: 4314 (14.3%)
307
+ - Surprise: 4314 (14.3%)
308
+ **Language: tamasheq**
309
+ Total samples: 119
310
+ - Anger: 17 (14.3%)
311
+ - Disgust: 17 (14.3%)
312
+ - Fear: 17 (14.3%)
313
+ - Joy: 17 (14.3%)
314
+ - Neutral: 17 (14.3%)
315
+ - Sadness: 17 (14.3%)
316
+ - Surprise: 17 (14.3%)
317
+ **Language: tsonga**
318
+ Total samples: 84728
319
+ - Anger: 12104 (14.3%)
320
+ - Disgust: 12104 (14.3%)
321
+ - Fear: 12104 (14.3%)
322
+ - Joy: 12104 (14.3%)
323
+ - Neutral: 12104 (14.3%)
324
+ - Sadness: 12104 (14.3%)
325
+ - Surprise: 12104 (14.3%)
326
+ **Language: tswana**
327
+ Total samples: 271264
328
+ - Anger: 38752 (14.3%)
329
+ - Disgust: 38752 (14.3%)
330
+ - Fear: 38752 (14.3%)
331
+ - Joy: 38752 (14.3%)
332
+ - Neutral: 38752 (14.3%)
333
+ - Sadness: 38752 (14.3%)
334
+ - Surprise: 38752 (14.3%)
335
+ **Language: tumbuka**
336
+ Total samples: 64869
337
+ - Anger: 9267 (14.3%)
338
+ - Disgust: 9267 (14.3%)
339
+ - Fear: 9267 (14.3%)
340
+ - Joy: 9267 (14.3%)
341
+ - Neutral: 9267 (14.3%)
342
+ - Sadness: 9267 (14.3%)
343
+ - Surprise: 9267 (14.3%)
344
+ **Language: twi**
345
+ Total samples: 140917
346
+ - Anger: 20131 (14.3%)
347
+ - Disgust: 20131 (14.3%)
348
+ - Fear: 20131 (14.3%)
349
+ - Joy: 20131 (14.3%)
350
+ - Neutral: 20131 (14.3%)
351
+ - Sadness: 20131 (14.3%)
352
+ - Surprise: 20131 (14.3%)
353
+ **Language: umbundu**
354
+ Total samples: 27608
355
+ - Anger: 3944 (14.3%)
356
+ - Disgust: 3944 (14.3%)
357
+ - Fear: 3944 (14.3%)
358
+ - Joy: 3944 (14.3%)
359
+ - Neutral: 3944 (14.3%)
360
+ - Sadness: 3944 (14.3%)
361
+ - Surprise: 3944 (14.3%)
362
+ **Language: wolof**
363
+ Total samples: 92820
364
+ - Anger: 13260 (14.3%)
365
+ - Disgust: 13260 (14.3%)
366
+ - Fear: 13260 (14.3%)
367
+ - Joy: 13260 (14.3%)
368
+ - Neutral: 13260 (14.3%)
369
+ - Sadness: 13260 (14.3%)
370
+ - Surprise: 13260 (14.3%)
371
+ **Language: xhosa**
372
+ Total samples: 536837
373
+ - Anger: 76691 (14.3%)
374
+ - Disgust: 76691 (14.3%)
375
+ - Fear: 76691 (14.3%)
376
+ - Joy: 76691 (14.3%)
377
+ - Neutral: 76691 (14.3%)
378
+ - Sadness: 76691 (14.3%)
379
+ - Surprise: 76691 (14.3%)
380
+ **Language: yoruba**
381
+ Total samples: 55223
382
+ - Anger: 7889 (14.3%)
383
+ - Disgust: 7889 (14.3%)
384
+ - Fear: 7889 (14.3%)
385
+ - Joy: 7889 (14.3%)
386
+ - Neutral: 7889 (14.3%)
387
+ - Sadness: 7889 (14.3%)
388
+ - Surprise: 7889 (14.3%)
389
+ **Language: zulu**
390
+ Total samples: 59990
391
+ - Anger: 8570 (14.3%)
392
+ - Disgust: 8570 (14.3%)
393
+ - Fear: 8570 (14.3%)
394
+ - Joy: 8570 (14.3%)
395
+ - Neutral: 8570 (14.3%)
396
+ - Sadness: 8570 (14.3%)
397
+ - Surprise: 8570 (14.3%)
398
+
399
+ ## Dataset Structure
400
+
401
+ ### Data Fields
402
+
403
+ - `text`: Original text
404
+ - `emotion`: Emotion label (`joy`, `sadness`, `anger`, `fear`, `surprise`, `disgust`, `neutral`)
405
+ - `language`: Language code (e.g., `twi`, `am`, `sw`, etc.)
406
+
407
+ ### Data Splits
408
+
409
+ This dataset contains a single split with all the balanced data.
410
+
411
+ ## Data Processing
412
+
413
+ - **Label Generation**: Used existing datasets and automatic labeling pipelines.
414
+ - **Balancing**: Emotion classes were trimmed to match the smallest class per language.
415
+ - **Deduplication**: Removed duplicate texts.
416
+ - **Language Coverage**: Includes multiple African languages, including those using non-Latin scripts.
417
+
418
+ ## Usage
419
+
420
+ ```python
421
+ from datasets import load_dataset
422
+
423
+ dataset = load_dataset("michsethowusu/africa-emotions-balanced-multilang")
424
+ print(dataset['train'][0])
425
+ ```
426
+
427
+ ## Citation
428
+
429
+ If you use this dataset in your research, please cite:
430
+
431
+ ```bibtex
432
+ @dataset{emotion_multilang_africa,
433
+ title={Multilingual African Emotion Corpus},
434
+ author={Your Name},
435
+ year={2025},
436
+ url={https://huggingface.co/datasets/michsethowusu/africa-emotions-balanced-multilang}
437
+ }
438
+ ```
439
+
440
+ ## License
441
+
442
+ This dataset is released under the MIT License.
443
+
444
+ ## Contact
445
+
446
+ For questions or issues, please open an issue on the dataset repository.
447
+
448
+ ## Dataset Creation
449
+
450
+ - Date: 2025-07-06
451
+ - Processing Pipeline: Automated language + emotion balancing
452
+ - Tools: Hugging Face Transformers + Pandas
453
+ - Quality Control: Deduplication and emotion balancing
data.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7b36798f67bf28ff6dd567ddb366012f9d1bf7e38f9223fb731b64b6f31e6a8
3
+ size 487621557