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
import glob
|
3 |
+
import datasets
|
4 |
+
|
5 |
+
class MyDatasetConfig(datasets.BuilderConfig):
|
6 |
+
def __init__(self, data_dir, data_url, **kwargs):
|
7 |
+
super(MyDatasetConfig, self).__init__(**kwargs)
|
8 |
+
self.data_dir = data_dir
|
9 |
+
self.data_url = data_url
|
10 |
+
|
11 |
+
class MyDataset(datasets.GeneratorBasedBuilder):
|
12 |
+
BUILDER_CONFIGS = [
|
13 |
+
MyDatasetConfig(
|
14 |
+
name="af",
|
15 |
+
description="af",
|
16 |
+
data_dir="data/af",
|
17 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/af/",
|
18 |
+
),
|
19 |
+
MyDatasetConfig(
|
20 |
+
name="ar",
|
21 |
+
description="ar",
|
22 |
+
data_dir="data/ar",
|
23 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ar/",
|
24 |
+
),
|
25 |
+
MyDatasetConfig(
|
26 |
+
name="as",
|
27 |
+
description="as",
|
28 |
+
data_dir="data/as",
|
29 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/as/",
|
30 |
+
),
|
31 |
+
MyDatasetConfig(
|
32 |
+
name="az",
|
33 |
+
description="az",
|
34 |
+
data_dir="data/az",
|
35 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/az/",
|
36 |
+
),
|
37 |
+
MyDatasetConfig(
|
38 |
+
name="be",
|
39 |
+
description="be",
|
40 |
+
data_dir="data/be",
|
41 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/be/",
|
42 |
+
),
|
43 |
+
MyDatasetConfig(
|
44 |
+
name="bg",
|
45 |
+
description="bg",
|
46 |
+
data_dir="data/bg",
|
47 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/bg/",
|
48 |
+
),
|
49 |
+
MyDatasetConfig(
|
50 |
+
name="bn",
|
51 |
+
description="bn",
|
52 |
+
data_dir="data/bn",
|
53 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/bn/",
|
54 |
+
),
|
55 |
+
MyDatasetConfig(
|
56 |
+
name="bn_rom",
|
57 |
+
description="bn_rom",
|
58 |
+
data_dir="data/bn_rom",
|
59 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/bn_rom/",
|
60 |
+
),
|
61 |
+
MyDatasetConfig(
|
62 |
+
name="br",
|
63 |
+
description="br",
|
64 |
+
data_dir="data/br",
|
65 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/br/",
|
66 |
+
),
|
67 |
+
MyDatasetConfig(
|
68 |
+
name="bs",
|
69 |
+
description="bs",
|
70 |
+
data_dir="data/bs",
|
71 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/bs/",
|
72 |
+
),
|
73 |
+
MyDatasetConfig(
|
74 |
+
name="ca",
|
75 |
+
description="ca",
|
76 |
+
data_dir="data/ca",
|
77 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ca/",
|
78 |
+
),
|
79 |
+
MyDatasetConfig(
|
80 |
+
name="cs",
|
81 |
+
description="cs",
|
82 |
+
data_dir="data/cs",
|
83 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/cs/",
|
84 |
+
),
|
85 |
+
MyDatasetConfig(
|
86 |
+
name="cy",
|
87 |
+
description="cy",
|
88 |
+
data_dir="data/cy",
|
89 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/cy/",
|
90 |
+
),
|
91 |
+
MyDatasetConfig(
|
92 |
+
name="da",
|
93 |
+
description="da",
|
94 |
+
data_dir="data/da",
|
95 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/da/",
|
96 |
+
),
|
97 |
+
MyDatasetConfig(
|
98 |
+
name="de",
|
99 |
+
description="de",
|
100 |
+
data_dir="data/de",
|
101 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/de/",
|
102 |
+
),
|
103 |
+
MyDatasetConfig(
|
104 |
+
name="el",
|
105 |
+
description="el",
|
106 |
+
data_dir="data/el",
|
107 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/el/",
|
108 |
+
),
|
109 |
+
MyDatasetConfig(
|
110 |
+
name="en",
|
111 |
+
description="en",
|
112 |
+
data_dir="data/en",
|
113 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/en/",
|
114 |
+
),
|
115 |
+
MyDatasetConfig(
|
116 |
+
name="eo",
|
117 |
+
description="eo",
|
118 |
+
data_dir="data/eo",
|
119 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/eo/",
|
120 |
+
),
|
121 |
+
MyDatasetConfig(
|
122 |
+
name="es",
|
123 |
+
description="es",
|
124 |
+
data_dir="data/es",
|
125 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/es/",
|
126 |
+
),
|
127 |
+
MyDatasetConfig(
|
128 |
+
name="et",
|
129 |
+
description="et",
|
130 |
+
data_dir="data/et",
|
131 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/et/",
|
132 |
+
),
|
133 |
+
MyDatasetConfig(
|
134 |
+
name="eu",
|
135 |
+
description="eu",
|
136 |
+
data_dir="data/eu",
|
137 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/eu/",
|
138 |
+
),
|
139 |
+
MyDatasetConfig(
|
140 |
+
name="fa",
|
141 |
+
description="fa",
|
142 |
+
data_dir="data/fa",
|
143 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/fa/",
|
144 |
+
),
|
145 |
+
MyDatasetConfig(
|
146 |
+
name="ff",
|
147 |
+
description="ff",
|
148 |
+
data_dir="data/ff",
|
149 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ff/",
|
150 |
+
),
|
151 |
+
MyDatasetConfig(
|
152 |
+
name="fi",
|
153 |
+
description="fi",
|
154 |
+
data_dir="data/fi",
|
155 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/fi/",
|
156 |
+
),
|
157 |
+
MyDatasetConfig(
|
158 |
+
name="fr",
|
159 |
+
description="fr",
|
160 |
+
data_dir="data/fr",
|
161 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/fr/",
|
162 |
+
),
|
163 |
+
MyDatasetConfig(
|
164 |
+
name="fy",
|
165 |
+
description="fy",
|
166 |
+
data_dir="data/fy",
|
167 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/fy/",
|
168 |
+
),
|
169 |
+
MyDatasetConfig(
|
170 |
+
name="ga",
|
171 |
+
description="ga",
|
172 |
+
data_dir="data/ga",
|
173 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ga/",
|
174 |
+
),
|
175 |
+
MyDatasetConfig(
|
176 |
+
name="gd",
|
177 |
+
description="gd",
|
178 |
+
data_dir="data/gd",
|
179 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/gd/",
|
180 |
+
),
|
181 |
+
MyDatasetConfig(
|
182 |
+
name="gl",
|
183 |
+
description="gl",
|
184 |
+
data_dir="data/gl",
|
185 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/gl/",
|
186 |
+
),
|
187 |
+
MyDatasetConfig(
|
188 |
+
name="gn",
|
189 |
+
description="gn",
|
190 |
+
data_dir="data/gn",
|
191 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/gn/",
|
192 |
+
),
|
193 |
+
MyDatasetConfig(
|
194 |
+
name="gu",
|
195 |
+
description="gu",
|
196 |
+
data_dir="data/gu",
|
197 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/gu/",
|
198 |
+
),
|
199 |
+
MyDatasetConfig(
|
200 |
+
name="ha",
|
201 |
+
description="ha",
|
202 |
+
data_dir="data/ha",
|
203 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ha/",
|
204 |
+
),
|
205 |
+
MyDatasetConfig(
|
206 |
+
name="he",
|
207 |
+
description="he",
|
208 |
+
data_dir="data/he",
|
209 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/he/",
|
210 |
+
),
|
211 |
+
MyDatasetConfig(
|
212 |
+
name="hi",
|
213 |
+
description="hi",
|
214 |
+
data_dir="data/hi",
|
215 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/hi/",
|
216 |
+
),
|
217 |
+
MyDatasetConfig(
|
218 |
+
name="hi_rom",
|
219 |
+
description="hi_rom",
|
220 |
+
data_dir="data/hi_rom",
|
221 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/hi_rom/",
|
222 |
+
),
|
223 |
+
MyDatasetConfig(
|
224 |
+
name="hr",
|
225 |
+
description="hr",
|
226 |
+
data_dir="data/hr",
|
227 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/hr/",
|
228 |
+
),
|
229 |
+
MyDatasetConfig(
|
230 |
+
name="ht",
|
231 |
+
description="ht",
|
232 |
+
data_dir="data/ht",
|
233 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ht/",
|
234 |
+
),
|
235 |
+
MyDatasetConfig(
|
236 |
+
name="hu",
|
237 |
+
description="hu",
|
238 |
+
data_dir="data/hu",
|
239 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/hu/",
|
240 |
+
),
|
241 |
+
MyDatasetConfig(
|
242 |
+
name="hy",
|
243 |
+
description="hy",
|
244 |
+
data_dir="data/hy",
|
245 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/hy/",
|
246 |
+
),
|
247 |
+
MyDatasetConfig(
|
248 |
+
name="id",
|
249 |
+
description="id",
|
250 |
+
data_dir="data/id",
|
251 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/id/",
|
252 |
+
),
|
253 |
+
MyDatasetConfig(
|
254 |
+
name="ig",
|
255 |
+
description="ig",
|
256 |
+
data_dir="data/ig",
|
257 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ig/",
|
258 |
+
),
|
259 |
+
MyDatasetConfig(
|
260 |
+
name="is",
|
261 |
+
description="is",
|
262 |
+
data_dir="data/is",
|
263 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/is/",
|
264 |
+
),
|
265 |
+
MyDatasetConfig(
|
266 |
+
name="it",
|
267 |
+
description="it",
|
268 |
+
data_dir="data/it",
|
269 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/it/",
|
270 |
+
),
|
271 |
+
MyDatasetConfig(
|
272 |
+
name="ja",
|
273 |
+
description="ja",
|
274 |
+
data_dir="data/ja",
|
275 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ja/",
|
276 |
+
),
|
277 |
+
MyDatasetConfig(
|
278 |
+
name="jv",
|
279 |
+
description="jv",
|
280 |
+
data_dir="data/jv",
|
281 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/jv/",
|
282 |
+
),
|
283 |
+
MyDatasetConfig(
|
284 |
+
name="ka",
|
285 |
+
description="ka",
|
286 |
+
data_dir="data/ka",
|
287 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ka/",
|
288 |
+
),
|
289 |
+
MyDatasetConfig(
|
290 |
+
name="kk",
|
291 |
+
description="kk",
|
292 |
+
data_dir="data/kk",
|
293 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/kk/",
|
294 |
+
),
|
295 |
+
MyDatasetConfig(
|
296 |
+
name="km",
|
297 |
+
description="km",
|
298 |
+
data_dir="data/km",
|
299 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/km/",
|
300 |
+
),
|
301 |
+
MyDatasetConfig(
|
302 |
+
name="kn",
|
303 |
+
description="kn",
|
304 |
+
data_dir="data/kn",
|
305 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/kn/",
|
306 |
+
),
|
307 |
+
MyDatasetConfig(
|
308 |
+
name="ko",
|
309 |
+
description="ko",
|
310 |
+
data_dir="data/ko",
|
311 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ko/",
|
312 |
+
),
|
313 |
+
MyDatasetConfig(
|
314 |
+
name="ku",
|
315 |
+
description="ku",
|
316 |
+
data_dir="data/ku",
|
317 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ku/",
|
318 |
+
),
|
319 |
+
MyDatasetConfig(
|
320 |
+
name="ky",
|
321 |
+
description="ky",
|
322 |
+
data_dir="data/ky",
|
323 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ky/",
|
324 |
+
),
|
325 |
+
MyDatasetConfig(
|
326 |
+
name="la",
|
327 |
+
description="la",
|
328 |
+
data_dir="data/la",
|
329 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/la/",
|
330 |
+
),
|
331 |
+
MyDatasetConfig(
|
332 |
+
name="lg",
|
333 |
+
description="lg",
|
334 |
+
data_dir="data/lg",
|
335 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/lg/",
|
336 |
+
),
|
337 |
+
MyDatasetConfig(
|
338 |
+
name="li",
|
339 |
+
description="li",
|
340 |
+
data_dir="data/li",
|
341 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/li/",
|
342 |
+
),
|
343 |
+
MyDatasetConfig(
|
344 |
+
name="ln",
|
345 |
+
description="ln",
|
346 |
+
data_dir="data/ln",
|
347 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ln/",
|
348 |
+
),
|
349 |
+
MyDatasetConfig(
|
350 |
+
name="lo",
|
351 |
+
description="lo",
|
352 |
+
data_dir="data/lo",
|
353 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/lo/",
|
354 |
+
),
|
355 |
+
MyDatasetConfig(
|
356 |
+
name="lt",
|
357 |
+
description="lt",
|
358 |
+
data_dir="data/lt",
|
359 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/lt/",
|
360 |
+
),
|
361 |
+
MyDatasetConfig(
|
362 |
+
name="lv",
|
363 |
+
description="lv",
|
364 |
+
data_dir="data/lv",
|
365 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/lv/",
|
366 |
+
),
|
367 |
+
MyDatasetConfig(
|
368 |
+
name="mg",
|
369 |
+
description="mg",
|
370 |
+
data_dir="data/mg",
|
371 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/mg/",
|
372 |
+
),
|
373 |
+
MyDatasetConfig(
|
374 |
+
name="mk",
|
375 |
+
description="mk",
|
376 |
+
data_dir="data/mk",
|
377 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/mk/",
|
378 |
+
),
|
379 |
+
MyDatasetConfig(
|
380 |
+
name="ml",
|
381 |
+
description="ml",
|
382 |
+
data_dir="data/ml",
|
383 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ml/",
|
384 |
+
),
|
385 |
+
MyDatasetConfig(
|
386 |
+
name="mn",
|
387 |
+
description="mn",
|
388 |
+
data_dir="data/mn",
|
389 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/mn/",
|
390 |
+
),
|
391 |
+
MyDatasetConfig(
|
392 |
+
name="mr",
|
393 |
+
description="mr",
|
394 |
+
data_dir="data/mr",
|
395 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/mr/",
|
396 |
+
),
|
397 |
+
MyDatasetConfig(
|
398 |
+
name="ms",
|
399 |
+
description="ms",
|
400 |
+
data_dir="data/ms",
|
401 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ms/",
|
402 |
+
),
|
403 |
+
MyDatasetConfig(
|
404 |
+
name="my",
|
405 |
+
description="my",
|
406 |
+
data_dir="data/my",
|
407 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/my/",
|
408 |
+
),
|
409 |
+
MyDatasetConfig(
|
410 |
+
name="my_zaw",
|
411 |
+
description="my_zaw",
|
412 |
+
data_dir="data/my_zaw",
|
413 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/my_zaw/",
|
414 |
+
),
|
415 |
+
MyDatasetConfig(
|
416 |
+
name="ne",
|
417 |
+
description="ne",
|
418 |
+
data_dir="data/ne",
|
419 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ne/",
|
420 |
+
),
|
421 |
+
MyDatasetConfig(
|
422 |
+
name="nl",
|
423 |
+
description="nl",
|
424 |
+
data_dir="data/nl",
|
425 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/nl/",
|
426 |
+
),
|
427 |
+
MyDatasetConfig(
|
428 |
+
name="no",
|
429 |
+
description="no",
|
430 |
+
data_dir="data/no",
|
431 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/no/",
|
432 |
+
),
|
433 |
+
MyDatasetConfig(
|
434 |
+
name="ns",
|
435 |
+
description="ns",
|
436 |
+
data_dir="data/ns",
|
437 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ns/",
|
438 |
+
),
|
439 |
+
MyDatasetConfig(
|
440 |
+
name="om",
|
441 |
+
description="om",
|
442 |
+
data_dir="data/om",
|
443 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/om/",
|
444 |
+
),
|
445 |
+
MyDatasetConfig(
|
446 |
+
name="or",
|
447 |
+
description="or",
|
448 |
+
data_dir="data/or",
|
449 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/or/",
|
450 |
+
),
|
451 |
+
MyDatasetConfig(
|
452 |
+
name="pa",
|
453 |
+
description="pa",
|
454 |
+
data_dir="data/pa",
|
455 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/pa/",
|
456 |
+
),
|
457 |
+
MyDatasetConfig(
|
458 |
+
name="pl",
|
459 |
+
description="pl",
|
460 |
+
data_dir="data/pl",
|
461 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/pl/",
|
462 |
+
),
|
463 |
+
MyDatasetConfig(
|
464 |
+
name="ps",
|
465 |
+
description="ps",
|
466 |
+
data_dir="data/ps",
|
467 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ps/",
|
468 |
+
),
|
469 |
+
MyDatasetConfig(
|
470 |
+
name="pt",
|
471 |
+
description="pt",
|
472 |
+
data_dir="data/pt",
|
473 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/pt/",
|
474 |
+
),
|
475 |
+
MyDatasetConfig(
|
476 |
+
name="qu",
|
477 |
+
description="qu",
|
478 |
+
data_dir="data/qu",
|
479 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/qu/",
|
480 |
+
),
|
481 |
+
MyDatasetConfig(
|
482 |
+
name="rm",
|
483 |
+
description="rm",
|
484 |
+
data_dir="data/rm",
|
485 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/rm/",
|
486 |
+
),
|
487 |
+
MyDatasetConfig(
|
488 |
+
name="ro",
|
489 |
+
description="ro",
|
490 |
+
data_dir="data/ro",
|
491 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ro/",
|
492 |
+
),
|
493 |
+
MyDatasetConfig(
|
494 |
+
name="ru",
|
495 |
+
description="ru",
|
496 |
+
data_dir="data/ru",
|
497 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ru/",
|
498 |
+
),
|
499 |
+
MyDatasetConfig(
|
500 |
+
name="sa",
|
501 |
+
description="sa",
|
502 |
+
data_dir="data/sa",
|
503 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/sa/",
|
504 |
+
),
|
505 |
+
MyDatasetConfig(
|
506 |
+
name="sc",
|
507 |
+
description="sc",
|
508 |
+
data_dir="data/sc",
|
509 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/sc/",
|
510 |
+
),
|
511 |
+
MyDatasetConfig(
|
512 |
+
name="sd",
|
513 |
+
description="sd",
|
514 |
+
data_dir="data/sd",
|
515 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/sd/",
|
516 |
+
),
|
517 |
+
MyDatasetConfig(
|
518 |
+
name="si",
|
519 |
+
description="si",
|
520 |
+
data_dir="data/si",
|
521 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/si/",
|
522 |
+
),
|
523 |
+
MyDatasetConfig(
|
524 |
+
name="sk",
|
525 |
+
description="sk",
|
526 |
+
data_dir="data/sk",
|
527 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/sk/",
|
528 |
+
),
|
529 |
+
MyDatasetConfig(
|
530 |
+
name="sl",
|
531 |
+
description="sl",
|
532 |
+
data_dir="data/sl",
|
533 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/sl/",
|
534 |
+
),
|
535 |
+
MyDatasetConfig(
|
536 |
+
name="so",
|
537 |
+
description="so",
|
538 |
+
data_dir="data/so",
|
539 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/so/",
|
540 |
+
),
|
541 |
+
MyDatasetConfig(
|
542 |
+
name="sq",
|
543 |
+
description="sq",
|
544 |
+
data_dir="data/sq",
|
545 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/sq/",
|
546 |
+
),
|
547 |
+
MyDatasetConfig(
|
548 |
+
name="sr",
|
549 |
+
description="sr",
|
550 |
+
data_dir="data/sr",
|
551 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/sr/",
|
552 |
+
),
|
553 |
+
MyDatasetConfig(
|
554 |
+
name="ss",
|
555 |
+
description="ss",
|
556 |
+
data_dir="data/ss",
|
557 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ss/",
|
558 |
+
),
|
559 |
+
MyDatasetConfig(
|
560 |
+
name="su",
|
561 |
+
description="su",
|
562 |
+
data_dir="data/su",
|
563 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/su/",
|
564 |
+
),
|
565 |
+
MyDatasetConfig(
|
566 |
+
name="sv",
|
567 |
+
description="sv",
|
568 |
+
data_dir="data/sv",
|
569 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/sv/",
|
570 |
+
),
|
571 |
+
MyDatasetConfig(
|
572 |
+
name="sw",
|
573 |
+
description="sw",
|
574 |
+
data_dir="data/sw",
|
575 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/sw/",
|
576 |
+
),
|
577 |
+
MyDatasetConfig(
|
578 |
+
name="ta",
|
579 |
+
description="ta",
|
580 |
+
data_dir="data/ta",
|
581 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ta/",
|
582 |
+
),
|
583 |
+
MyDatasetConfig(
|
584 |
+
name="ta_rom",
|
585 |
+
description="ta_rom",
|
586 |
+
data_dir="data/ta_rom",
|
587 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ta_rom/",
|
588 |
+
),
|
589 |
+
MyDatasetConfig(
|
590 |
+
name="te",
|
591 |
+
description="te",
|
592 |
+
data_dir="data/te",
|
593 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/te/",
|
594 |
+
),
|
595 |
+
MyDatasetConfig(
|
596 |
+
name="te_rom",
|
597 |
+
description="te_rom",
|
598 |
+
data_dir="data/te_rom",
|
599 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/te_rom/",
|
600 |
+
),
|
601 |
+
MyDatasetConfig(
|
602 |
+
name="th",
|
603 |
+
description="th",
|
604 |
+
data_dir="data/th",
|
605 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/th/",
|
606 |
+
),
|
607 |
+
MyDatasetConfig(
|
608 |
+
name="tl",
|
609 |
+
description="tl",
|
610 |
+
data_dir="data/tl",
|
611 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/tl/",
|
612 |
+
),
|
613 |
+
MyDatasetConfig(
|
614 |
+
name="tn",
|
615 |
+
description="tn",
|
616 |
+
data_dir="data/tn",
|
617 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/tn/",
|
618 |
+
),
|
619 |
+
MyDatasetConfig(
|
620 |
+
name="tr",
|
621 |
+
description="tr",
|
622 |
+
data_dir="data/tr",
|
623 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/tr/",
|
624 |
+
),
|
625 |
+
MyDatasetConfig(
|
626 |
+
name="ug",
|
627 |
+
description="ug",
|
628 |
+
data_dir="data/ug",
|
629 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ug/",
|
630 |
+
),
|
631 |
+
MyDatasetConfig(
|
632 |
+
name="uk",
|
633 |
+
description="uk",
|
634 |
+
data_dir="data/uk",
|
635 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/uk/",
|
636 |
+
),
|
637 |
+
MyDatasetConfig(
|
638 |
+
name="ur",
|
639 |
+
description="ur",
|
640 |
+
data_dir="data/ur",
|
641 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ur/",
|
642 |
+
),
|
643 |
+
MyDatasetConfig(
|
644 |
+
name="ur_rom",
|
645 |
+
description="ur_rom",
|
646 |
+
data_dir="data/ur_rom",
|
647 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/ur_rom/",
|
648 |
+
),
|
649 |
+
MyDatasetConfig(
|
650 |
+
name="uz",
|
651 |
+
description="uz",
|
652 |
+
data_dir="data/uz",
|
653 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/uz/",
|
654 |
+
),
|
655 |
+
MyDatasetConfig(
|
656 |
+
name="vi",
|
657 |
+
description="vi",
|
658 |
+
data_dir="data/vi",
|
659 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/vi/",
|
660 |
+
),
|
661 |
+
MyDatasetConfig(
|
662 |
+
name="wo",
|
663 |
+
description="wo",
|
664 |
+
data_dir="data/wo",
|
665 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/wo/",
|
666 |
+
),
|
667 |
+
MyDatasetConfig(
|
668 |
+
name="xh",
|
669 |
+
description="xh",
|
670 |
+
data_dir="data/xh",
|
671 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/xh/",
|
672 |
+
),
|
673 |
+
MyDatasetConfig(
|
674 |
+
name="yi",
|
675 |
+
description="yi",
|
676 |
+
data_dir="data/yi",
|
677 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/yi/",
|
678 |
+
),
|
679 |
+
MyDatasetConfig(
|
680 |
+
name="yo",
|
681 |
+
description="yo",
|
682 |
+
data_dir="data/yo",
|
683 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/yo/",
|
684 |
+
),
|
685 |
+
MyDatasetConfig(
|
686 |
+
name="zh-Hans",
|
687 |
+
description="zh-Hans",
|
688 |
+
data_dir="data/zh-Hans",
|
689 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/zh-Hans/",
|
690 |
+
),
|
691 |
+
MyDatasetConfig(
|
692 |
+
name="zh-Hant",
|
693 |
+
description="zh-Hant",
|
694 |
+
data_dir="data/zh-Hant",
|
695 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/zh-Hant/",
|
696 |
+
),
|
697 |
+
MyDatasetConfig(
|
698 |
+
name="zu",
|
699 |
+
description="zu",
|
700 |
+
data_dir="data/zu",
|
701 |
+
data_url="https://huggingface.co/datasets/bowphs/cc-100-01-percent/data/zu/",
|
702 |
+
)
|
703 |
+
|
704 |
+
]
|
705 |
+
|
706 |
+
|
707 |
+
DEFAULT_CONFIG_NAME = "en"
|
708 |
+
|
709 |
+
def _info(self):
|
710 |
+
return datasets.DatasetInfo(
|
711 |
+
features=datasets.Features({
|
712 |
+
"text": datasets.Value("string"),
|
713 |
+
}),
|
714 |
+
supervised_keys=None,
|
715 |
+
)
|
716 |
+
|
717 |
+
def _split_generators(self, dl_manager):
|
718 |
+
train_url = "train.txt"
|
719 |
+
test_url = "test.txt"
|
720 |
+
|
721 |
+
train_path = dl_manager.download(os.path.join(self.config.data_dir, train_url))
|
722 |
+
test_path = dl_manager.download(os.path.join(self.config.data_dir, test_url))
|
723 |
+
|
724 |
+
return [
|
725 |
+
datasets.SplitGenerator(
|
726 |
+
name=datasets.Split.TRAIN,
|
727 |
+
gen_kwargs={"filepath": train_path},
|
728 |
+
),
|
729 |
+
datasets.SplitGenerator(
|
730 |
+
name=datasets.Split.TEST,
|
731 |
+
gen_kwargs={"filepath": test_path},
|
732 |
+
),
|
733 |
+
]
|
734 |
+
|
735 |
+
def _generate_examples(self, filepath):
|
736 |
+
with open(filepath, encoding="utf-8") as f:
|
737 |
+
for id_, line in enumerate(f):
|
738 |
+
yield id_, {"text": line.strip()}
|