Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
File size: 2,130 Bytes
f7dcf90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76da679
 
b7cb5b2
76da679
ed470d5
1fa0ec5
c1a23e1
76da679
 
 
3efdec6
 
 
 
 
 
76da679
 
 
 
 
 
 
5534a88
76da679
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
dataset_info:
  features:
  - name: sentence
    dtype: string
  - name: ISO-639-3
    dtype: string
  - name: script
    dtype: string
  - name: domain
    dtype: string
  - name: lang_family_1
    dtype: string
  - name: lang_family_2
    dtype: string
  - name: lang_family_3
    dtype: string
  - name: lang_family_4
    dtype: string
  - name: lang_family_5
    dtype: string
  - name: label
    dtype: string
  splits:
  - name: train
    num_bytes: 4035426467
    num_examples: 17755776
  - name: validation
    num_bytes: 237264556
    num_examples: 1044489
  - name: test
    num_bytes: 17240082
    num_examples: 65503
  download_size: 1339922188
  dataset_size: 4289931105
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: validation
    path: data/validation-*
  - split: test
    path: data/test-*
---
# Afroscope-Data

This is the corpus released as part of the AfroScope project for large-scale African language identification, supporting 713 languages. It provides sentence-level text with language labels and linguistic metadata and was used to train the open [Afroscope-model](https://huggingface.co/14kwonss/afroscope-model).

The source project and additional resources are openly available here:

https://github.com/skwon01-UBC/AfroScope

## Dataset Features

- **sentence** *(string)*: The text sample.
- **ISO-639-3** *(string)*: The ISO 639-3 language code.
- **script** *(string)*: The writing script (e.g., `Latn`, `Arab`).
- **domain** *(string)*: Source/domain category of the sample.
- **lang_family_1 ~ 5** *(string)*: Language family hierarchy.
- **label** *(string)*: The final label used for classification.

## Loading the dataset

```python
from datasets import load_dataset

ds = load_dataset(
    "UBC-NLP/afroscope-dataset",
    split="train"
)

print(ds[0])
```

## Citation

```bibtex
@article{kwon2026afroscope,
  title={AfroScope: A Framework for Studying the Linguistic Landscape of Africa},
  author={Kwon, Sang Yun and Elmadany, AbdelRahim and Abdul-Mageed, Muhammad},
  journal={arXiv preprint arXiv:2601.13346},
  year={2026}
}
```