Datasets:
Tasks:
Text Classification
Formats:
parquet
Sub-tasks:
multi-label-classification
Size:
10K - 100K
License:
Update README.md
Browse files
README.md
CHANGED
@@ -8,49 +8,47 @@ tags:
|
|
8 |
task_categories:
|
9 |
- text-classification
|
10 |
task_ids:
|
11 |
-
-
|
12 |
multilinguality:
|
13 |
- multilingual
|
|
|
|
|
14 |
language:
|
15 |
-
- afr
|
16 |
-
- amh
|
17 |
-
- arq
|
18 |
-
- ary
|
19 |
-
- chn
|
20 |
-
- deu
|
21 |
-
- eng
|
22 |
-
- esp
|
23 |
-
- hau
|
24 |
-
- hin
|
25 |
-
- ibo
|
26 |
-
- ind
|
27 |
-
- jav
|
28 |
-
- kin
|
29 |
-
- mar
|
30 |
-
- orm
|
31 |
-
- pcm
|
32 |
-
- ron
|
33 |
-
- rus
|
34 |
-
- som
|
35 |
-
- sun
|
36 |
-
- swa
|
37 |
-
- swe
|
38 |
-
- tat
|
39 |
-
- tir
|
40 |
-
- ukr
|
41 |
-
- vmw
|
42 |
-
- xho
|
43 |
-
- yor
|
44 |
-
- zul
|
45 |
|
46 |
# ---------- DATA FILE LOCATIONS ----------
|
47 |
-
#
|
48 |
-
#
|
49 |
-
|
50 |
-
# ==============================================================================
|
51 |
-
# VERSION A: Use this block if your files are structured as: data/<lang_code>/<split_name>-*
|
52 |
-
# For example: data/afr/validation-00000-of-00001.parquet
|
53 |
-
# ==============================================================================
|
54 |
configs:
|
55 |
- config_name: afr
|
56 |
data_files:
|
@@ -232,211 +230,6 @@ configs:
|
|
232 |
path: data/zul/validation-*
|
233 |
- split: test
|
234 |
path: data/zul/test-*
|
235 |
-
# ==============================================================================
|
236 |
-
# END OF VERSION A
|
237 |
-
# ==============================================================================
|
238 |
-
|
239 |
-
|
240 |
-
# ==============================================================================
|
241 |
-
# VERSION B: Use this block if your files are structured as: <lang_code>/<split_name>-*
|
242 |
-
# For example: afr/validation-00000-of-00001.parquet (NO "data/" prefix)
|
243 |
-
# ==============================================================================
|
244 |
-
# configs:
|
245 |
-
# - config_name: afr
|
246 |
-
# data_files:
|
247 |
-
# - split: validation
|
248 |
-
# path: afr/validation-*
|
249 |
-
# - split: test
|
250 |
-
# path: afr/test-*
|
251 |
-
# - config_name: amh
|
252 |
-
# data_files:
|
253 |
-
# - split: validation
|
254 |
-
# path: amh/validation-*
|
255 |
-
# - split: test
|
256 |
-
# path: amh/test-*
|
257 |
-
# - config_name: arq
|
258 |
-
# data_files:
|
259 |
-
# - split: validation
|
260 |
-
# path: arq/validation-*
|
261 |
-
# - split: test
|
262 |
-
# path: arq/test-*
|
263 |
-
# - config_name: ary
|
264 |
-
# data_files:
|
265 |
-
# - split: validation
|
266 |
-
# path: ary/validation-*
|
267 |
-
# - split: test
|
268 |
-
# path: ary/test-*
|
269 |
-
# - config_name: chn
|
270 |
-
# data_files:
|
271 |
-
# - split: validation
|
272 |
-
# path: chn/validation-*
|
273 |
-
# - split: test
|
274 |
-
# path: chn/test-*
|
275 |
-
# - config_name: deu
|
276 |
-
# data_files:
|
277 |
-
# - split: validation
|
278 |
-
# path: deu/validation-*
|
279 |
-
# - split: test
|
280 |
-
# path: deu/test-*
|
281 |
-
# - config_name: eng
|
282 |
-
# data_files:
|
283 |
-
# - split: validation
|
284 |
-
# path: eng/validation-*
|
285 |
-
# - split: test
|
286 |
-
# path: eng/test-*
|
287 |
-
# - config_name: esp
|
288 |
-
# data_files:
|
289 |
-
# - split: validation
|
290 |
-
# path: esp/validation-*
|
291 |
-
# - split: test
|
292 |
-
# path: esp/test-*
|
293 |
-
# - config_name: hau
|
294 |
-
# data_files:
|
295 |
-
# - split: validation
|
296 |
-
# path: hau/validation-*
|
297 |
-
# - split: test
|
298 |
-
# path: hau/test-*
|
299 |
-
# - config_name: hin
|
300 |
-
# data_files:
|
301 |
-
# - split: validation
|
302 |
-
# path: hin/validation-*
|
303 |
-
# - split: test
|
304 |
-
# path: hin/test-*
|
305 |
-
# - config_name: ibo
|
306 |
-
# data_files:
|
307 |
-
# - split: validation
|
308 |
-
# path: ibo/validation-*
|
309 |
-
# - split: test
|
310 |
-
# path: ibo/test-*
|
311 |
-
# - config_name: ind
|
312 |
-
# data_files:
|
313 |
-
# - split: validation
|
314 |
-
# path: ind/validation-*
|
315 |
-
# - split: test
|
316 |
-
# path: ind/test-*
|
317 |
-
# - config_name: jav
|
318 |
-
# data_files:
|
319 |
-
# - split: validation
|
320 |
-
# path: jav/validation-*
|
321 |
-
# - split: test
|
322 |
-
# path: jav/test-*
|
323 |
-
# - config_name: kin
|
324 |
-
# data_files:
|
325 |
-
# - split: validation
|
326 |
-
# path: kin/validation-*
|
327 |
-
# - split: test
|
328 |
-
# path: kin/test-*
|
329 |
-
# - config_name: mar
|
330 |
-
# data_files:
|
331 |
-
# - split: validation
|
332 |
-
# path: mar/validation-*
|
333 |
-
# - split: test
|
334 |
-
# path: mar/test-*
|
335 |
-
# - config_name: orm
|
336 |
-
# data_files:
|
337 |
-
# - split: validation
|
338 |
-
# path: orm/validation-*
|
339 |
-
# - split: test
|
340 |
-
# path: orm/test-*
|
341 |
-
# - config_name: pcm
|
342 |
-
# data_files:
|
343 |
-
# - split: validation
|
344 |
-
# path: pcm/validation-*
|
345 |
-
# - split: test
|
346 |
-
# path: pcm/test-*
|
347 |
-
# - config_name: ptbr
|
348 |
-
# data_files:
|
349 |
-
# - split: validation
|
350 |
-
# path: ptbr/validation-*
|
351 |
-
# - split: test
|
352 |
-
# path: ptbr/test-*
|
353 |
-
# - config_name: ptmz
|
354 |
-
# data_files:
|
355 |
-
# - split: validation
|
356 |
-
# path: ptmz/validation-*
|
357 |
-
# - split: test
|
358 |
-
# path: ptmz/test-*
|
359 |
-
# - config_name: ron
|
360 |
-
# data_files:
|
361 |
-
# - split: validation
|
362 |
-
# path: ron/validation-*
|
363 |
-
# - split: test
|
364 |
-
# path: ron/test-*
|
365 |
-
# - config_name: rus
|
366 |
-
# data_files:
|
367 |
-
# - split: validation
|
368 |
-
# path: rus/validation-*
|
369 |
-
# - split: test
|
370 |
-
# path: rus/test-*
|
371 |
-
# - config_name: som
|
372 |
-
# data_files:
|
373 |
-
# - split: validation
|
374 |
-
# path: som/validation-*
|
375 |
-
# - split: test
|
376 |
-
# path: som/test-*
|
377 |
-
# - config_name: sun
|
378 |
-
# data_files:
|
379 |
-
# - split: validation
|
380 |
-
# path: sun/validation-*
|
381 |
-
# - split: test
|
382 |
-
# path: sun/test-*
|
383 |
-
# - config_name: swa
|
384 |
-
# data_files:
|
385 |
-
# - split: validation
|
386 |
-
# path: swa/validation-*
|
387 |
-
# - split: test
|
388 |
-
# path: swa/test-*
|
389 |
-
# - config_name: swe
|
390 |
-
# data_files:
|
391 |
-
# - split: validation
|
392 |
-
# path: swe/validation-*
|
393 |
-
# - split: test
|
394 |
-
# path: swe/test-*
|
395 |
-
# - config_name: tat
|
396 |
-
# data_files:
|
397 |
-
# - split: validation
|
398 |
-
# path: tat/validation-*
|
399 |
-
# - split: test
|
400 |
-
# path: tat/test-*
|
401 |
-
# - config_name: tir
|
402 |
-
# data_files:
|
403 |
-
# - split: validation
|
404 |
-
# path: tir/validation-*
|
405 |
-
# - split: test
|
406 |
-
# path: tir/test-*
|
407 |
-
# - config_name: ukr
|
408 |
-
# data_files:
|
409 |
-
# - split: validation
|
410 |
-
# path: ukr/validation-*
|
411 |
-
# - split: test
|
412 |
-
# path: ukr/test-*
|
413 |
-
# - config_name: vmw
|
414 |
-
# data_files:
|
415 |
-
# - split: validation
|
416 |
-
# path: vmw/validation-*
|
417 |
-
# - split: test
|
418 |
-
# path: vmw/test-*
|
419 |
-
# - config_name: xho
|
420 |
-
# data_files:
|
421 |
-
# - split: validation
|
422 |
-
# path: xho/validation-*
|
423 |
-
# - split: test
|
424 |
-
# path: xho/test-*
|
425 |
-
# - config_name: yor
|
426 |
-
# data_files:
|
427 |
-
# - split: validation
|
428 |
-
# path: yor/validation-*
|
429 |
-
# - split: test
|
430 |
-
# path: yor/test-*
|
431 |
-
# - config_name: zul
|
432 |
-
# data_files:
|
433 |
-
# - split: validation
|
434 |
-
# path: zul/validation-*
|
435 |
-
# - split: test
|
436 |
-
# path: zul/test-*
|
437 |
-
# ==============================================================================
|
438 |
-
# END OF VERSION B
|
439 |
-
# ==============================================================================
|
440 |
---
|
441 |
|
442 |
# Dataset Card for **EmotionAnalysisFinal**
|
@@ -454,32 +247,4 @@ Each language-specific configuration (subset) contains `validation` and `test` s
|
|
454 |
|
455 |
## Languages and Configuration Names
|
456 |
|
457 |
-
The dataset supports the following languages, accessible via their ISO 639-3 or custom codes as configuration names:
|
458 |
-
|
459 |
-
`afr, amh, arq, ary, chn, deu, eng, esp, hau, hin, ibo, ind, jav, kin, mar, orm, pcm, ptbr, ptmz, ron, rus, som, sun, swa, swe, tat, tir, ukr, vmw, xho, yor, zul`
|
460 |
-
|
461 |
-
## How to Use
|
462 |
-
|
463 |
-
Load a specific language and split using `load_dataset`:
|
464 |
-
|
465 |
-
```python
|
466 |
-
from datasets import load_dataset
|
467 |
-
|
468 |
-
# Example: Load the Yoruba test split
|
469 |
-
lang_code = "yor" # Replace with desired language code
|
470 |
-
split_name = "test" # Or "validation"
|
471 |
-
|
472 |
-
ds = load_dataset(
|
473 |
-
"llama-lang-adapt/EmotionAnalysisFinal",
|
474 |
-
name=lang_code, # Configuration name (language code)
|
475 |
-
split=split_name
|
476 |
-
)
|
477 |
-
|
478 |
-
# Print the first example
|
479 |
-
print(f"First example from {lang_code} {split_name} split:")
|
480 |
-
print(ds[0])
|
481 |
-
|
482 |
-
# Example: Load the Afrikaans validation split
|
483 |
-
ds_afr_val = load_dataset("llama-lang-adapt/EmotionAnalysisFinal", "afr", split="validation")
|
484 |
-
print(f"\nFirst example from afr validation split:")
|
485 |
-
print(ds_afr_val[0])
|
|
|
8 |
task_categories:
|
9 |
- text-classification
|
10 |
task_ids:
|
11 |
+
- emotion-detection
|
12 |
multilinguality:
|
13 |
- multilingual
|
14 |
+
# List every language code that has a config
|
15 |
+
# Based on the dataset_info provided
|
16 |
language:
|
17 |
+
- afr # Afrikaans
|
18 |
+
- amh # Amharic
|
19 |
+
- arq # Algerian Arabic
|
20 |
+
- ary # Moroccan Arabic
|
21 |
+
- chn # Mandarin Chinese
|
22 |
+
- deu # German
|
23 |
+
- eng # English
|
24 |
+
- esp # Spanish (LatAm)
|
25 |
+
- hau # Hausa
|
26 |
+
- hin # Hindi
|
27 |
+
- ibo # Igbo
|
28 |
+
- ind # Indonesian
|
29 |
+
- jav # Javanese
|
30 |
+
- kin # Kinyarwanda
|
31 |
+
- mar # Marathi
|
32 |
+
- orm # Oromo
|
33 |
+
- pcm # Nigerian-Pidgin
|
34 |
+
- ron # Romanian
|
35 |
+
- rus # Russian
|
36 |
+
- som # Somali
|
37 |
+
- sun # Sundanese
|
38 |
+
- swa # Swahili
|
39 |
+
- swe # Swedish
|
40 |
+
- tat # Tatar
|
41 |
+
- tir # Tigrinya
|
42 |
+
- ukr # Ukrainian
|
43 |
+
- vmw # Emakhuwa
|
44 |
+
- xho # isiXhosa
|
45 |
+
- yor # Yoruba
|
46 |
+
- zul # isiZulu
|
47 |
|
48 |
# ---------- DATA FILE LOCATIONS ----------
|
49 |
+
# Only dev (=validation) and test splits are available for Track C.
|
50 |
+
# The files are pushed as Parquet/Arrow by default and might be sharded.
|
51 |
+
# The glob pattern '-*' accounts for potential sharding (e.g., validation-00000-of-00001.parquet).
|
|
|
|
|
|
|
|
|
52 |
configs:
|
53 |
- config_name: afr
|
54 |
data_files:
|
|
|
230 |
path: data/zul/validation-*
|
231 |
- split: test
|
232 |
path: data/zul/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
---
|
234 |
|
235 |
# Dataset Card for **EmotionAnalysisFinal**
|
|
|
247 |
|
248 |
## Languages and Configuration Names
|
249 |
|
250 |
+
The dataset supports the following languages, accessible via their ISO 639-3 or custom codes as configuration names:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|