Similoluwa commited on
Commit
c80bf43
·
verified ·
1 Parent(s): e11aeac

Publish AMTC dataset v1.0.0

Browse files
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: African Multilingual Tokenizer Challenge
3
+ language:
4
+ - en
5
+ - fr
6
+ - ha
7
+ - sw
8
+ - yo
9
+ - am
10
+ license:
11
+ - cc-by-sa-3.0
12
+ - gfdl
13
+ task_categories:
14
+ - text-generation
15
+ size_categories:
16
+ - 100K<n<1M
17
+ configs:
18
+ - config_name: default
19
+ data_files:
20
+ - split: train
21
+ path: data/train-*.parquet
22
+ - split: validation
23
+ path: data/validation-*.parquet
24
+ dataset_info:
25
+ features:
26
+ - name: language
27
+ dtype: string
28
+ - name: text
29
+ dtype: string
30
+ - name: source_id
31
+ dtype: string
32
+ - name: source_url
33
+ dtype: string
34
+ - name: source_config
35
+ dtype: string
36
+ - name: source_revision
37
+ dtype: string
38
+ - name: segment_index
39
+ dtype: int32
40
+ - name: content_sha256
41
+ dtype: string
42
+ ---
43
+
44
+ # African Multilingual Tokenizer Challenge dataset
45
+
46
+ The frozen public corpus for the African Multilingual Tokenizer Challenge. It contains one balanced multilingual `train` split and one balanced `validation` split.
47
+
48
+ | Split | Per language | Total |
49
+ | --- | ---: | ---: |
50
+ | Train | 40,000 | 240,000 |
51
+ | Validation | 4,000 | 24,000 |
52
+
53
+ Languages are English (`en`), French (`fr`), Hausa (`ha`), Swahili (`sw`), Yoruba (`yo`) and Amharic (`am`). Official public-test and private-test text are deliberately absent from this repository.
54
+
55
+ ## Load
56
+
57
+ ```python
58
+ from datasets import load_dataset
59
+
60
+ dataset = load_dataset(
61
+ "Similoluwa/african-multilingual-tokenizer-challenge",
62
+ revision="v1.0.0",
63
+ )
64
+ ```
65
+
66
+ Tokenizer training needs only `language` and `text`. The remaining columns preserve page-level attribution and reproducibility.
67
+
68
+ ## Source and license
69
+
70
+ All passages are derived from the `20231101.{language}` configurations of [`wikimedia/wikipedia`](https://huggingface.co/datasets/wikimedia/wikipedia), pinned to source revision `b04c8d1ceb2f5cd4588862100d08de323dccfbaa`. Wikipedia textual content is available under the Creative Commons Attribution-ShareAlike 3.0 license and GNU Free Documentation License; individual pages may have additional terms. Every row retains the source page URL and article ID. Reusers must comply with the source licenses, including attribution and share-alike obligations.
71
+
72
+ ## Construction
73
+
74
+ - Unicode is normalized to NFC; language-bearing diacritics are retained.
75
+ - Cleaned Wikipedia articles are greedily segmented around a 120-character target, with a hard 40 to 320 character range.
76
+ - No article contributes to more than one split.
77
+ - Exact duplicates after NFKC, case-folding and whitespace normalization are removed globally.
78
+ - Each article contributes at most 64 passages.
79
+ - Per-language split counts are exact and balanced.
80
+ - Files are Parquet with Zstandard compression.
81
+ - `manifest.json` records source revision, algorithm parameters, counts and SHA-256 checksums.
82
+
83
+ ## Limitations and required review
84
+
85
+ Wikipedia is not a representative sample of everyday language and can contain bias, personal information, offensive text, markup residue or language-mixing. Configuration identity is used as the primary language label; no sentence-level human relabeling is claimed. Before a prize-bearing launch, proficient reviewers for every language must review samples from every split and the organizers must record acceptance criteria and remediation. The hidden test splits require the same review.
86
+
87
+ This dataset is suitable for tokenizer experimentation, not for evaluating factual accuracy or demographic representativeness.
data/train-am.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfc9b3593f977d410182daba1b2d2f706e2e384d24c06c86a82670b07dee15cb
3
+ size 5645429
data/train-en.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fd4568e9a57934baf64daceb34097e8fd9303bec7d2f5760eb50daf3d3e2702
3
+ size 4343053
data/train-fr.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e4d18d745633e95e41a0a0708a6e458574e4f0c72f235544007b18c5429e3ae
3
+ size 4485073
data/train-ha.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16c8a22c9590ca9d2a2e737f3e1ef37e2fb90d7d3f7f256ffe3367dc8237daa2
3
+ size 4213822
data/train-sw.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc129a039f8e363043615897c0eb40b0f10ccf54a08f49822ed47d89b6ba2cd1
3
+ size 3755496
data/train-yo.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1eed86ead20ebe2193c79f6d0d05ba9b8f881ed65ebf5b159312bde42504d78f
3
+ size 4690281
data/validation-am.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:638149069914fa578d1588259787c07eed9ce128e2f8d4879393853ce3ea88f5
3
+ size 543192
data/validation-en.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a8e93ffbf683f69ed722b0ecb84f864820d3b675f44b80745e3cae7be44e6f6
3
+ size 432701
data/validation-fr.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fa91286b9db816ded1d9d45f16a5a72fbe305adb3bd90378e2f218ac66951b8
3
+ size 440286
data/validation-ha.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c4f938b4a7d5ed26c89ebaf2b7479613e47b08e78feb4e131337e215a734dd2
3
+ size 412242
data/validation-sw.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36ea4136453ee6b558bb9fd1e2d83caef11cdea1b64f329d5c22bd750ee6f777
3
+ size 369354
data/validation-yo.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2686fc7f5a08c4f00e688f861fd028515c93ee078f85c625aa5e3a5062bb0b80
3
+ size 457289
manifest.json ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_version": "1.0.0",
3
+ "pipeline_version": "3.0.0",
4
+ "seed": "amtc-v1-2026",
5
+ "source_dataset": "wikimedia/wikipedia",
6
+ "source_revision": "b04c8d1ceb2f5cd4588862100d08de323dccfbaa",
7
+ "source_date": "20231101",
8
+ "targets_per_language": {
9
+ "train": 40000,
10
+ "validation": 4000,
11
+ "public_test": 4000,
12
+ "private_test": 8000
13
+ },
14
+ "languages": [
15
+ "en",
16
+ "fr",
17
+ "ha",
18
+ "sw",
19
+ "yo",
20
+ "am"
21
+ ],
22
+ "segmentation": {
23
+ "min_characters": 40,
24
+ "target_characters": 120,
25
+ "max_characters": 320,
26
+ "max_segments_per_article": 64,
27
+ "unicode_normalization": "NFC"
28
+ },
29
+ "language_reports": [
30
+ {
31
+ "language": "en",
32
+ "language_name": "English",
33
+ "articles_scanned": 1056,
34
+ "duplicates_removed": 41,
35
+ "segments_discarded_after_quota": 163,
36
+ "counts": {
37
+ "validation": 4000,
38
+ "public_test": 4000,
39
+ "private_test": 8000,
40
+ "train": 40000
41
+ }
42
+ },
43
+ {
44
+ "language": "fr",
45
+ "language_name": "French",
46
+ "articles_scanned": 1168,
47
+ "duplicates_removed": 171,
48
+ "segments_discarded_after_quota": 175,
49
+ "counts": {
50
+ "train": 40000,
51
+ "private_test": 8000,
52
+ "validation": 4000,
53
+ "public_test": 4000
54
+ }
55
+ },
56
+ {
57
+ "language": "ha",
58
+ "language_name": "Hausa",
59
+ "articles_scanned": 6494,
60
+ "duplicates_removed": 584,
61
+ "segments_discarded_after_quota": 55,
62
+ "counts": {
63
+ "train": 40000,
64
+ "private_test": 8000,
65
+ "public_test": 4000,
66
+ "validation": 4000
67
+ }
68
+ },
69
+ {
70
+ "language": "sw",
71
+ "language_name": "Swahili",
72
+ "articles_scanned": 5993,
73
+ "duplicates_removed": 1166,
74
+ "segments_discarded_after_quota": 46,
75
+ "counts": {
76
+ "public_test": 4000,
77
+ "validation": 4000,
78
+ "private_test": 8000,
79
+ "train": 40000
80
+ }
81
+ },
82
+ {
83
+ "language": "yo",
84
+ "language_name": "Yoruba",
85
+ "articles_scanned": 31002,
86
+ "duplicates_removed": 19211,
87
+ "segments_discarded_after_quota": 70,
88
+ "counts": {
89
+ "train": 40000,
90
+ "validation": 4000,
91
+ "public_test": 4000,
92
+ "private_test": 8000
93
+ }
94
+ },
95
+ {
96
+ "language": "am",
97
+ "language_name": "Amharic",
98
+ "articles_scanned": 13388,
99
+ "duplicates_removed": 1834,
100
+ "segments_discarded_after_quota": 60,
101
+ "counts": {
102
+ "public_test": 4000,
103
+ "train": 40000,
104
+ "private_test": 8000,
105
+ "validation": 4000
106
+ }
107
+ }
108
+ ],
109
+ "global_unique_content_hashes": 336000,
110
+ "visibility": "public",
111
+ "splits": [
112
+ "train",
113
+ "validation"
114
+ ],
115
+ "files": [
116
+ {
117
+ "path": "dataset_release/build/public/data/train-en.parquet",
118
+ "rows": 40000,
119
+ "bytes": 4343053,
120
+ "sha256": "4fd4568e9a57934baf64daceb34097e8fd9303bec7d2f5760eb50daf3d3e2702"
121
+ },
122
+ {
123
+ "path": "dataset_release/build/public/data/validation-en.parquet",
124
+ "rows": 4000,
125
+ "bytes": 432701,
126
+ "sha256": "5a8e93ffbf683f69ed722b0ecb84f864820d3b675f44b80745e3cae7be44e6f6"
127
+ },
128
+ {
129
+ "path": "dataset_release/build/public/data/train-fr.parquet",
130
+ "rows": 40000,
131
+ "bytes": 4485073,
132
+ "sha256": "9e4d18d745633e95e41a0a0708a6e458574e4f0c72f235544007b18c5429e3ae"
133
+ },
134
+ {
135
+ "path": "dataset_release/build/public/data/validation-fr.parquet",
136
+ "rows": 4000,
137
+ "bytes": 440286,
138
+ "sha256": "3fa91286b9db816ded1d9d45f16a5a72fbe305adb3bd90378e2f218ac66951b8"
139
+ },
140
+ {
141
+ "path": "dataset_release/build/public/data/train-ha.parquet",
142
+ "rows": 40000,
143
+ "bytes": 4213822,
144
+ "sha256": "16c8a22c9590ca9d2a2e737f3e1ef37e2fb90d7d3f7f256ffe3367dc8237daa2"
145
+ },
146
+ {
147
+ "path": "dataset_release/build/public/data/validation-ha.parquet",
148
+ "rows": 4000,
149
+ "bytes": 412242,
150
+ "sha256": "2c4f938b4a7d5ed26c89ebaf2b7479613e47b08e78feb4e131337e215a734dd2"
151
+ },
152
+ {
153
+ "path": "dataset_release/build/public/data/train-sw.parquet",
154
+ "rows": 40000,
155
+ "bytes": 3755496,
156
+ "sha256": "dc129a039f8e363043615897c0eb40b0f10ccf54a08f49822ed47d89b6ba2cd1"
157
+ },
158
+ {
159
+ "path": "dataset_release/build/public/data/validation-sw.parquet",
160
+ "rows": 4000,
161
+ "bytes": 369354,
162
+ "sha256": "36ea4136453ee6b558bb9fd1e2d83caef11cdea1b64f329d5c22bd750ee6f777"
163
+ },
164
+ {
165
+ "path": "dataset_release/build/public/data/train-yo.parquet",
166
+ "rows": 40000,
167
+ "bytes": 4690281,
168
+ "sha256": "1eed86ead20ebe2193c79f6d0d05ba9b8f881ed65ebf5b159312bde42504d78f"
169
+ },
170
+ {
171
+ "path": "dataset_release/build/public/data/validation-yo.parquet",
172
+ "rows": 4000,
173
+ "bytes": 457289,
174
+ "sha256": "2686fc7f5a08c4f00e688f861fd028515c93ee078f85c625aa5e3a5062bb0b80"
175
+ },
176
+ {
177
+ "path": "dataset_release/build/public/data/train-am.parquet",
178
+ "rows": 40000,
179
+ "bytes": 5645429,
180
+ "sha256": "bfc9b3593f977d410182daba1b2d2f706e2e384d24c06c86a82670b07dee15cb"
181
+ },
182
+ {
183
+ "path": "dataset_release/build/public/data/validation-am.parquet",
184
+ "rows": 4000,
185
+ "bytes": 543192,
186
+ "sha256": "638149069914fa578d1588259787c07eed9ce128e2f8d4879393853ce3ea88f5"
187
+ }
188
+ ]
189
+ }