Datasets:

Modalities:
Text
Formats:
json
Languages:
Vietnamese
ArXiv:
Libraries:
Datasets
Dask
License:
3v324v23 commited on
Commit
517e22b
1 Parent(s): 7281cd2
README.md ADDED
The diff for this file is too large to render. See raw diff
 
madlad-400.py ADDED
@@ -0,0 +1,523 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """madlad-400 dataset"""
2
+
3
+
4
+ import gzip
5
+ import json
6
+
7
+ import datasets
8
+
9
+
10
+ logger = datasets.logging.get_logger(__name__)
11
+
12
+
13
+ _DESCRIPTION = """\
14
+ MADLAD-400 (Multilingual Audited Dataset: Low-resource And Document-level) is a document-level multilingual dataset based on Common Crawl, covering 419 languages in total. We use all snapshots of CommonCrawl available as of August 1, 2022. The primary advantage of this dataset over similar datasets is that it is more multilingual (419 languages), it is audited and more highly filtered, and it is document-level. The main disadvantage is also its strength -- being more filtered, it may lack the recall needed for some applications.
15
+ """
16
+
17
+ _CITATION = """
18
+ @misc{kudugunta2023madlad400,
19
+ title={MADLAD-400: A Multilingual And Document-Level Large Audited Dataset},
20
+ author={Sneha Kudugunta and Isaac Caswell and Biao Zhang and Xavier Garcia and Christopher A. Choquette-Choo and Katherine Lee and Derrick Xin and Aditya Kusupati and Romi Stella and Ankur Bapna and Orhan Firat},
21
+ year={2023},
22
+ eprint={2309.04662},
23
+ archivePrefix={arXiv},
24
+ primaryClass={cs.CL}
25
+ }
26
+ """
27
+
28
+ _DATA_URL = "https://huggingface.co/datasets/allenai/MADLAD-400/resolve/ecd71297d60c1eb996cd3d7c44c60ad5b55adfc6/data/{language}/{language}_{split}_{index:04d}.jsonl.gz"
29
+
30
+
31
+
32
+
33
+ _N_SHARDS_PER_SPLIT = {
34
+ 'abt': {'clean': 1, 'noisy': 1},
35
+ 'ace': {'clean': 1, 'noisy': 1},
36
+ 'acf': {'clean': 1, 'noisy': 1},
37
+ 'ach': {'clean': 1, 'noisy': 1},
38
+ 'ada': {'clean': 1, 'noisy': 1},
39
+ 'adh': {'clean': 1, 'noisy': 1},
40
+ 'ady': {'clean': 1, 'noisy': 1},
41
+ 'af': {'clean': 1, 'noisy': 2},
42
+ 'agr': {'clean': 1, 'noisy': 1},
43
+ 'ahk': {'clean': 1, 'noisy': 1},
44
+ 'ak': {'clean': 1, 'noisy': 1},
45
+ 'akb': {'clean': 1, 'noisy': 1},
46
+ 'alt': {'clean': 1, 'noisy': 1},
47
+ 'alz': {'clean': 1, 'noisy': 1},
48
+ 'am': {'clean': 1, 'noisy': 1},
49
+ 'amu': {'clean': 1, 'noisy': 1},
50
+ 'ang': {'clean': 1, 'noisy': 1},
51
+ 'ann': {'clean': 1, 'noisy': 1},
52
+ 'ape': {'clean': 1, 'noisy': 1},
53
+ 'ar': {'clean': 8, 'noisy': 44},
54
+ 'arn': {'clean': 1, 'noisy': 1},
55
+ 'as': {'clean': 1, 'noisy': 1},
56
+ 'av': {'clean': 1, 'noisy': 1},
57
+ 'awa': {'clean': 1, 'noisy': 1},
58
+ 'ay': {'clean': 1, 'noisy': 1},
59
+ 'az': {'clean': 2, 'noisy': 3},
60
+ 'az_RU': {'clean': 1, 'noisy': 1},
61
+ 'ba': {'clean': 1, 'noisy': 1},
62
+ 'ban': {'clean': 1, 'noisy': 1},
63
+ 'bas': {'clean': 1, 'noisy': 1},
64
+ 'bbc': {'clean': 1, 'noisy': 1},
65
+ 'bci': {'clean': 1, 'noisy': 1},
66
+ 'be': {'clean': 1, 'noisy': 2},
67
+ 'ber': {'clean': 1, 'noisy': 1},
68
+ 'ber_Latn': {'clean': 1, 'noisy': 1},
69
+ 'bew': {'clean': 1, 'noisy': 1},
70
+ 'bg': {'clean': 10, 'noisy': 16},
71
+ 'bg_Latn': {'clean': 1, 'noisy': 1},
72
+ 'bgp': {'clean': 1, 'noisy': 1},
73
+ 'bho': {'clean': 1, 'noisy': 1},
74
+ 'bi': {'clean': 1, 'noisy': 1},
75
+ 'bik': {'clean': 1, 'noisy': 1},
76
+ 'bim': {'clean': 1, 'noisy': 1},
77
+ 'bm': {'clean': 1, 'noisy': 1},
78
+ 'bn': {'clean': 1, 'noisy': 4},
79
+ 'bn_Latn': {'clean': 1, 'noisy': 1},
80
+ 'bo': {'clean': 1, 'noisy': 1},
81
+ 'bqc': {'clean': 1, 'noisy': 1},
82
+ 'br': {'clean': 1, 'noisy': 1},
83
+ 'bru': {'clean': 1, 'noisy': 1},
84
+ 'brx': {'clean': 1, 'noisy': 1},
85
+ 'bs': {'clean': 1, 'noisy': 6},
86
+ 'bts': {'clean': 1, 'noisy': 1},
87
+ 'btx': {'clean': 1, 'noisy': 1},
88
+ 'bua': {'clean': 1, 'noisy': 1},
89
+ 'bum': {'clean': 1, 'noisy': 1},
90
+ 'bus': {'clean': 1, 'noisy': 1},
91
+ 'bzj': {'clean': 1, 'noisy': 1},
92
+ 'ca': {'clean': 5, 'noisy': 8},
93
+ 'cab': {'clean': 1, 'noisy': 1},
94
+ 'cac': {'clean': 1, 'noisy': 1},
95
+ 'cak': {'clean': 1, 'noisy': 1},
96
+ 'cbk': {'clean': 1, 'noisy': 1},
97
+ 'cce': {'clean': 1, 'noisy': 1},
98
+ 'ce': {'clean': 1, 'noisy': 1},
99
+ 'ceb': {'clean': 1, 'noisy': 1},
100
+ 'cfm': {'clean': 1, 'noisy': 1},
101
+ 'ch': {'clean': 1, 'noisy': 1},
102
+ 'chk': {'clean': 1, 'noisy': 1},
103
+ 'chm': {'clean': 1, 'noisy': 1},
104
+ 'chr': {'clean': 1, 'noisy': 1},
105
+ 'ckb': {'clean': 1, 'noisy': 1},
106
+ 'cnh': {'clean': 1, 'noisy': 1},
107
+ 'co': {'clean': 1, 'noisy': 1},
108
+ 'cr_Latn': {'clean': 1, 'noisy': 1},
109
+ 'crh': {'clean': 1, 'noisy': 1},
110
+ 'crs': {'clean': 1, 'noisy': 1},
111
+ 'cs': {'clean': 23, 'noisy': 44},
112
+ 'ctd_Latn': {'clean': 1, 'noisy': 1},
113
+ 'ctu': {'clean': 1, 'noisy': 1},
114
+ 'cuk': {'clean': 1, 'noisy': 1},
115
+ 'cv': {'clean': 1, 'noisy': 1},
116
+ 'cy': {'clean': 1, 'noisy': 4},
117
+ 'da': {'clean': 11, 'noisy': 36},
118
+ 'de': {'clean': 133, 'noisy': 293},
119
+ 'din': {'clean': 1, 'noisy': 1},
120
+ 'dje': {'clean': 1, 'noisy': 1},
121
+ 'djk': {'clean': 1, 'noisy': 1},
122
+ 'dln': {'clean': 1, 'noisy': 1},
123
+ 'doi': {'clean': 1, 'noisy': 1},
124
+ 'dov': {'clean': 1, 'noisy': 1},
125
+ 'dtp': {'clean': 1, 'noisy': 1},
126
+ 'dv': {'clean': 1, 'noisy': 1},
127
+ 'dwr': {'clean': 1, 'noisy': 1},
128
+ 'dyu': {'clean': 1, 'noisy': 1},
129
+ 'dz': {'clean': 1, 'noisy': 1},
130
+ 'ee': {'clean': 1, 'noisy': 1},
131
+ 'el': {'clean': 14, 'noisy': 29},
132
+ 'el_Latn': {'clean': 1, 'noisy': 1},
133
+ 'emp': {'clean': 1, 'noisy': 1},
134
+ 'en': {'clean': 947, 'noisy': 1555},
135
+ 'enq': {'clean': 1, 'noisy': 1},
136
+ 'eo': {'clean': 1, 'noisy': 1},
137
+ 'es': {'clean': 137, 'noisy': 269},
138
+ 'et': {'clean': 4, 'noisy': 6},
139
+ 'eu': {'clean': 1, 'noisy': 1},
140
+ 'fa': {'clean': 16, 'noisy': 35},
141
+ 'ff': {'clean': 1, 'noisy': 1},
142
+ 'ffm': {'clean': 1, 'noisy': 1},
143
+ 'fi': {'clean': 14, 'noisy': 27},
144
+ 'fil': {'clean': 1, 'noisy': 2},
145
+ 'fip': {'clean': 1, 'noisy': 1},
146
+ 'fj': {'clean': 1, 'noisy': 1},
147
+ 'fo': {'clean': 1, 'noisy': 1},
148
+ 'fon': {'clean': 1, 'noisy': 1},
149
+ 'fr': {'clean': 133, 'noisy': 251},
150
+ 'frp': {'clean': 1, 'noisy': 1},
151
+ 'fy': {'clean': 1, 'noisy': 1},
152
+ 'ga': {'clean': 1, 'noisy': 4},
153
+ 'gag': {'clean': 1, 'noisy': 1},
154
+ 'gbm': {'clean': 1, 'noisy': 1},
155
+ 'gd': {'clean': 1, 'noisy': 1},
156
+ 'gl': {'clean': 1, 'noisy': 2},
157
+ 'gn': {'clean': 1, 'noisy': 1},
158
+ 'gof': {'clean': 1, 'noisy': 1},
159
+ 'gom': {'clean': 1, 'noisy': 1},
160
+ 'gom_Latn': {'clean': 1, 'noisy': 1},
161
+ 'gor': {'clean': 1, 'noisy': 1},
162
+ 'grc': {'clean': 1, 'noisy': 1},
163
+ 'gsw': {'clean': 1, 'noisy': 5},
164
+ 'gu': {'clean': 1, 'noisy': 1},
165
+ 'gu_Latn': {'clean': 1, 'noisy': 1},
166
+ 'gub': {'clean': 1, 'noisy': 1},
167
+ 'guc': {'clean': 1, 'noisy': 1},
168
+ 'guh': {'clean': 1, 'noisy': 1},
169
+ 'gui': {'clean': 1, 'noisy': 1},
170
+ 'gv': {'clean': 1, 'noisy': 1},
171
+ 'gvl': {'clean': 1, 'noisy': 1},
172
+ 'gym': {'clean': 1, 'noisy': 1},
173
+ 'ha': {'clean': 1, 'noisy': 1},
174
+ 'haw': {'clean': 1, 'noisy': 1},
175
+ 'he': {'clean': 6, 'noisy': 10},
176
+ 'hi': {'clean': 4, 'noisy': 8},
177
+ 'hi_Latn': {'clean': 1, 'noisy': 1},
178
+ 'hif': {'clean': 1, 'noisy': 2},
179
+ 'hil': {'clean': 1, 'noisy': 1},
180
+ 'hmn': {'clean': 1, 'noisy': 1},
181
+ 'hne': {'clean': 1, 'noisy': 1},
182
+ 'ho': {'clean': 1, 'noisy': 1},
183
+ 'hr': {'clean': 2, 'noisy': 13},
184
+ 'ht': {'clean': 1, 'noisy': 1},
185
+ 'hu': {'clean': 20, 'noisy': 34},
186
+ 'hui': {'clean': 1, 'noisy': 1},
187
+ 'hus': {'clean': 1, 'noisy': 1},
188
+ 'hvn': {'clean': 1, 'noisy': 1},
189
+ 'hy': {'clean': 1, 'noisy': 2},
190
+ 'iba': {'clean': 1, 'noisy': 1},
191
+ 'ibb': {'clean': 1, 'noisy': 1},
192
+ 'id': {'clean': 18, 'noisy': 54},
193
+ 'ify': {'clean': 1, 'noisy': 1},
194
+ 'ig': {'clean': 1, 'noisy': 1},
195
+ 'ilo': {'clean': 1, 'noisy': 1},
196
+ 'inb': {'clean': 1, 'noisy': 1},
197
+ 'is': {'clean': 1, 'noisy': 3},
198
+ 'iso': {'clean': 1, 'noisy': 1},
199
+ 'it': {'clean': 72, 'noisy': 170},
200
+ 'iu': {'clean': 1, 'noisy': 1},
201
+ 'ium': {'clean': 1, 'noisy': 1},
202
+ 'izz': {'clean': 1, 'noisy': 1},
203
+ 'ja': {'clean': 36, 'noisy': 36},
204
+ 'jac': {'clean': 1, 'noisy': 1},
205
+ 'jam': {'clean': 1, 'noisy': 1},
206
+ 'jiv': {'clean': 1, 'noisy': 1},
207
+ 'jv': {'clean': 1, 'noisy': 1},
208
+ 'jvn': {'clean': 1, 'noisy': 1},
209
+ 'ka': {'clean': 1, 'noisy': 2},
210
+ 'kaa': {'clean': 1, 'noisy': 1},
211
+ 'kaa_Latn': {'clean': 1, 'noisy': 1},
212
+ 'kac': {'clean': 1, 'noisy': 1},
213
+ 'kbd': {'clean': 1, 'noisy': 1},
214
+ 'kbp': {'clean': 1, 'noisy': 1},
215
+ 'kek': {'clean': 1, 'noisy': 1},
216
+ 'kg': {'clean': 1, 'noisy': 1},
217
+ 'kha': {'clean': 1, 'noisy': 1},
218
+ 'kj': {'clean': 1, 'noisy': 1},
219
+ 'kjg': {'clean': 1, 'noisy': 1},
220
+ 'kjh': {'clean': 1, 'noisy': 1},
221
+ 'kk': {'clean': 2, 'noisy': 3},
222
+ 'kl': {'clean': 1, 'noisy': 1},
223
+ 'km': {'clean': 1, 'noisy': 1},
224
+ 'kmb': {'clean': 1, 'noisy': 1},
225
+ 'kmz_Latn': {'clean': 1, 'noisy': 1},
226
+ 'kn': {'clean': 1, 'noisy': 1},
227
+ 'kn_Latn': {'clean': 1, 'noisy': 1},
228
+ 'knj': {'clean': 1, 'noisy': 1},
229
+ 'ko': {'clean': 13, 'noisy': 19},
230
+ 'koi': {'clean': 1, 'noisy': 1},
231
+ 'kos': {'clean': 1, 'noisy': 1},
232
+ 'krc': {'clean': 1, 'noisy': 1},
233
+ 'kri': {'clean': 1, 'noisy': 1},
234
+ 'ksd': {'clean': 1, 'noisy': 1},
235
+ 'ksw': {'clean': 1, 'noisy': 1},
236
+ 'ktu': {'clean': 1, 'noisy': 1},
237
+ 'ku': {'clean': 1, 'noisy': 1},
238
+ 'kum': {'clean': 1, 'noisy': 1},
239
+ 'kv': {'clean': 1, 'noisy': 1},
240
+ 'kw': {'clean': 1, 'noisy': 1},
241
+ 'kwi': {'clean': 1, 'noisy': 1},
242
+ 'ky': {'clean': 1, 'noisy': 1},
243
+ 'la': {'clean': 1, 'noisy': 2},
244
+ 'laj': {'clean': 1, 'noisy': 1},
245
+ 'lb': {'clean': 1, 'noisy': 8},
246
+ 'lg': {'clean': 1, 'noisy': 1},
247
+ 'lhu': {'clean': 1, 'noisy': 1},
248
+ 'ln': {'clean': 1, 'noisy': 1},
249
+ 'lo': {'clean': 1, 'noisy': 1},
250
+ 'lrc': {'clean': 1, 'noisy': 1},
251
+ 'lt': {'clean': 6, 'noisy': 9},
252
+ 'ltg': {'clean': 1, 'noisy': 1},
253
+ 'lu': {'clean': 1, 'noisy': 1},
254
+ 'lus': {'clean': 1, 'noisy': 1},
255
+ 'lv': {'clean': 4, 'noisy': 5},
256
+ 'mad': {'clean': 1, 'noisy': 1},
257
+ 'mag': {'clean': 1, 'noisy': 1},
258
+ 'mai': {'clean': 1, 'noisy': 1},
259
+ 'mak': {'clean': 1, 'noisy': 1},
260
+ 'mam': {'clean': 1, 'noisy': 1},
261
+ 'mas': {'clean': 1, 'noisy': 1},
262
+ 'maz': {'clean': 1, 'noisy': 1},
263
+ 'mbt': {'clean': 1, 'noisy': 1},
264
+ 'mdf': {'clean': 1, 'noisy': 1},
265
+ 'meo': {'clean': 1, 'noisy': 1},
266
+ 'meu': {'clean': 1, 'noisy': 1},
267
+ 'mfe': {'clean': 1, 'noisy': 1},
268
+ 'mg': {'clean': 1, 'noisy': 1},
269
+ 'mgh': {'clean': 1, 'noisy': 1},
270
+ 'mh': {'clean': 1, 'noisy': 1},
271
+ 'mi': {'clean': 1, 'noisy': 1},
272
+ 'min': {'clean': 1, 'noisy': 1},
273
+ 'miq': {'clean': 1, 'noisy': 1},
274
+ 'mk': {'clean': 1, 'noisy': 2},
275
+ 'mkn': {'clean': 1, 'noisy': 1},
276
+ 'ml': {'clean': 2, 'noisy': 2},
277
+ 'ml_Latn': {'clean': 1, 'noisy': 1},
278
+ 'mn': {'clean': 1, 'noisy': 2},
279
+ 'mni': {'clean': 1, 'noisy': 1},
280
+ 'mps': {'clean': 1, 'noisy': 1},
281
+ 'mqy': {'clean': 1, 'noisy': 1},
282
+ 'mr': {'clean': 1, 'noisy': 2},
283
+ 'mrj': {'clean': 1, 'noisy': 1},
284
+ 'mrw': {'clean': 1, 'noisy': 1},
285
+ 'ms': {'clean': 2, 'noisy': 8},
286
+ 'ms_Arab': {'clean': 1, 'noisy': 1},
287
+ 'ms_Arab_BN': {'clean': 1, 'noisy': 1},
288
+ 'msb': {'clean': 1, 'noisy': 1},
289
+ 'msi': {'clean': 1, 'noisy': 1},
290
+ 'msm': {'clean': 1, 'noisy': 1},
291
+ 'mt': {'clean': 1, 'noisy': 1},
292
+ 'my': {'clean': 1, 'noisy': 1},
293
+ 'myv': {'clean': 1, 'noisy': 1},
294
+ 'nan_Latn_TW': {'clean': 1, 'noisy': 1},
295
+ 'ndc_ZW': {'clean': 1, 'noisy': 1},
296
+ 'ne': {'clean': 1, 'noisy': 1},
297
+ 'new': {'clean': 1, 'noisy': 1},
298
+ 'ngu': {'clean': 1, 'noisy': 1},
299
+ 'nhe': {'clean': 1, 'noisy': 1},
300
+ 'nia': {'clean': 1, 'noisy': 1},
301
+ 'nij': {'clean': 1, 'noisy': 1},
302
+ 'niq': {'clean': 1, 'noisy': 1},
303
+ 'nl': {'clean': 43, 'noisy': 95},
304
+ 'nnb': {'clean': 1, 'noisy': 1},
305
+ 'no': {'clean': 10, 'noisy': 40},
306
+ 'noa': {'clean': 1, 'noisy': 1},
307
+ 'nog': {'clean': 1, 'noisy': 1},
308
+ 'nr': {'clean': 1, 'noisy': 1},
309
+ 'nso': {'clean': 1, 'noisy': 1},
310
+ 'nut': {'clean': 1, 'noisy': 1},
311
+ 'nv': {'clean': 1, 'noisy': 1},
312
+ 'ny': {'clean': 1, 'noisy': 1},
313
+ 'nyu': {'clean': 1, 'noisy': 1},
314
+ 'nzi': {'clean': 1, 'noisy': 1},
315
+ 'oc': {'clean': 1, 'noisy': 1},
316
+ 'oj': {'clean': 1, 'noisy': 1},
317
+ 'om': {'clean': 1, 'noisy': 1},
318
+ 'or': {'clean': 1, 'noisy': 1},
319
+ 'os': {'clean': 1, 'noisy': 1},
320
+ 'otq': {'clean': 1, 'noisy': 1},
321
+ 'pa': {'clean': 1, 'noisy': 1},
322
+ 'pag': {'clean': 1, 'noisy': 1},
323
+ 'pap': {'clean': 1, 'noisy': 1},
324
+ 'pau': {'clean': 1, 'noisy': 1},
325
+ 'pck': {'clean': 1, 'noisy': 1},
326
+ 'pis': {'clean': 1, 'noisy': 1},
327
+ 'pl': {'clean': 51, 'noisy': 74},
328
+ 'pon': {'clean': 1, 'noisy': 1},
329
+ 'ppk': {'clean': 1, 'noisy': 1},
330
+ 'ps': {'clean': 1, 'noisy': 1},
331
+ 'pt': {'clean': 66, 'noisy': 104},
332
+ 'qu': {'clean': 1, 'noisy': 1},
333
+ 'qub': {'clean': 1, 'noisy': 1},
334
+ 'quc': {'clean': 1, 'noisy': 1},
335
+ 'quf': {'clean': 1, 'noisy': 1},
336
+ 'quh': {'clean': 1, 'noisy': 1},
337
+ 'qup': {'clean': 1, 'noisy': 1},
338
+ 'quy': {'clean': 1, 'noisy': 1},
339
+ 'qvc': {'clean': 1, 'noisy': 1},
340
+ 'qvi': {'clean': 1, 'noisy': 1},
341
+ 'qvz': {'clean': 1, 'noisy': 1},
342
+ 'qxr': {'clean': 1, 'noisy': 1},
343
+ 'raj': {'clean': 1, 'noisy': 1},
344
+ 'rcf': {'clean': 1, 'noisy': 1},
345
+ 'rki': {'clean': 1, 'noisy': 1},
346
+ 'rm': {'clean': 1, 'noisy': 1},
347
+ 'rmc': {'clean': 1, 'noisy': 1},
348
+ 'rn': {'clean': 1, 'noisy': 1},
349
+ 'ro': {'clean': 20, 'noisy': 33},
350
+ 'rom': {'clean': 1, 'noisy': 1},
351
+ 'ru': {'clean': 299, 'noisy': 512},
352
+ 'ru_Latn': {'clean': 1, 'noisy': 1},
353
+ 'rw': {'clean': 1, 'noisy': 1},
354
+ 'rwo': {'clean': 1, 'noisy': 1},
355
+ 'sa': {'clean': 1, 'noisy': 1},
356
+ 'sah': {'clean': 1, 'noisy': 1},
357
+ 'sat_Latn': {'clean': 1, 'noisy': 1},
358
+ 'sd': {'clean': 1, 'noisy': 1},
359
+ 'sda': {'clean': 1, 'noisy': 1},
360
+ 'se': {'clean': 1, 'noisy': 1},
361
+ 'seh': {'clean': 1, 'noisy': 1},
362
+ 'sg': {'clean': 1, 'noisy': 1},
363
+ 'shn': {'clean': 1, 'noisy': 1},
364
+ 'shp': {'clean': 1, 'noisy': 1},
365
+ 'si': {'clean': 1, 'noisy': 1},
366
+ 'sja': {'clean': 1, 'noisy': 1},
367
+ 'sk': {'clean': 7, 'noisy': 12},
368
+ 'skr': {'clean': 1, 'noisy': 1},
369
+ 'sl': {'clean': 5, 'noisy': 7},
370
+ 'sm': {'clean': 1, 'noisy': 1},
371
+ 'smt': {'clean': 1, 'noisy': 1},
372
+ 'sn': {'clean': 1, 'noisy': 2},
373
+ 'so': {'clean': 1, 'noisy': 1},
374
+ 'spp': {'clean': 1, 'noisy': 1},
375
+ 'sq': {'clean': 2, 'noisy': 3},
376
+ 'sr': {'clean': 2, 'noisy': 4},
377
+ 'srm': {'clean': 1, 'noisy': 1},
378
+ 'srn': {'clean': 1, 'noisy': 1},
379
+ 'ss': {'clean': 1, 'noisy': 1},
380
+ 'st': {'clean': 1, 'noisy': 1},
381
+ 'stq': {'clean': 1, 'noisy': 1},
382
+ 'su': {'clean': 1, 'noisy': 1},
383
+ 'sus': {'clean': 1, 'noisy': 1},
384
+ 'suz': {'clean': 1, 'noisy': 1},
385
+ 'sv': {'clean': 21, 'noisy': 55},
386
+ 'sw': {'clean': 1, 'noisy': 1},
387
+ 'sxn': {'clean': 1, 'noisy': 1},
388
+ 'syr': {'clean': 1, 'noisy': 1},
389
+ 'ta': {'clean': 2, 'noisy': 4},
390
+ 'ta_Latn': {'clean': 1, 'noisy': 1},
391
+ 'tab': {'clean': 1, 'noisy': 1},
392
+ 'taj': {'clean': 1, 'noisy': 1},
393
+ 'tbz': {'clean': 1, 'noisy': 1},
394
+ 'tca': {'clean': 1, 'noisy': 1},
395
+ 'tcy': {'clean': 1, 'noisy': 1},
396
+ 'tdx': {'clean': 1, 'noisy': 1},
397
+ 'te': {'clean': 1, 'noisy': 2},
398
+ 'te_Latn': {'clean': 1, 'noisy': 1},
399
+ 'teo': {'clean': 1, 'noisy': 1},
400
+ 'tet': {'clean': 1, 'noisy': 1},
401
+ 'tg': {'clean': 1, 'noisy': 1},
402
+ 'th': {'clean': 21, 'noisy': 22},
403
+ 'ti': {'clean': 1, 'noisy': 1},
404
+ 'tiv': {'clean': 1, 'noisy': 1},
405
+ 'tk': {'clean': 1, 'noisy': 1},
406
+ 'tks': {'clean': 1, 'noisy': 1},
407
+ 'tlh': {'clean': 1, 'noisy': 1},
408
+ 'tll': {'clean': 1, 'noisy': 1},
409
+ 'tly_IR': {'clean': 1, 'noisy': 1},
410
+ 'tn': {'clean': 1, 'noisy': 1},
411
+ 'to': {'clean': 1, 'noisy': 1},
412
+ 'toj': {'clean': 1, 'noisy': 1},
413
+ 'tr': {'clean': 27, 'noisy': 50},
414
+ 'trp': {'clean': 1, 'noisy': 1},
415
+ 'ts': {'clean': 1, 'noisy': 1},
416
+ 'tsc': {'clean': 1, 'noisy': 1},
417
+ 'tsg': {'clean': 1, 'noisy': 1},
418
+ 'tt': {'clean': 1, 'noisy': 2},
419
+ 'tuc': {'clean': 1, 'noisy': 1},
420
+ 'tvl': {'clean': 1, 'noisy': 1},
421
+ 'twu': {'clean': 1, 'noisy': 1},
422
+ 'tyv': {'clean': 1, 'noisy': 1},
423
+ 'tyz': {'clean': 1, 'noisy': 1},
424
+ 'tzh': {'clean': 1, 'noisy': 1},
425
+ 'tzj': {'clean': 1, 'noisy': 1},
426
+ 'tzo': {'clean': 1, 'noisy': 1},
427
+ 'ubu': {'clean': 1, 'noisy': 1},
428
+ 'udm': {'clean': 1, 'noisy': 1},
429
+ 'ug': {'clean': 1, 'noisy': 1},
430
+ 'uk': {'clean': 17, 'noisy': 28},
431
+ 'ur': {'clean': 1, 'noisy': 1},
432
+ 'uz': {'clean': 1, 'noisy': 1},
433
+ 've': {'clean': 1, 'noisy': 1},
434
+ 'vec': {'clean': 1, 'noisy': 1},
435
+ 'vi': {'clean': 32, 'noisy': 49},
436
+ 'wa': {'clean': 1, 'noisy': 1},
437
+ 'wal': {'clean': 1, 'noisy': 1},
438
+ 'war': {'clean': 1, 'noisy': 1},
439
+ 'wo': {'clean': 1, 'noisy': 1},
440
+ 'xal': {'clean': 1, 'noisy': 1},
441
+ 'xh': {'clean': 1, 'noisy': 1},
442
+ 'yap': {'clean': 1, 'noisy': 1},
443
+ 'yi': {'clean': 1, 'noisy': 1},
444
+ 'yo': {'clean': 1, 'noisy': 1},
445
+ 'yua': {'clean': 1, 'noisy': 1},
446
+ 'zap': {'clean': 1, 'noisy': 1},
447
+ 'zh': {'clean': 40, 'noisy': 69},
448
+ 'zh_Latn': {'clean': 1, 'noisy': 1},
449
+ 'zne': {'clean': 1, 'noisy': 1},
450
+ 'zu': {'clean': 1, 'noisy': 1},
451
+ 'zxx_xx_dtynoise': {'clean': 1, 'noisy': 1},
452
+ 'zza': {'clean': 1, 'noisy': 1}
453
+ }
454
+
455
+ _LANGUAGES = list(_N_SHARDS_PER_SPLIT.keys())
456
+
457
+ class Madlad400Config(datasets.BuilderConfig):
458
+ """BuilderConfig for madlad-400."""
459
+
460
+ def __init__(self, *args, languages, **kwargs):
461
+ """BuilderConfig for Madlad400.
462
+ Args:
463
+ languages (:obj:`List[str]`): list of languages to load
464
+ **kwargs: keyword arguments forwarded to super.
465
+ """
466
+ super().__init__(
467
+ *args,
468
+ name="+".join(languages),
469
+ **kwargs,
470
+ )
471
+ self.languages = languages
472
+
473
+
474
+ class Madlad400(datasets.GeneratorBasedBuilder):
475
+ """Madlad400,"""
476
+
477
+ BUILDER_CONFIGS = [Madlad400Config(languages=[lang]) for lang in _LANGUAGES]
478
+ BUILDER_CONFIG_CLASS = Madlad400Config
479
+
480
+ def _info(self):
481
+ return datasets.DatasetInfo(
482
+ description=_DESCRIPTION,
483
+ features=datasets.Features(
484
+ {
485
+ "text": datasets.Value("string"),
486
+ }
487
+ ),
488
+ supervised_keys=None,
489
+ citation=_CITATION,
490
+ )
491
+
492
+ def _split_generators(self, dl_manager):
493
+ data_urls = {}
494
+ for split in ["clean", "noisy"]:
495
+ data_urls[split] = [
496
+ _DATA_URL.format(
497
+ split=split,
498
+ language=lang,
499
+ index=index,
500
+ )
501
+ for lang in self.config.languages
502
+ for index in range(_N_SHARDS_PER_SPLIT[lang][split])
503
+ ]
504
+ clean_downloaded_files = dl_manager.download(data_urls['clean'])
505
+ noisy_downloaded_files = dl_manager.download(data_urls['noisy'])
506
+ return [
507
+ datasets.SplitGenerator(name="clean", gen_kwargs={"filepaths": clean_downloaded_files}),
508
+ datasets.SplitGenerator(
509
+ name="noisy", gen_kwargs={"filepaths": noisy_downloaded_files}
510
+ ),
511
+ ]
512
+
513
+ def _generate_examples(self, filepaths):
514
+ """This function returns the examples in the raw (text) form by iterating over the provided files."""
515
+ id_ = 0
516
+ for filepath in filepaths:
517
+ logger.info("generating examples from = %s", filepath)
518
+ with gzip.open(open(filepath, "rb"), "rt", encoding="utf-8") as f:
519
+ for line in f:
520
+ if line:
521
+ example = json.loads(line)
522
+ yield id_, example
523
+ id_ += 1
nohup.out ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ xz: vi_clean_0020.jsonl.xz: File already has `.xz' suffix, skipping
2
+ xz: vi_clean_0021.jsonl.xz: File already has `.xz' suffix, skipping
3
+ xz: vi_clean_0022.jsonl.xz: File already has `.xz' suffix, skipping
vi_clean_0000.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d82f03edb542b57501f64669e88dea418bb3d360bb58e8d3c62426714f5e1eec
3
+ size 1962366780
vi_clean_0001.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5847920cb0dbd7fda45703597d20270e3b61a0a2e1577bceb79a36b9ed2c4deb
3
+ size 1963780504
vi_clean_0002.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03e63215cdaa1d0e44e25dd6a63d550749c9c81ef4abd058b5f297a9f016eebf
3
+ size 1964157232
vi_clean_0003.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6bc59e3358b932dd00ebff7647c3ebf1000d9dfdb016307f69d1b7d630da63d
3
+ size 1959057316
vi_clean_0004.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e88ea68fdafcc06334f8c5406c0896f26dc90aca96bed0d355aceed5e095974b
3
+ size 1951077680
vi_clean_0005.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:645678ead40722d8905863306090a325dd52af9cac46b4e843360eeddde01121
3
+ size 1947465172
vi_clean_0006.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5984ca8232549cd3f229f472c6f0b35409a073dc05e7aa0c75ddaa7f3647630
3
+ size 1946409272
vi_clean_0007.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a165a3836788965cca3d49f5956c3b10460935f01fbf432d3dffe0fb5b17192
3
+ size 1942930952
vi_clean_0008.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49b898eccfbec2efdd7bcc07ee967ce79508a74385151fffdbe45b13c2e28b8e
3
+ size 1937141792
vi_clean_0009.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96bb75f00a0abb3bc846d64c630f5e46a7b2ed04e4cc8e5d23a74b001cebac79
3
+ size 1963985372
vi_clean_0010.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c40f97d94c501446e9be91472f71e90fb0fda6f83f6e3ac2479a60c1465fa272
3
+ size 1962404604
vi_clean_0011.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c7ccb5d804d16420966b746a579308d647bc6fc062b63fb656fa049649cbd74
3
+ size 1959840792
vi_clean_0012.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4371693cc5ad57c6e3a5d7e08f42a808622616617141924b70f742d525757a3c
3
+ size 1961422156
vi_clean_0013.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a548d97e80ca9782c17daca5895ceb1e125cdb866027d6f0690febce129dab2
3
+ size 1961219308
vi_clean_0014.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2681fa0dff09e1fc5c874e215ecfa31d26958b4a1a446d81597f1377fc50797a
3
+ size 1964591428
vi_clean_0015.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3ecdda03394145efa5b63b95b2d16f4a8a7a85b5aaadf1d0a4e616fd5c26261
3
+ size 1936685240
vi_clean_0016.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a82af7f482c3c5ab2ac92942a6afd3e4f13910535fd4aede2e4ea2585341d57
3
+ size 1961508696
vi_clean_0017.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72bcb264bb1a89349fc71873ee8999c7f1d2fa5f05a518e43c3dfec19c62aa01
3
+ size 1960878492
vi_clean_0018.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0df01363512aa81d628e3f4d4a3409f6f7e31debfcd61199ec3a4d116525e76
3
+ size 1964776772
vi_clean_0019.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40a52a3377ae0f8ac09621738a8457dfa79cb44b12a549f8e4f5bde4f7c9788c
3
+ size 1961366544
vi_clean_0020.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:546b6fc8b24fda548b07bda5303cbc8ccbd4d2f0e565c089bd290d1a15e8aaa3
3
+ size 1932317756
vi_clean_0021.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2586a094c6f5cae23beeaaa9b117bbb20c087d884fefff70b5eb89fe84c3d22
3
+ size 1934938276
vi_clean_0022.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63f1e545767761653f5970018f6c3370c1d2822de85e4b203419a68cf71ed0c0
3
+ size 1934900936
vi_clean_0023.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:911281505932a0a94c40f3b40b55b16912d6cb47ebd8768ebe53977079df1806
3
+ size 1962603492
vi_clean_0024.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00d00f04d844da945d364d9fa626335b495158b35e92e5c79d26ecb55fe774f6
3
+ size 1963158596
vi_clean_0025.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51a0f54bd056968c3eae0bbf2bd9d34d81e9b86a09686317e0832e45ab9fb0d3
3
+ size 1962935512
vi_clean_0026.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75405ec0ccc48693fd6352b8c250b5cc218405e9905d929235f8fdf5e693783e
3
+ size 1963489616
vi_clean_0027.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:448279da3e19073d5215638262f02528d80930c4604d18ae541e786b01d75127
3
+ size 1952433976
vi_clean_0028.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52b28d72981dd7934fe74d23c5b3265701f86fd363e9076d510893a8443c3ec1
3
+ size 1960783612
vi_clean_0029.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cce1ba763bcd4b0a90d56258187dc2bbb925d5290ce57b78843df7dd833d0a1c
3
+ size 1950481632
vi_clean_0030.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e463306574fee7adffbb405fe6a1405813c7b5ec66631e44b58a190b26fa2e6
3
+ size 1962549528
vi_clean_0031.jsonl.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a207845634e9e7571828bc5cba239b94c3fad785e92d0be056e9db91c394d0d4
3
+ size 1715767036