albertvillanova HF staff commited on
Commit
2e41d36
1 Parent(s): 05042a5

Update Wikipedia metadata (#3958)

Browse files

* Update Wikipedia metadata JSON

* Update Wikipedia dataset card

Commit from https://github.com/huggingface/datasets/commit/6adfeceded470b354e605c4504d227fc6ea069ca

Files changed (3) hide show
  1. README.md +380 -351
  2. dataset_infos.json +1 -1
  3. wikipedia.py +576 -21
README.md CHANGED
@@ -22,611 +22,610 @@ size_categories:
22
  - 10K<n<100K
23
  - 100K<n<1M
24
  - 1M<n<10M
25
- - 10M<n<100M
26
  languages:
27
- 20200501-aa:
28
  - aa
29
- 20200501-ab:
30
  - ab
31
- 20200501-ace:
32
  - ace
33
- 20200501-ady:
34
  - unknown
35
- 20200501-af:
36
  - af
37
- 20200501-ak:
38
  - ak
39
- 20200501-als:
40
  - als
41
- 20200501-am:
42
  - am
43
- 20200501-an:
44
  - an
45
- 20200501-ang:
46
  - ang
47
- 20200501-ar:
48
  - ar
49
- 20200501-arc:
50
  - arc
51
- 20200501-arz:
52
  - arz
53
- 20200501-as:
54
  - as
55
- 20200501-ast:
56
  - ast
57
- 20200501-atj:
58
  - atj
59
- 20200501-av:
60
  - av
61
- 20200501-ay:
62
  - ay
63
- 20200501-az:
64
  - az
65
- 20200501-azb:
66
  - azb
67
- 20200501-ba:
68
  - ba
69
- 20200501-bar:
70
  - bar
71
- 20200501-bat-smg:
72
  - sgs
73
- 20200501-bcl:
74
  - bcl
75
- 20200501-be:
76
  - be
77
- 20200501-be-x-old:
78
  - unknown
79
- 20200501-bg:
80
  - bg
81
- 20200501-bh:
82
  - bh
83
- 20200501-bi:
84
  - bi
85
- 20200501-bjn:
86
  - bjn
87
- 20200501-bm:
88
  - bm
89
- 20200501-bn:
90
  - bn
91
- 20200501-bo:
92
  - bo
93
- 20200501-bpy:
94
  - bpy
95
- 20200501-br:
96
  - br
97
- 20200501-bs:
98
  - bs
99
- 20200501-bug:
100
  - bug
101
- 20200501-bxr:
102
  - bxr
103
- 20200501-ca:
104
  - ca
105
- 20200501-cbk-zam:
106
  - cbk
107
- 20200501-cdo:
108
  - cdo
109
- 20200501-ce:
110
  - ce
111
- 20200501-ceb:
112
  - ceb
113
- 20200501-ch:
114
  - ch
115
- 20200501-cho:
116
  - cho
117
- 20200501-chr:
118
  - chr
119
- 20200501-chy:
120
  - chy
121
- 20200501-ckb:
122
  - ckb
123
- 20200501-co:
124
  - co
125
- 20200501-cr:
126
  - cr
127
- 20200501-crh:
128
  - crh
129
- 20200501-cs:
130
  - cs
131
- 20200501-csb:
132
  - csb
133
- 20200501-cu:
134
  - cu
135
- 20200501-cv:
136
  - cv
137
- 20200501-cy:
138
  - cy
139
- 20200501-da:
140
  - da
141
- 20200501-de:
142
  - de
143
- 20200501-din:
144
  - din
145
- 20200501-diq:
146
  - diq
147
- 20200501-dsb:
148
  - dsb
149
- 20200501-dty:
150
  - dty
151
- 20200501-dv:
152
  - dv
153
- 20200501-dz:
154
  - dz
155
- 20200501-ee:
156
  - ee
157
- 20200501-el:
158
  - el
159
- 20200501-eml:
160
  - eml
161
- 20200501-en:
162
  - en
163
- 20200501-eo:
164
  - eo
165
- 20200501-es:
166
  - es
167
- 20200501-et:
168
  - et
169
- 20200501-eu:
170
  - eu
171
- 20200501-ext:
172
  - ext
173
- 20200501-fa:
174
  - fa
175
- 20200501-ff:
176
  - ff
177
- 20200501-fi:
178
  - fi
179
- 20200501-fiu-vro:
180
  - vro
181
- 20200501-fj:
182
  - fj
183
- 20200501-fo:
184
  - fo
185
- 20200501-fr:
186
  - fr
187
- 20200501-frp:
188
  - frp
189
- 20200501-frr:
190
  - frr
191
- 20200501-fur:
192
  - fur
193
- 20200501-fy:
194
  - fy
195
- 20200501-ga:
196
  - ga
197
- 20200501-gag:
198
  - gag
199
- 20200501-gan:
200
  - gan
201
- 20200501-gd:
202
  - gd
203
- 20200501-gl:
204
  - gl
205
- 20200501-glk:
206
  - glk
207
- 20200501-gn:
208
  - gn
209
- 20200501-gom:
210
  - gom
211
- 20200501-gor:
212
  - gor
213
- 20200501-got:
214
  - got
215
- 20200501-gu:
216
  - gu
217
- 20200501-gv:
218
  - gv
219
- 20200501-ha:
220
  - ha
221
- 20200501-hak:
222
  - hak
223
- 20200501-haw:
224
  - haw
225
- 20200501-he:
226
  - he
227
- 20200501-hi:
228
  - hi
229
- 20200501-hif:
230
  - hif
231
- 20200501-ho:
232
  - ho
233
- 20200501-hr:
234
  - hr
235
- 20200501-hsb:
236
  - hsb
237
- 20200501-ht:
238
  - ht
239
- 20200501-hu:
240
  - hu
241
- 20200501-hy:
242
  - hy
243
- 20200501-ia:
244
  - ia
245
- 20200501-id:
246
  - id
247
- 20200501-ie:
248
  - ie
249
- 20200501-ig:
250
  - ig
251
- 20200501-ii:
252
  - ii
253
- 20200501-ik:
254
  - ik
255
- 20200501-ilo:
256
  - ilo
257
- 20200501-inh:
258
  - inh
259
- 20200501-io:
260
  - io
261
- 20200501-is:
262
  - is
263
- 20200501-it:
264
  - it
265
- 20200501-iu:
266
  - iu
267
- 20200501-ja:
268
  - ja
269
- 20200501-jam:
270
  - jam
271
- 20200501-jbo:
272
  - jbo
273
- 20200501-jv:
274
  - jv
275
- 20200501-ka:
276
  - ka
277
- 20200501-kaa:
278
  - kaa
279
- 20200501-kab:
280
  - kab
281
- 20200501-kbd:
282
  - kbd
283
- 20200501-kbp:
284
  - kbp
285
- 20200501-kg:
286
  - kg
287
- 20200501-ki:
288
  - ki
289
- 20200501-kj:
290
  - kj
291
- 20200501-kk:
292
  - kk
293
- 20200501-kl:
294
  - kl
295
- 20200501-km:
296
  - km
297
- 20200501-kn:
298
  - kn
299
- 20200501-ko:
300
  - ko
301
- 20200501-koi:
302
  - koi
303
- 20200501-krc:
304
  - krc
305
- 20200501-ks:
306
  - ks
307
- 20200501-ksh:
308
  - ksh
309
- 20200501-ku:
310
  - ku
311
- 20200501-kv:
312
  - kv
313
- 20200501-kw:
314
  - kw
315
- 20200501-ky:
316
  - ky
317
- 20200501-la:
318
  - la
319
- 20200501-lad:
320
  - lad
321
- 20200501-lb:
322
  - lb
323
- 20200501-lbe:
324
  - lbe
325
- 20200501-lez:
326
  - lez
327
- 20200501-lfn:
328
  - lfn
329
- 20200501-lg:
330
  - lg
331
- 20200501-li:
332
  - li
333
- 20200501-lij:
334
  - lij
335
- 20200501-lmo:
336
  - lmo
337
- 20200501-ln:
338
  - ln
339
- 20200501-lo:
340
  - lo
341
- 20200501-lrc:
342
  - lrc
343
- 20200501-lt:
344
  - lt
345
- 20200501-ltg:
346
  - ltg
347
- 20200501-lv:
348
  - lv
349
- 20200501-mai:
350
  - mai
351
- 20200501-map-bms:
352
  - unknown
353
- 20200501-mdf:
354
  - mdf
355
- 20200501-mg:
356
  - mg
357
- 20200501-mh:
358
  - mh
359
- 20200501-mhr:
360
  - mhr
361
- 20200501-mi:
362
  - mi
363
- 20200501-min:
364
  - min
365
- 20200501-mk:
366
  - mk
367
- 20200501-ml:
368
  - ml
369
- 20200501-mn:
370
  - mn
371
- 20200501-mr:
372
  - mr
373
- 20200501-mrj:
374
  - mrj
375
- 20200501-ms:
376
  - ms
377
- 20200501-mt:
378
  - mt
379
- 20200501-mus:
380
  - mus
381
- 20200501-mwl:
382
  - mwl
383
- 20200501-my:
384
  - my
385
- 20200501-myv:
386
  - myv
387
- 20200501-mzn:
388
  - mzn
389
- 20200501-na:
390
  - na
391
- 20200501-nah:
392
  - nah
393
- 20200501-nap:
394
  - nap
395
- 20200501-nds:
396
  - nds
397
- 20200501-nds-nl:
398
  - nds-nl
399
- 20200501-ne:
400
  - ne
401
- 20200501-new:
402
  - new
403
- 20200501-ng:
404
  - ng
405
- 20200501-nl:
406
  - nl
407
- 20200501-nn:
408
  - nn
409
- 20200501-no:
410
  - "no"
411
- 20200501-nov:
412
  - nov
413
- 20200501-nrm:
414
  - nrf
415
- 20200501-nso:
416
  - nso
417
- 20200501-nv:
418
  - nv
419
- 20200501-ny:
420
  - ny
421
- 20200501-oc:
422
  - oc
423
- 20200501-olo:
424
  - olo
425
- 20200501-om:
426
  - om
427
- 20200501-or:
428
  - or
429
- 20200501-os:
430
  - os
431
- 20200501-pa:
432
  - pa
433
- 20200501-pag:
434
  - pag
435
- 20200501-pam:
436
  - pam
437
- 20200501-pap:
438
  - pap
439
- 20200501-pcd:
440
  - pcd
441
- 20200501-pdc:
442
  - pdc
443
- 20200501-pfl:
444
  - pfl
445
- 20200501-pi:
446
  - pi
447
- 20200501-pih:
448
  - pih
449
- 20200501-pl:
450
  - pl
451
- 20200501-pms:
452
  - pms
453
- 20200501-pnb:
454
  - pnb
455
- 20200501-pnt:
456
  - pnt
457
- 20200501-ps:
458
  - ps
459
- 20200501-pt:
460
  - pt
461
- 20200501-qu:
462
  - qu
463
- 20200501-rm:
464
  - rm
465
- 20200501-rmy:
466
  - rmy
467
- 20200501-rn:
468
  - rn
469
- 20200501-ro:
470
  - ro
471
- 20200501-roa-rup:
472
  - rup
473
- 20200501-roa-tara:
474
  - unknown
475
- 20200501-ru:
476
  - ru
477
- 20200501-rue:
478
  - rue
479
- 20200501-rw:
480
  - rw
481
- 20200501-sa:
482
  - sa
483
- 20200501-sah:
484
  - sah
485
- 20200501-sat:
486
  - sat
487
- 20200501-sc:
488
  - sc
489
- 20200501-scn:
490
  - scn
491
- 20200501-sco:
492
  - sco
493
- 20200501-sd:
494
  - sd
495
- 20200501-se:
496
  - se
497
- 20200501-sg:
498
  - sg
499
- 20200501-sh:
500
  - sh
501
- 20200501-si:
502
  - si
503
- 20200501-simple:
504
  - simple
505
- 20200501-sk:
506
  - sk
507
- 20200501-sl:
508
  - sl
509
- 20200501-sm:
510
  - sm
511
- 20200501-sn:
512
  - sn
513
- 20200501-so:
514
  - so
515
- 20200501-sq:
516
  - sq
517
- 20200501-sr:
518
  - sr
519
- 20200501-srn:
520
  - srn
521
- 20200501-ss:
522
  - ss
523
- 20200501-st:
524
  - st
525
- 20200501-stq:
526
  - stq
527
- 20200501-su:
528
  - su
529
- 20200501-sv:
530
  - sv
531
- 20200501-sw:
532
  - sw
533
- 20200501-szl:
534
  - szl
535
- 20200501-ta:
536
  - ta
537
- 20200501-tcy:
538
  - tcy
539
- 20200501-te:
540
  - te
541
- 20200501-tet:
542
  - tdt
543
- 20200501-tg:
544
  - tg
545
- 20200501-th:
546
  - th
547
- 20200501-ti:
548
  - ti
549
- 20200501-tk:
550
  - tk
551
- 20200501-tl:
552
  - tl
553
- 20200501-tn:
554
  - tn
555
- 20200501-to:
556
  - to
557
- 20200501-tpi:
558
  - tpi
559
- 20200501-tr:
560
  - tr
561
- 20200501-ts:
562
  - ts
563
- 20200501-tt:
564
  - tt
565
- 20200501-tum:
566
  - tum
567
- 20200501-tw:
568
  - tw
569
- 20200501-ty:
570
  - ty
571
- 20200501-tyv:
572
  - tyv
573
- 20200501-udm:
574
  - udm
575
- 20200501-ug:
576
  - ug
577
- 20200501-uk:
578
  - uk
579
- 20200501-ur:
580
  - ur
581
- 20200501-uz:
582
  - uz
583
- 20200501-ve:
584
  - ve
585
- 20200501-vec:
586
  - vec
587
- 20200501-vep:
588
  - vep
589
- 20200501-vi:
590
  - vi
591
- 20200501-vls:
592
  - vls
593
- 20200501-vo:
594
  - vo
595
- 20200501-wa:
596
  - wa
597
- 20200501-war:
598
  - war
599
- 20200501-wo:
600
  - wo
601
- 20200501-wuu:
602
  - wuu
603
- 20200501-xal:
604
  - xal
605
- 20200501-xh:
606
  - xh
607
- 20200501-xmf:
608
  - xmf
609
- 20200501-yi:
610
  - yi
611
- 20200501-yo:
612
  - yo
613
- 20200501-za:
614
  - za
615
- 20200501-zea:
616
  - zea
617
- 20200501-zh:
618
  - zh
619
- 20200501-zh-classical:
620
  - lzh
621
- 20200501-zh-min-nan:
622
  - nan
623
- 20200501-zh-yue:
624
  - yue
625
- 20200501-zu:
626
  - zu
627
  ---
628
 
629
- # Dataset Card for "wikipedia"
630
 
631
  ## Table of Contents
632
  - [Dataset Description](#dataset-description)
@@ -658,9 +657,6 @@ languages:
658
  - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
659
  - **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
660
  - **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
661
- - **Size of downloaded dataset files:** 30739.25 MB
662
- - **Size of the generated dataset:** 35376.35 MB
663
- - **Total amount of disk used:** 66115.60 MB
664
 
665
  ### Dataset Summary
666
 
@@ -678,23 +674,41 @@ To load this dataset you need to install Apache Beam and ``mwparserfromhell`` fi
678
  pip install apache_beam mwparserfromhell
679
  ```
680
 
681
- Then can load any subset of Wikipedia per language and per date this way:
682
 
683
  ```python
684
  from datasets import load_dataset
685
 
686
- load_dataset("wikipedia", language="sw", date="20220120")
687
  ```
 
 
 
688
 
689
  You can find the full list of languages and dates [here](https://dumps.wikimedia.org/backup-index.html).
690
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
691
  ### Supported Tasks and Leaderboards
692
 
693
  The dataset is generally used for Language Modeling.
694
 
695
  ### Languages
696
 
697
- You can find the list of languages [here](https://en.wikipedia.org/wiki/List_of_Wikipedias).
698
 
699
  ## Dataset Structure
700
 
@@ -702,67 +716,75 @@ We show detailed information for up to 5 configurations of the dataset.
702
 
703
  ### Data Instances
704
 
705
- Some subsets of Wikipedia have already been processed by Hugging face, as you can see below:
706
-
707
- #### 20200501.en
708
-
709
- - **Size of downloaded dataset files:** 17396.28 MB
710
- - **Size of the generated dataset:** 17481.07 MB
711
- - **Total amount of disk used:** 34877.35 MB
712
 
713
- An example looks as follows.
714
  ```
715
- {
716
- 'title': 'Yangliuqing',
717
- 'text': 'Yangliuqing () is a market town in Xiqing District, in the western suburbs of Tianjin,
718
- ...
719
- and traditional period furnishings and crafts.\n\nSee also \n\nList of township-level divisions of Tianjin\n\nReferences \n\n
720
- http://arts.cultural-china.com/en/65Arts4795.html\n\nCategory:Towns in Tianjin'
721
  }
722
  ```
723
 
724
- #### 20200501.de
725
 
726
- - **Size of downloaded dataset files:** 5531.82 MB
727
- - **Size of the generated dataset:** 7716.79 MB
728
- - **Total amount of disk used:** 13248.61 MB
729
 
730
- #### 20200501.fr
 
 
731
 
732
- - **Size of downloaded dataset files:** 4653.55 MB
733
- - **Size of the generated dataset:** 6182.24 MB
734
- - **Total amount of disk used:** 10835.79 MB
735
 
736
- #### 20200501.frr
 
 
737
 
738
- - **Size of downloaded dataset files:** 9.05 MB
739
- - **Size of the generated dataset:** 5.88 MB
740
- - **Total amount of disk used:** 14.93 MB
741
 
742
- #### 20200501.it
 
 
743
 
744
- - **Size of downloaded dataset files:** 2970.57 MB
745
- - **Size of the generated dataset:** 3809.89 MB
746
- - **Total amount of disk used:** 6780.46 MB
 
 
 
 
 
 
 
 
 
 
 
 
 
 
747
 
748
  ### Data Fields
749
 
750
- The data fields are the same among all splits and configurations:
751
 
752
- - `title`: a `string` feature corresponding to the title of the article
753
- - `text`: a `string` feature corresponding to the text content of the article
 
 
754
 
755
  ### Data Splits
756
 
757
- Here are the sizes for several configurations:
758
 
759
- | name | train |
760
- |------------|------:|
761
- |20200501.de |3140341|
762
- |20200501.en |6078422|
763
- |20200501.fr |2210508|
764
- |20200501.frr| 11803|
765
- |20200501.it |1931197|
 
766
 
767
  ## Dataset Creation
768
 
@@ -816,12 +838,19 @@ Here are the sizes for several configurations:
816
 
817
  ### Licensing Information
818
 
819
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
820
 
821
  ### Citation Information
822
 
823
  ```
824
- @ONLINE {wikidump,
825
  author = "Wikimedia Foundation",
826
  title = "Wikimedia Downloads",
827
  url = "https://dumps.wikimedia.org"
 
22
  - 10K<n<100K
23
  - 100K<n<1M
24
  - 1M<n<10M
 
25
  languages:
26
+ 20220301-aa:
27
  - aa
28
+ 20220301-ab:
29
  - ab
30
+ 20220301-ace:
31
  - ace
32
+ 20220301-ady:
33
  - unknown
34
+ 20220301-af:
35
  - af
36
+ 20220301-ak:
37
  - ak
38
+ 20220301-als:
39
  - als
40
+ 20220301-am:
41
  - am
42
+ 20220301-an:
43
  - an
44
+ 20220301-ang:
45
  - ang
46
+ 20220301-ar:
47
  - ar
48
+ 20220301-arc:
49
  - arc
50
+ 20220301-arz:
51
  - arz
52
+ 20220301-as:
53
  - as
54
+ 20220301-ast:
55
  - ast
56
+ 20220301-atj:
57
  - atj
58
+ 20220301-av:
59
  - av
60
+ 20220301-ay:
61
  - ay
62
+ 20220301-az:
63
  - az
64
+ 20220301-azb:
65
  - azb
66
+ 20220301-ba:
67
  - ba
68
+ 20220301-bar:
69
  - bar
70
+ 20220301-bat-smg:
71
  - sgs
72
+ 20220301-bcl:
73
  - bcl
74
+ 20220301-be:
75
  - be
76
+ 20220301-be-x-old:
77
  - unknown
78
+ 20220301-bg:
79
  - bg
80
+ 20220301-bh:
81
  - bh
82
+ 20220301-bi:
83
  - bi
84
+ 20220301-bjn:
85
  - bjn
86
+ 20220301-bm:
87
  - bm
88
+ 20220301-bn:
89
  - bn
90
+ 20220301-bo:
91
  - bo
92
+ 20220301-bpy:
93
  - bpy
94
+ 20220301-br:
95
  - br
96
+ 20220301-bs:
97
  - bs
98
+ 20220301-bug:
99
  - bug
100
+ 20220301-bxr:
101
  - bxr
102
+ 20220301-ca:
103
  - ca
104
+ 20220301-cbk-zam:
105
  - cbk
106
+ 20220301-cdo:
107
  - cdo
108
+ 20220301-ce:
109
  - ce
110
+ 20220301-ceb:
111
  - ceb
112
+ 20220301-ch:
113
  - ch
114
+ 20220301-cho:
115
  - cho
116
+ 20220301-chr:
117
  - chr
118
+ 20220301-chy:
119
  - chy
120
+ 20220301-ckb:
121
  - ckb
122
+ 20220301-co:
123
  - co
124
+ 20220301-cr:
125
  - cr
126
+ 20220301-crh:
127
  - crh
128
+ 20220301-cs:
129
  - cs
130
+ 20220301-csb:
131
  - csb
132
+ 20220301-cu:
133
  - cu
134
+ 20220301-cv:
135
  - cv
136
+ 20220301-cy:
137
  - cy
138
+ 20220301-da:
139
  - da
140
+ 20220301-de:
141
  - de
142
+ 20220301-din:
143
  - din
144
+ 20220301-diq:
145
  - diq
146
+ 20220301-dsb:
147
  - dsb
148
+ 20220301-dty:
149
  - dty
150
+ 20220301-dv:
151
  - dv
152
+ 20220301-dz:
153
  - dz
154
+ 20220301-ee:
155
  - ee
156
+ 20220301-el:
157
  - el
158
+ 20220301-eml:
159
  - eml
160
+ 20220301-en:
161
  - en
162
+ 20220301-eo:
163
  - eo
164
+ 20220301-es:
165
  - es
166
+ 20220301-et:
167
  - et
168
+ 20220301-eu:
169
  - eu
170
+ 20220301-ext:
171
  - ext
172
+ 20220301-fa:
173
  - fa
174
+ 20220301-ff:
175
  - ff
176
+ 20220301-fi:
177
  - fi
178
+ 20220301-fiu-vro:
179
  - vro
180
+ 20220301-fj:
181
  - fj
182
+ 20220301-fo:
183
  - fo
184
+ 20220301-fr:
185
  - fr
186
+ 20220301-frp:
187
  - frp
188
+ 20220301-frr:
189
  - frr
190
+ 20220301-fur:
191
  - fur
192
+ 20220301-fy:
193
  - fy
194
+ 20220301-ga:
195
  - ga
196
+ 20220301-gag:
197
  - gag
198
+ 20220301-gan:
199
  - gan
200
+ 20220301-gd:
201
  - gd
202
+ 20220301-gl:
203
  - gl
204
+ 20220301-glk:
205
  - glk
206
+ 20220301-gn:
207
  - gn
208
+ 20220301-gom:
209
  - gom
210
+ 20220301-gor:
211
  - gor
212
+ 20220301-got:
213
  - got
214
+ 20220301-gu:
215
  - gu
216
+ 20220301-gv:
217
  - gv
218
+ 20220301-ha:
219
  - ha
220
+ 20220301-hak:
221
  - hak
222
+ 20220301-haw:
223
  - haw
224
+ 20220301-he:
225
  - he
226
+ 20220301-hi:
227
  - hi
228
+ 20220301-hif:
229
  - hif
230
+ 20220301-ho:
231
  - ho
232
+ 20220301-hr:
233
  - hr
234
+ 20220301-hsb:
235
  - hsb
236
+ 20220301-ht:
237
  - ht
238
+ 20220301-hu:
239
  - hu
240
+ 20220301-hy:
241
  - hy
242
+ 20220301-ia:
243
  - ia
244
+ 20220301-id:
245
  - id
246
+ 20220301-ie:
247
  - ie
248
+ 20220301-ig:
249
  - ig
250
+ 20220301-ii:
251
  - ii
252
+ 20220301-ik:
253
  - ik
254
+ 20220301-ilo:
255
  - ilo
256
+ 20220301-inh:
257
  - inh
258
+ 20220301-io:
259
  - io
260
+ 20220301-is:
261
  - is
262
+ 20220301-it:
263
  - it
264
+ 20220301-iu:
265
  - iu
266
+ 20220301-ja:
267
  - ja
268
+ 20220301-jam:
269
  - jam
270
+ 20220301-jbo:
271
  - jbo
272
+ 20220301-jv:
273
  - jv
274
+ 20220301-ka:
275
  - ka
276
+ 20220301-kaa:
277
  - kaa
278
+ 20220301-kab:
279
  - kab
280
+ 20220301-kbd:
281
  - kbd
282
+ 20220301-kbp:
283
  - kbp
284
+ 20220301-kg:
285
  - kg
286
+ 20220301-ki:
287
  - ki
288
+ 20220301-kj:
289
  - kj
290
+ 20220301-kk:
291
  - kk
292
+ 20220301-kl:
293
  - kl
294
+ 20220301-km:
295
  - km
296
+ 20220301-kn:
297
  - kn
298
+ 20220301-ko:
299
  - ko
300
+ 20220301-koi:
301
  - koi
302
+ 20220301-krc:
303
  - krc
304
+ 20220301-ks:
305
  - ks
306
+ 20220301-ksh:
307
  - ksh
308
+ 20220301-ku:
309
  - ku
310
+ 20220301-kv:
311
  - kv
312
+ 20220301-kw:
313
  - kw
314
+ 20220301-ky:
315
  - ky
316
+ 20220301-la:
317
  - la
318
+ 20220301-lad:
319
  - lad
320
+ 20220301-lb:
321
  - lb
322
+ 20220301-lbe:
323
  - lbe
324
+ 20220301-lez:
325
  - lez
326
+ 20220301-lfn:
327
  - lfn
328
+ 20220301-lg:
329
  - lg
330
+ 20220301-li:
331
  - li
332
+ 20220301-lij:
333
  - lij
334
+ 20220301-lmo:
335
  - lmo
336
+ 20220301-ln:
337
  - ln
338
+ 20220301-lo:
339
  - lo
340
+ 20220301-lrc:
341
  - lrc
342
+ 20220301-lt:
343
  - lt
344
+ 20220301-ltg:
345
  - ltg
346
+ 20220301-lv:
347
  - lv
348
+ 20220301-mai:
349
  - mai
350
+ 20220301-map-bms:
351
  - unknown
352
+ 20220301-mdf:
353
  - mdf
354
+ 20220301-mg:
355
  - mg
356
+ 20220301-mh:
357
  - mh
358
+ 20220301-mhr:
359
  - mhr
360
+ 20220301-mi:
361
  - mi
362
+ 20220301-min:
363
  - min
364
+ 20220301-mk:
365
  - mk
366
+ 20220301-ml:
367
  - ml
368
+ 20220301-mn:
369
  - mn
370
+ 20220301-mr:
371
  - mr
372
+ 20220301-mrj:
373
  - mrj
374
+ 20220301-ms:
375
  - ms
376
+ 20220301-mt:
377
  - mt
378
+ 20220301-mus:
379
  - mus
380
+ 20220301-mwl:
381
  - mwl
382
+ 20220301-my:
383
  - my
384
+ 20220301-myv:
385
  - myv
386
+ 20220301-mzn:
387
  - mzn
388
+ 20220301-na:
389
  - na
390
+ 20220301-nah:
391
  - nah
392
+ 20220301-nap:
393
  - nap
394
+ 20220301-nds:
395
  - nds
396
+ 20220301-nds-nl:
397
  - nds-nl
398
+ 20220301-ne:
399
  - ne
400
+ 20220301-new:
401
  - new
402
+ 20220301-ng:
403
  - ng
404
+ 20220301-nl:
405
  - nl
406
+ 20220301-nn:
407
  - nn
408
+ 20220301-no:
409
  - "no"
410
+ 20220301-nov:
411
  - nov
412
+ 20220301-nrm:
413
  - nrf
414
+ 20220301-nso:
415
  - nso
416
+ 20220301-nv:
417
  - nv
418
+ 20220301-ny:
419
  - ny
420
+ 20220301-oc:
421
  - oc
422
+ 20220301-olo:
423
  - olo
424
+ 20220301-om:
425
  - om
426
+ 20220301-or:
427
  - or
428
+ 20220301-os:
429
  - os
430
+ 20220301-pa:
431
  - pa
432
+ 20220301-pag:
433
  - pag
434
+ 20220301-pam:
435
  - pam
436
+ 20220301-pap:
437
  - pap
438
+ 20220301-pcd:
439
  - pcd
440
+ 20220301-pdc:
441
  - pdc
442
+ 20220301-pfl:
443
  - pfl
444
+ 20220301-pi:
445
  - pi
446
+ 20220301-pih:
447
  - pih
448
+ 20220301-pl:
449
  - pl
450
+ 20220301-pms:
451
  - pms
452
+ 20220301-pnb:
453
  - pnb
454
+ 20220301-pnt:
455
  - pnt
456
+ 20220301-ps:
457
  - ps
458
+ 20220301-pt:
459
  - pt
460
+ 20220301-qu:
461
  - qu
462
+ 20220301-rm:
463
  - rm
464
+ 20220301-rmy:
465
  - rmy
466
+ 20220301-rn:
467
  - rn
468
+ 20220301-ro:
469
  - ro
470
+ 20220301-roa-rup:
471
  - rup
472
+ 20220301-roa-tara:
473
  - unknown
474
+ 20220301-ru:
475
  - ru
476
+ 20220301-rue:
477
  - rue
478
+ 20220301-rw:
479
  - rw
480
+ 20220301-sa:
481
  - sa
482
+ 20220301-sah:
483
  - sah
484
+ 20220301-sat:
485
  - sat
486
+ 20220301-sc:
487
  - sc
488
+ 20220301-scn:
489
  - scn
490
+ 20220301-sco:
491
  - sco
492
+ 20220301-sd:
493
  - sd
494
+ 20220301-se:
495
  - se
496
+ 20220301-sg:
497
  - sg
498
+ 20220301-sh:
499
  - sh
500
+ 20220301-si:
501
  - si
502
+ 20220301-simple:
503
  - simple
504
+ 20220301-sk:
505
  - sk
506
+ 20220301-sl:
507
  - sl
508
+ 20220301-sm:
509
  - sm
510
+ 20220301-sn:
511
  - sn
512
+ 20220301-so:
513
  - so
514
+ 20220301-sq:
515
  - sq
516
+ 20220301-sr:
517
  - sr
518
+ 20220301-srn:
519
  - srn
520
+ 20220301-ss:
521
  - ss
522
+ 20220301-st:
523
  - st
524
+ 20220301-stq:
525
  - stq
526
+ 20220301-su:
527
  - su
528
+ 20220301-sv:
529
  - sv
530
+ 20220301-sw:
531
  - sw
532
+ 20220301-szl:
533
  - szl
534
+ 20220301-ta:
535
  - ta
536
+ 20220301-tcy:
537
  - tcy
538
+ 20220301-te:
539
  - te
540
+ 20220301-tet:
541
  - tdt
542
+ 20220301-tg:
543
  - tg
544
+ 20220301-th:
545
  - th
546
+ 20220301-ti:
547
  - ti
548
+ 20220301-tk:
549
  - tk
550
+ 20220301-tl:
551
  - tl
552
+ 20220301-tn:
553
  - tn
554
+ 20220301-to:
555
  - to
556
+ 20220301-tpi:
557
  - tpi
558
+ 20220301-tr:
559
  - tr
560
+ 20220301-ts:
561
  - ts
562
+ 20220301-tt:
563
  - tt
564
+ 20220301-tum:
565
  - tum
566
+ 20220301-tw:
567
  - tw
568
+ 20220301-ty:
569
  - ty
570
+ 20220301-tyv:
571
  - tyv
572
+ 20220301-udm:
573
  - udm
574
+ 20220301-ug:
575
  - ug
576
+ 20220301-uk:
577
  - uk
578
+ 20220301-ur:
579
  - ur
580
+ 20220301-uz:
581
  - uz
582
+ 20220301-ve:
583
  - ve
584
+ 20220301-vec:
585
  - vec
586
+ 20220301-vep:
587
  - vep
588
+ 20220301-vi:
589
  - vi
590
+ 20220301-vls:
591
  - vls
592
+ 20220301-vo:
593
  - vo
594
+ 20220301-wa:
595
  - wa
596
+ 20220301-war:
597
  - war
598
+ 20220301-wo:
599
  - wo
600
+ 20220301-wuu:
601
  - wuu
602
+ 20220301-xal:
603
  - xal
604
+ 20220301-xh:
605
  - xh
606
+ 20220301-xmf:
607
  - xmf
608
+ 20220301-yi:
609
  - yi
610
+ 20220301-yo:
611
  - yo
612
+ 20220301-za:
613
  - za
614
+ 20220301-zea:
615
  - zea
616
+ 20220301-zh:
617
  - zh
618
+ 20220301-zh-classical:
619
  - lzh
620
+ 20220301-zh-min-nan:
621
  - nan
622
+ 20220301-zh-yue:
623
  - yue
624
+ 20220301-zu:
625
  - zu
626
  ---
627
 
628
+ # Dataset Card for Wikipedia
629
 
630
  ## Table of Contents
631
  - [Dataset Description](#dataset-description)
 
657
  - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
658
  - **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
659
  - **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
660
 
661
  ### Dataset Summary
662
 
 
674
  pip install apache_beam mwparserfromhell
675
  ```
676
 
677
+ Then, you can load any subset of Wikipedia per language and per date this way:
678
 
679
  ```python
680
  from datasets import load_dataset
681
 
682
+ load_dataset("wikipedia", language="sw", date="20220120", beam_runner=...)
683
  ```
684
+ where you can pass as `beam_runner` any Apache Beam supported runner for (distributed) data processing
685
+ (see [here](https://beam.apache.org/documentation/runners/capability-matrix/)).
686
+ Pass "DirectRunner" to run it on your machine.
687
 
688
  You can find the full list of languages and dates [here](https://dumps.wikimedia.org/backup-index.html).
689
 
690
+ Some subsets of Wikipedia have already been processed by HuggingFace, and you can load them just with:
691
+ ```python
692
+ from datasets import load_dataset
693
+
694
+ load_dataset("wikipedia", "20220301.en")
695
+ ```
696
+
697
+ The list of pre-processed subsets is:
698
+ - "20220301.de"
699
+ - "20220301.en"
700
+ - "20220301.fr"
701
+ - "20220301.frr"
702
+ - "20220301.it"
703
+ - "20220301.simple"
704
+
705
  ### Supported Tasks and Leaderboards
706
 
707
  The dataset is generally used for Language Modeling.
708
 
709
  ### Languages
710
 
711
+ You can find the list of languages [here](https://meta.wikimedia.org/wiki/List_of_Wikipedias).
712
 
713
  ## Dataset Structure
714
 
 
716
 
717
  ### Data Instances
718
 
719
+ An example looks as follows:
 
 
 
 
 
 
720
 
 
721
  ```
722
+ {'id': '1',
723
+ 'url': 'https://simple.wikipedia.org/wiki/April',
724
+ 'title': 'April',
725
+ 'text': 'April is the fourth month...'
 
 
726
  }
727
  ```
728
 
729
+ Some subsets of Wikipedia have already been processed by HuggingFace, as you can see below:
730
 
731
+ #### 20220301.de
 
 
732
 
733
+ - **Size of downloaded dataset files:** 6523.22 MB
734
+ - **Size of the generated dataset:** 8905.28 MB
735
+ - **Total amount of disk used:** 15428.50 MB
736
 
737
+ #### 20220301.en
 
 
738
 
739
+ - **Size of downloaded dataset files:** 20598.31 MB
740
+ - **Size of the generated dataset:** 20275.52 MB
741
+ - **Total amount of disk used:** 40873.83 MB
742
 
743
+ #### 20220301.fr
 
 
744
 
745
+ - **Size of downloaded dataset files:** 5602.57 MB
746
+ - **Size of the generated dataset:** 7375.92 MB
747
+ - **Total amount of disk used:** 12978.49 MB
748
 
749
+ #### 20220301.frr
750
+
751
+ - **Size of downloaded dataset files:** 12.44 MB
752
+ - **Size of the generated dataset:** 9.13 MB
753
+ - **Total amount of disk used:** 21.57 MB
754
+
755
+ #### 20220301.it
756
+
757
+ - **Size of downloaded dataset files:** 3516.44 MB
758
+ - **Size of the generated dataset:** 4539.94 MB
759
+ - **Total amount of disk used:** 8056.39 MB
760
+
761
+ #### 20220301.simple
762
+
763
+ - **Size of downloaded dataset files:** 239.68 MB
764
+ - **Size of the generated dataset:** 235.07 MB
765
+ - **Total amount of disk used:** 474.76 MB
766
 
767
  ### Data Fields
768
 
769
+ The data fields are the same among all configurations:
770
 
771
+ - `id` (`str`): ID of the article.
772
+ - `url` (`str`): URL of the article.
773
+ - `title` (`str`): Title of the article.
774
+ - `text` (`str`): Text content of the article.
775
 
776
  ### Data Splits
777
 
778
+ Here are the number of examples for several configurations:
779
 
780
+ | name | train |
781
+ |-----------------|--------:|
782
+ | 20220301.de | 2665357 |
783
+ | 20220301.en | 6458670 |
784
+ | 20220301.fr | 2402095 |
785
+ | 20220301.frr | 15199 |
786
+ | 20220301.it | 1743035 |
787
+ | 20220301.simple | 205328 |
788
 
789
  ## Dataset Creation
790
 
 
838
 
839
  ### Licensing Information
840
 
841
+ Most of Wikipedia's text and many of its images are co-licensed under the
842
+ [Creative Commons Attribution-ShareAlike 3.0 Unported License](https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License)
843
+ (CC BY-SA) and the [GNU Free Documentation License](https://en.wikipedia.org/wiki/Wikipedia:Text_of_the_GNU_Free_Documentation_License)
844
+ (GFDL) (unversioned, with no invariant sections, front-cover texts, or back-cover texts).
845
+
846
+ Some text has been imported only under CC BY-SA and CC BY-SA-compatible license and cannot be reused under GFDL; such
847
+ text will be identified on the page footer, in the page history, or on the discussion page of the article that utilizes
848
+ the text.
849
 
850
  ### Citation Information
851
 
852
  ```
853
+ @ONLINE{wikidump,
854
  author = "Wikimedia Foundation",
855
  title = "Wikimedia Downloads",
856
  url = "https://dumps.wikimedia.org"
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"20200501.en": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = \"Wikimedia Foundation\",\n title = \"Wikimedia Downloads\",\n url = \"https://dumps.wikimedia.org\"\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikipedia", "config_name": "20200501.en", "version": {"version_str": "1.0.0", "description": "", "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 18330235071, "num_examples": 6078422, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/enwiki/20200501/dumpstatus.json": {"num_bytes": 478807, "checksum": "f046ece6e80477d7c063b1dd2e436031d0ee05d77bd39bf3f1921c35b9b67a1f"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream13.xml-p5040437p6197594.bz2": {"num_bytes": 432157889, "checksum": "0b8e24785dbe6ff1ab8ac3392fec59e0c6da1fa4f2b955a32a3997c5bf09da24"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream12.xml-p3926862p5040436.bz2": {"num_bytes": 437003811, "checksum": "6267a8b2bc1d1a2a211fc6e8e66586bfd36d0c68c6b56e3fae4baa4efb58e7cb"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p45663462p47163461.bz2": {"num_bytes": 267729794, "checksum": "268fb79e7756f878a3c36e5009c84299199f8b92f2f354dbec315d863473d73f"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream18.xml-p13693074p15193073.bz2": {"num_bytes": 383206414, "checksum": "b8a5bc4a563efde13a89fdb708937498530f1eac572455da4f0b6b24d4bd99f1"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream7.xml-p892913p1268691.bz2": {"num_bytes": 353877982, "checksum": "f327e612df1d0c8b8a74a8e4562beed3e0cd4d094e7e5fada3c2629ae302db2e"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream6.xml-p565314p892912.bz2": {"num_bytes": 346420373, "checksum": "39d7483882c749ba35f35506ee9bd5c01d3eeb41a82c8268a110cddc4c94c891"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream8.xml-p1268692p1791079.bz2": {"num_bytes": 388878496, "checksum": "a4a205d28d3758f2644a6b3ab703a95a4b83c617ca66f8a6ad4f9d079a549002"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p50163462p51663461.bz2": {"num_bytes": 346912679, "checksum": "74d324ceee9115cb56eb50d78cdc7658ae92ca5a85448f7adb80a5847f4a2b00"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream24.xml-p32003451p33503450.bz2": {"num_bytes": 384546851, "checksum": "c5d90e90fa953cb4e841236646fd7f618ec9ec978434383ecb0d5e02bf550091"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream19.xml-p16120543p17620542.bz2": {"num_bytes": 326372095, "checksum": "aeed86966254cd3e602be89b575562676e9c00af45b4909df0c8de37602b104e"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream23.xml-p29823661p30503450.bz2": {"num_bytes": 143250867, "checksum": "20e2f3fd4eb71f3f9eb7e36094161377d83fb570bd234a2dc8c2473867d6b040"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream17.xml-p13039267p13693073.bz2": {"num_bytes": 168301491, "checksum": "78b03a4872decc575fc74993791dd99ebde0ca0e835fae4a5eafb15fc43f1fe0"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream4.xml-p200510p352689.bz2": {"num_bytes": 291451630, "checksum": "b39b87c3dc70633cdbd475d00dfc7b0b7935e4b36595c843ee7d35ef8a44097c"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream26.xml-p42567203p42663461.bz2": {"num_bytes": 23550236, "checksum": "95d01bb3c7660106fa7e3f7339a24659f79b6a86dd5ba8fd3d2c2670cd39f064"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p62163462p63663461.bz2": {"num_bytes": 390671803, "checksum": "f716b5fd2b7ad03e02d186f06a4db644f1e4f7459735775f25ba0f225a458d03"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream26.xml-p41067203p42567202.bz2": {"num_bytes": 372757744, "checksum": "9951a45ec9426154c86618507ad9a7f27f5e7771a0ffbb02a3af5249a75c6c54"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream22.xml-p23927984p25427983.bz2": {"num_bytes": 390836826, "checksum": "b1b4199d24752dbd7fdbc04c04aafc75f58ddd062839996a531a1307352e7db2"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p54663462p56163461.bz2": {"num_bytes": 314984115, "checksum": "f3cb80bdd4d708a832c1e89e8c48b027e2ca0cafc1fb164db570ac1af94db619"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream20.xml-p18754736p20254735.bz2": {"num_bytes": 353524645, "checksum": "0adb9d1c753653bca91c451849978ca016c379f70d4e8a8fce3adac54e2be351"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream9.xml-p1791080p2336422.bz2": {"num_bytes": 378488615, "checksum": "e45d3e2d38ded431fd789a19c0bf061158b56256d0f1e9cdad13109341e0a70e"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream25.xml-p35452816p36952815.bz2": {"num_bytes": 371615916, "checksum": "a5a0395e9ba9727c33ab1db36f94afd19bd70244f8a1b1ec2facfad4fba74a30"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream14.xml-p6197595p7697594.bz2": {"num_bytes": 437927656, "checksum": "ba66e13a36dc000c7335789746448cc85c9b699d622f1e708d046e3b345848fa"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream17.xml-p11539267p13039266.bz2": {"num_bytes": 410595682, "checksum": "a9d93a0d4458564c061e19e639fc87ce9557e69eb9204067b76f926eacec9591"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream24.xml-p33503451p33952815.bz2": {"num_bytes": 108197798, "checksum": "e5097876890c2fc382c4e25ce17dd6d52c0ab16128ef49e3f62bd7d9f5bcefdc"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p59163462p60663461.bz2": {"num_bytes": 326281765, "checksum": "3c794a85727d9d01ad4968f9ea86964ab506a8420ef1bc670c4ef6f38c406a38"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p47163462p48663461.bz2": {"num_bytes": 334137722, "checksum": "7759f0096abdd3c63c42bb9088f70eef4a2d79c7dc6db3132815cb1c157b55c4"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p51663462p53163461.bz2": {"num_bytes": 325256423, "checksum": "9c6fe9e6ce445a16a8d7d1568ad7e9364aa5f930e1950bb60c221d7420ed7d2b"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream14.xml-p7697595p7744800.bz2": {"num_bytes": 12803584, "checksum": "5cced6a20f17fe0a7e0025f6cf68680d9c62135f989c81ebd2df00c7b7f696a0"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p60663462p62163461.bz2": {"num_bytes": 346963638, "checksum": "60643f523f0358c0c54b256eb0f5729524a0ba2c434225323cdd98998c4980bd"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p56163462p57663461.bz2": {"num_bytes": 357290829, "checksum": "b6000c8db723d9953a9ab5620be1991bd6e62072d0f231fa1f44e6953d442415"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream22.xml-p25427984p26823660.bz2": {"num_bytes": 337962180, "checksum": "17061886cc9ced88fe90123859957c9784ae932d13f07f40047e41cb518485b7"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream25.xml-p33952816p35452815.bz2": {"num_bytes": 345406966, "checksum": "4c0f63d0eade96fa957477e807a95e3aa7288d3fff597bbfb3dda86193ddb61b"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p42663462p44163461.bz2": {"num_bytes": 376912048, "checksum": "29d4b2fc5fd15aa7ddb0a6f677b48e4eb1ddf8f047918501006a9a2cbcabf068"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream5.xml-p352690p565313.bz2": {"num_bytes": 319348574, "checksum": "57002ded46a15cf795a6ccecd1553fe79deb1a95585e95b589c22f1953227dd9"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream19.xml-p17620543p18754735.bz2": {"num_bytes": 264976948, "checksum": "6207ab0d0b5e9ed0c0e396723043c90b9c4cfa918dc2b50dbcfc34e1108342ee"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream23.xml-p26823661p28323660.bz2": {"num_bytes": 366885989, "checksum": "e73bcac9202f8e8fdd97b9766bbcbdedeb60c860deda63b41670ee370c57d826"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream10.xml-p2336423p3046512.bz2": {"num_bytes": 398910177, "checksum": "e20304b090d9a41da70a33799ec06a5344f8fe08dc30392b11eaa13e33c59cf8"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p57663462p59163461.bz2": {"num_bytes": 331691753, "checksum": "1ba2f8a762e6b28a8f805652fa595e69b5e20d70265394a7e59750efda4f2d24"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream23.xml-p28323661p29823660.bz2": {"num_bytes": 318835981, "checksum": "814e884b3d87e7b8c57c9840b69d9a98b589c972b4bb3351620bd9b767e08ecc"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream26.xml-p38067203p39567202.bz2": {"num_bytes": 374965429, "checksum": "fbb73166eaf5c8ef88baa7c1d6577ad232e5c6658e15804332eb74ac90b9ad41"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream26.xml-p39567203p41067202.bz2": {"num_bytes": 366325481, "checksum": "7a99125a43281489b29b728c0daab7fb73d2031616c5a4b3a2193aaf5e500a01"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream15.xml-p9244801p9518048.bz2": {"num_bytes": 68534882, "checksum": "a09422636e5271fd0a05d796be298c07ebed6fdef77c63f395726a5c63cbb4ba"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream21.xml-p22722157p23927983.bz2": {"num_bytes": 323714388, "checksum": "badef857bb043433267bc96b6c97decbf100d419272cd8199771be5a19f33a8e"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p48663462p50163461.bz2": {"num_bytes": 320585303, "checksum": "3dd1ab0634976d4683a085dc8e979ae88d25c78b92bca0ac37d46382b2348a5b"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream25.xml-p36952816p38067202.bz2": {"num_bytes": 262941763, "checksum": "cf5d33a872e70ff102171565546ec75f0ebf12a0b4fc185d3eb15bd0a18bb3d1"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream11.xml-p3046513p3926861.bz2": {"num_bytes": 420893917, "checksum": "6f8d2061c4a3f956e21ca259e5b882f1787b09c0964cac98f1d6892fa4d9eeac"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream16.xml-p9518049p11018048.bz2": {"num_bytes": 340863364, "checksum": "d495e5a1edafc817b1cacd733fae19ac1c228387535df99427f24405418f47ed"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p63663462p63833989.bz2": {"num_bytes": 39689667, "checksum": "905a94841f45903adad4ca4fd8df7f136b02b5c2ac4c2dd6da8e0d97856c1ae7"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream3.xml-p88445p200509.bz2": {"num_bytes": 286257431, "checksum": "6d86fc63984e1717029ab5b90e27c3374b16326234bc085a2743ca0b12a05430"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream24.xml-p30503451p32003450.bz2": {"num_bytes": 403564528, "checksum": "a2b76400d4fbed82437b1f5f94a618824533ff795be934688bd1172dcd55d213"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream2.xml-p30304p88444.bz2": {"num_bytes": 221557438, "checksum": "8496afb6b437b4426d1aa9744eb9c3c45e2d672c499a33bdddb592806297ee0e"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream1.xml-p1p30303.bz2": {"num_bytes": 186241262, "checksum": "07419f309994db13575869f3dd0ce1c18d6a46bd41933f50504a7583c4c84c19"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p44163462p45663461.bz2": {"num_bytes": 333033392, "checksum": "c9cf58069982f0760492cbfc1aff758764122fc70ec0431d9620eaa5a678acf3"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream15.xml-p7744801p9244800.bz2": {"num_bytes": 413095403, "checksum": "e127ca4371262a554e6118496e3ace1cc366bc4c57eff426cc998419772a10a6"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream16.xml-p11018049p11539266.bz2": {"num_bytes": 130729249, "checksum": "ca5d899b2041e2ad940d36e6d23edefc79c682d5e1760d4e0cf75940f9da74ee"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream20.xml-p20254736p21222156.bz2": {"num_bytes": 226580160, "checksum": "6e4dc1d5fa340bdfa62fe06c9b4f35816904a41e660fcea2b031147bf304b628"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream18.xml-p15193074p16120542.bz2": {"num_bytes": 215782188, "checksum": "646c01afe93bc1cbefe397ec9b3df281665d533d3e0f6a6a7cb964a039c738d9"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream27.xml-p53163462p54663461.bz2": {"num_bytes": 350761215, "checksum": "0faa7af015dd867fc8c79819aa265b58decd992a23e211a429a793f12f3e4457"}, "https://dumps.wikimedia.org/enwiki/20200501/enwiki-20200501-pages-articles-multistream21.xml-p21222157p22722156.bz2": {"num_bytes": 367798357, "checksum": "d8761b57ad7a3aac115d7ae608b8e10f0f1b76418340afc58b1bdcec2e0a2669"}}, "download_size": 18241319609, "dataset_size": 18330235071, "size_in_bytes": 36571554680}, "20200501.fr": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = \"Wikimedia Foundation\",\n title = \"Wikimedia Downloads\",\n url = \"https://dumps.wikimedia.org\"\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikipedia", "config_name": "20200501.fr", "version": {"version_str": "1.0.0", "description": "", "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6482545638, "num_examples": 2210508, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/frwiki/20200501/dumpstatus.json": {"num_bytes": 99176, "checksum": "5d84244b65522df8716de523e16d3f72b384656b73410c0bd4801b00677387c8"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream6.xml-p8994129p10494128.bz2": {"num_bytes": 393133190, "checksum": "27fd49730b4a5fef166b84f1711037d3a829e5961e4f3945935d34ca46ec47c3"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream3.xml-p927546p2427545.bz2": {"num_bytes": 591357746, "checksum": "fda45ab766b507a1e28cc23a6e3fe25c44117d82ea5c89ecdb669c50c37d2d45"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream5.xml-p6092356p7494128.bz2": {"num_bytes": 454006861, "checksum": "6ef325bca0fd4ce9bb2f34216a923cf0be89c4e557b366cd873d84e809141372"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream3.xml-p2427546p2516881.bz2": {"num_bytes": 28169559, "checksum": "3cc6fcca4429e3d259d1f22b4127def489c7cafcd2552a9a4610bcc184723cdc"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream6.xml-p11994129p13301475.bz2": {"num_bytes": 363949982, "checksum": "7fed0c6263fe1818f1393bd317b51bf9f8ddb354f231969fbd98acdab2df27a2"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream4.xml-p4016882p4592355.bz2": {"num_bytes": 196679589, "checksum": "7d525e351ef4f17ed3311594b44730cc0b6f8a007aa5b812013353fb264725ab"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream2.xml-p275788p927545.bz2": {"num_bytes": 549288514, "checksum": "6c930cd89769506ac633474c23fcd947328de111d5143140e4ee419054838001"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream6.xml-p10494129p11994128.bz2": {"num_bytes": 389622504, "checksum": "978275442fce8746aec57050749d27eee8a141f3d169c5e1260e88d0daf1108d"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream4.xml-p2516882p4016881.bz2": {"num_bytes": 528931899, "checksum": "977fbe8792b6dc2fbb75fb255f8c4468c126afefd54ceec084271b4a8ef8bcde"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream5.xml-p4592356p6092355.bz2": {"num_bytes": 542749895, "checksum": "38089ddb2eb7d54cba1240a97940a962ff56705f6844d75e71229979037185d7"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream6.xml-p7494129p8994128.bz2": {"num_bytes": 341534465, "checksum": "25a8c87a1aab04a9578c74d391ec8d09a678d65cacd2e64d089a507bb1a46c21"}, "https://dumps.wikimedia.org/frwiki/20200501/frwiki-20200501-pages-articles-multistream1.xml-p1p275787.bz2": {"num_bytes": 500077878, "checksum": "ae1326aa0d690e388b05ab4a40eb2cdf8c07b1ee398baffecfaa5163d7181e2f"}}, "download_size": 4879601258, "dataset_size": 6482545638, "size_in_bytes": 11362146896}, "20200501.frr": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = \"Wikimedia Foundation\",\n title = \"Wikimedia Downloads\",\n url = \"https://dumps.wikimedia.org\"\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikipedia", "config_name": "20200501.frr", "version": {"version_str": "1.0.0", "description": "", "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6165872, "num_examples": 11803, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/frrwiki/20200501/dumpstatus.json": {"num_bytes": 11002, "checksum": "3135da62aecdd6e396f2e8e534df31094a8ef876eacdb8a8764d241fc9c94b4a"}, "https://dumps.wikimedia.org/frrwiki/20200501/frrwiki-20200501-pages-articles-multistream.xml.bz2": {"num_bytes": 9476441, "checksum": "909fe94f9158fb32f288cb7bc5c7964ed050f5b60a260b0b238b89b41dbad91a"}}, "download_size": 9487443, "dataset_size": 6165872, "size_in_bytes": 15653315}, "20200501.simple": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = \"Wikimedia Foundation\",\n title = \"Wikimedia Downloads\",\n url = \"https://dumps.wikimedia.org\"\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikipedia", "config_name": "20200501.simple", "version": {"version_str": "1.0.0", "description": "", "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 189249480, "num_examples": 160949, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/simplewiki/20200501/dumpstatus.json": {"num_bytes": 11377, "checksum": "8920939251d1c9683fb8e26a8665c601a1354acb77be9335771ffa07a9fa3553"}, "https://dumps.wikimedia.org/simplewiki/20200501/simplewiki-20200501-pages-articles-multistream.xml.bz2": {"num_bytes": 186623764, "checksum": "6a55fa921827ff348a72e5dc98cf1c9c8aff26c8fbace6b64b8fc78dd36e5e83"}}, "download_size": 186635141, "dataset_size": 189249480, "size_in_bytes": 375884621}, "20200501.de": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = \"Wikimedia Foundation\",\n title = \"Wikimedia Downloads\",\n url = \"https://dumps.wikimedia.org\"\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikipedia", "config_name": "20200501.de", "version": {"version_str": "1.0.0", "description": "", "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 8091641736, "num_examples": 3140341, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/dewiki/20200501/dumpstatus.json": {"num_bytes": 113987, "checksum": "c971e73f0a4d6db3b4aeae0877f99e31b47819c8c56ea7e75c4fb62823c11048"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream2.xml-p262469p1095940.bz2": {"num_bytes": 611894545, "checksum": "7e9dcb8f133cf6d2b466ae587056dd3717aa7adfaf55f9b5b521f9f69141464f"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream1.xml-p1p262468.bz2": {"num_bytes": 475164655, "checksum": "0454ad62f74702c4324980feb97dc977c067fa51e00282c08208e076ede322ed"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream3.xml-p2595941p2920048.bz2": {"num_bytes": 130288483, "checksum": "7a62a7447a29b948fb2daac89d796f37553fabc8bf428df06eae583df9ef21ea"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream6.xml-p9842169p11277643.bz2": {"num_bytes": 799352580, "checksum": "cfd790f1f815f333f763940178cd43d1577f78e9836a6dd0f8ddf269bc07e9a3"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream5.xml-p5466276p6966275.bz2": {"num_bytes": 692216358, "checksum": "5a629ed9acef7c4b851e5a93fb68c74b223bbfc680c5f0d59daf65e9f0b86300"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream4.xml-p2920049p4420048.bz2": {"num_bytes": 609402951, "checksum": "47b9108dab34898f15f379f2b0c72c4434d21c349cb1b7a59a975cf6eee665a4"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream3.xml-p1095941p2595940.bz2": {"num_bytes": 647318033, "checksum": "229164fcef03f5c71f2234dcf9b438e9025c006429c54c1d7188dbc48efa5eac"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream4.xml-p4420049p5466275.bz2": {"num_bytes": 411951344, "checksum": "30fd55c28c8acc1ed82d4c40a990d500ccd3f3033d8de4eaa0fbff2b69789a52"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream5.xml-p6966276p8342168.bz2": {"num_bytes": 686465414, "checksum": "cb8791decc5a48865899aa8b4443eac4d3bc332d204d7d59c465d3820da40600"}, "https://dumps.wikimedia.org/dewiki/20200501/dewiki-20200501-pages-articles-multistream6.xml-p8342169p9842168.bz2": {"num_bytes": 736362001, "checksum": "5cfcbac138591069f01a640d394b249ea387f51480d70567e1e758cddff1524f"}}, "download_size": 5800530351, "dataset_size": 8091641736, "size_in_bytes": 13892172087}, "20200501.it": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = \"Wikimedia Foundation\",\n title = \"Wikimedia Downloads\",\n url = \"https://dumps.wikimedia.org\"\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikipedia", "config_name": "20200501.it", "version": {"version_str": "1.0.0", "description": "", "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3994955896, "num_examples": 1931197, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/itwiki/20200501/dumpstatus.json": {"num_bytes": 67472, "checksum": "680b4afc31634172f43f5e2c563fce21f1793b734c0ca93deaef7e68171003f1"}, "https://dumps.wikimedia.org/itwiki/20200501/itwiki-20200501-pages-articles-multistream3.xml-p1057873p1959895.bz2": {"num_bytes": 424589476, "checksum": "a572bf5651bb97cc0f80b473241b9c201555e1ac6ffbcbe723b6ffb89c64d1e6"}, "https://dumps.wikimedia.org/itwiki/20200501/itwiki-20200501-pages-articles-multistream6.xml-p8013199p8444835.bz2": {"num_bytes": 128220446, "checksum": "a574b0019157d8a37034bb6746c11bf596071294bac756c4589883c912885f80"}, "https://dumps.wikimedia.org/itwiki/20200501/itwiki-20200501-pages-articles-multistream1.xml-p1p277091.bz2": {"num_bytes": 261171943, "checksum": "4c800cbdd646c66acabe2108097db6e2821ad72a51048b21d0d73660d0c40fdb"}, "https://dumps.wikimedia.org/itwiki/20200501/itwiki-20200501-pages-articles-multistream2.xml-p277092p1057872.bz2": {"num_bytes": 364658191, "checksum": "dc8efb9edd8e42e0d663c0ab1a7799b3b4eb6542f3436eae6f92dcacd31ff07d"}, "https://dumps.wikimedia.org/itwiki/20200501/itwiki-20200501-pages-articles-multistream5.xml-p4647943p5013198.bz2": {"num_bytes": 138073550, "checksum": "ad587cb921a8d384c1f20a03cfb2d20f4db78dca9ffbb712f2b5a99d6fa48ae0"}, "https://dumps.wikimedia.org/itwiki/20200501/itwiki-20200501-pages-articles-multistream6.xml-p5013199p6513198.bz2": {"num_bytes": 452495628, "checksum": "66655b6ffdc9f389d8b424d524f702eea1f481d15d519926aef3dd371aa8e83b"}, "https://dumps.wikimedia.org/itwiki/20200501/itwiki-20200501-pages-articles-multistream6.xml-p6513199p8013198.bz2": {"num_bytes": 269193946, "checksum": "a0802dc96c62161933382d4277a5f04f2468c4c17f09a737b6eb824b9e927e92"}, "https://dumps.wikimedia.org/itwiki/20200501/itwiki-20200501-pages-articles-multistream5.xml-p3147943p4647942.bz2": {"num_bytes": 577586049, "checksum": "b72c081a7115453aef231297cf7f2b3ba081e621b84997866423ca342103a141"}, "https://dumps.wikimedia.org/itwiki/20200501/itwiki-20200501-pages-articles-multistream4.xml-p1959896p3147942.bz2": {"num_bytes": 498811495, "checksum": "a70a2cb0383705fc09bc43a25fbe398ef9fc86df468b5c7bcb72ef4a0c9d7ee0"}}, "download_size": 3114868196, "dataset_size": 3994955896, "size_in_bytes": 7109824092}}
 
1
+ {"20220301.de": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikipedia", "config_name": "20220301.de", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 8905282792, "num_examples": 2665357, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/dewiki/20220301/dumpstatus.json": {"num_bytes": 116264, "checksum": "5b708414557485e8a06e62c85b83a40d60bfac46bfb4c8138c8f28daf3248c60"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream1.xml-p1p297012.bz2": {"num_bytes": 546047463, "checksum": "ecd4b93ae09af06c3d168a497f7b497eac5f1edd116e5199a2431c23b404e758"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream2.xml-p297013p1262093.bz2": {"num_bytes": 696548700, "checksum": "36107a2888184da355735b63edc69b6cf6437a0b217c08a5f24fb434e028e691"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream3.xml-p1262094p2762093.bz2": {"num_bytes": 646438206, "checksum": "50faed8dba837c5426290a8de71804c080d65469aef2abf7c1337f00c5e965dc"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream3.xml-p2762094p3376257.bz2": {"num_bytes": 258845977, "checksum": "09b5ba550ec8559206f69f5fc3c907308f06bfc63609bfbac78342b9e9f7ec48"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream4.xml-p3376258p4876257.bz2": {"num_bytes": 636610718, "checksum": "aab320d9e8a0ca9c097998bc195fc2b5d240b2b4e04b71a663d9dd66da409b5c"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream4.xml-p4876258p6115464.bz2": {"num_bytes": 525224364, "checksum": "65361c5b09ff2c5cfd5049b649a5827626dabff9a7d82857cb75679cee5b6578"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream5.xml-p6115465p7615464.bz2": {"num_bytes": 706926142, "checksum": "0966acbdca4fe180d064fc5710bb7c4b226731b65a27b7915814f9a77d9bcd94"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream5.xml-p7615465p9115464.bz2": {"num_bytes": 814164179, "checksum": "1a1a78551a6ae2ca085022012d63a33910a0a36d7d5eeda68e734fa4f59cbe49"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream5.xml-p9115465p9261244.bz2": {"num_bytes": 37506060, "checksum": "526dca3d96658c7cac53962272b610e11834c2bd9000662825a38437086673f8"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream6.xml-p9261245p10761244.bz2": {"num_bytes": 864587865, "checksum": "99c1cde91cb2fead1ee10ac7f7f6713675256e16a282a204717391cc98aca026"}, "https://dumps.wikimedia.org/dewiki/20220301/dewiki-20220301-pages-articles-multistream6.xml-p10761245p12150082.bz2": {"num_bytes": 790199167, "checksum": "865e4bc7aec2d171c2c341c960c7711ae130b134b030e842e0356d6a8d062e21"}}, "download_size": 6523215105, "post_processing_size": null, "dataset_size": 8905282792, "size_in_bytes": 15428497897}, "20220301.en": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikipedia", "config_name": "20220301.en", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 20275516160, "num_examples": 6458670, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/enwiki/20220301/dumpstatus.json": {"num_bytes": 516376, "checksum": "e22e3176e9df0eed162afefd57c1df66f92fbd43e5b80ab6c6feb8f07d30b02a"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream1.xml-p1p41242.bz2": {"num_bytes": 258112319, "checksum": "2dc8a3486a6f87144088fee79f11e8ab63ddcdb4f0ac1c154c4b7659a17a9459"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream2.xml-p41243p151573.bz2": {"num_bytes": 347436304, "checksum": "0dfd7823e7b4ebd8429cf85e97497510cde812a5548377b820ebe6f5486f5aa3"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream3.xml-p151574p311329.bz2": {"num_bytes": 375706949, "checksum": "5aecabceaadbbbb53b69c90f282386ea578d20c2a3a814b650b892dbe500b99d"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream4.xml-p311330p558391.bz2": {"num_bytes": 418339550, "checksum": "953ebbdfbe82da5bf1d4ca5e2b672a8e8ad808de109d51b0df802684a5ff2a3a"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream5.xml-p558392p958045.bz2": {"num_bytes": 449928655, "checksum": "b7f550733c5761f0501da1ed66fdd94734fe79ef45de6006feee8203f64a9d82"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream6.xml-p958046p1483661.bz2": {"num_bytes": 482922823, "checksum": "079c671fabd3cc980caf81a36d4a713870f52e6c08d29e61f14573f6c51cd575"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream7.xml-p1483662p2134111.bz2": {"num_bytes": 497056081, "checksum": "5b2b39b4e19f7002fa4e8268ddb0a07dc6155abffe9ef57147f234137efd7d5b"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream8.xml-p2134112p2936260.bz2": {"num_bytes": 510496509, "checksum": "bfa735ba6d36d2a6cd34a84f2e8247fb34fa591b9397e4cf970bbae0ae31c402"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream9.xml-p2936261p4045402.bz2": {"num_bytes": 554747284, "checksum": "fd77d269455f5b80e5305a46b1fbd32d5e6e11bda9eb5a55a438a40754ecbfc5"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream10.xml-p4045403p5399366.bz2": {"num_bytes": 547359425, "checksum": "c06f7a46486ee79dd77e754f5a9f683feea7efc24a95d8c3dc57c03036df6e27"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream11.xml-p5399367p6899366.bz2": {"num_bytes": 532372567, "checksum": "4e37537149e81de0cb427713f4548f3fd513abcb3ee4c1ba6d1a678f5243674f"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream11.xml-p6899367p7054859.bz2": {"num_bytes": 50936280, "checksum": "f5576b58539b4994ea1e1789eb099a7b12784e1a8391e5b49a9839f3e34a1530"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream12.xml-p7054860p8554859.bz2": {"num_bytes": 442668915, "checksum": "9d839333b495b0045074f748b4fefefbae48c81ac5d379736da733f4afa309c6"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream12.xml-p8554860p9172788.bz2": {"num_bytes": 179217172, "checksum": "72aeb74de6c53cf5190e6ada753f9d393b1a711b38457ccf319c8ddd7814e22f"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream13.xml-p9172789p10672788.bz2": {"num_bytes": 361353438, "checksum": "1e6ea8be75b00d8616038e28fcfc467cac04af4706fe29ff83eb29d649b8b12c"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream13.xml-p10672789p11659682.bz2": {"num_bytes": 250734861, "checksum": "280733424957f639f604af62091957e8a24cf97b7d9a84e77c5de997c4edebe7"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream14.xml-p11659683p13159682.bz2": {"num_bytes": 434903039, "checksum": "4caa451919b193b88d4f487c8b48859e6f5034a5124a81789b53f8b1ea9d506e"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream14.xml-p13159683p14324602.bz2": {"num_bytes": 299923606, "checksum": "943c0829c25787e90ab661d60045acc6036af59f5c0ec55e9b447ca57e9bc7da"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream15.xml-p14324603p15824602.bz2": {"num_bytes": 391508419, "checksum": "d8319556e7a0eea76c7e867a5fc89d794cc04faf09d1f6b4a469c5f77b2d2cb2"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream15.xml-p15824603p17324602.bz2": {"num_bytes": 340212461, "checksum": "ead4d0b65f5691bb548a367c71047a291d37339790d1cb2b72cf5c9c2a3acfff"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream15.xml-p17324603p17460152.bz2": {"num_bytes": 30829930, "checksum": "8074a6f6a955bb0d2cb673ca877318601075ac8929d45c0180ae841bd1d379af"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream16.xml-p17460153p18960152.bz2": {"num_bytes": 370023231, "checksum": "0badfcf8df1e1b58532328d7c61c3878292d067dfb67d54060487add07833c2b"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream16.xml-p18960153p20460152.bz2": {"num_bytes": 345207815, "checksum": "8451c30d521b7bf53bfe49ecb2c358ada38ce1f3e55c45fc469f6f37739a2574"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream16.xml-p20460153p20570392.bz2": {"num_bytes": 25174733, "checksum": "be62d7ae6610a97a1717eb60ab58f5fd7776947d969e2598ea007013568a79df"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream17.xml-p20570393p22070392.bz2": {"num_bytes": 383922926, "checksum": "5b96f2866cb437a64aea5d20543febc272afe18584ba7b79bc4ebf14635adf36"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream17.xml-p22070393p23570392.bz2": {"num_bytes": 395730986, "checksum": "305218b0aaaef636e3eb40fbfde2793d9ebd9cf5eb96647221afaefe2ce119d6"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream17.xml-p23570393p23716197.bz2": {"num_bytes": 43963524, "checksum": "81c83d54a090bf49686ddcd8f1f22139e33acc56f1a00dd07d7106796b30b633"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream18.xml-p23716198p25216197.bz2": {"num_bytes": 409278549, "checksum": "fa78f2abda80bfee6fea37776c992ed1624627ad45fec16a8b95a3d86df205f1"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream18.xml-p25216198p26716197.bz2": {"num_bytes": 376434754, "checksum": "e187998729da4cf3d2a488e1248489088813d2cac115ebf8ffa77d808f004855"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream18.xml-p26716198p27121850.bz2": {"num_bytes": 95921864, "checksum": "2e776ac9098e1a29e8abc9d91ba33dea15611d67894da5501428c29035f8763f"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream19.xml-p27121851p28621850.bz2": {"num_bytes": 369897015, "checksum": "fd06a648a1cc191dcbf50f9cc9eb5982e84d474b76756fb4896de0a59225beb1"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream19.xml-p28621851p30121850.bz2": {"num_bytes": 325337029, "checksum": "6b509456118d57b9f37d35d296f0f598bcadb7771526b1985ecbd7c8eb8b55b7"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream19.xml-p30121851p31308442.bz2": {"num_bytes": 304960559, "checksum": "6621795c2a7e588a9143a5475d85768b337f0f9d5a0f82cafffd6dd33785dbda"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream20.xml-p31308443p32808442.bz2": {"num_bytes": 413948944, "checksum": "a0d1bf068c492927bf146b3a64638fd4ef875d3e5b6882533bfc394dca2c55d9"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream20.xml-p32808443p34308442.bz2": {"num_bytes": 380386475, "checksum": "8c32652a614c4ad51c3b959b0aee64721e028f017b1f10f33915f67bb4541a0a"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream20.xml-p34308443p35522432.bz2": {"num_bytes": 280075938, "checksum": "dc27c76f45e5ff1ae3f0b96de2d270736dd9741840245410bd76eedea9e7fe37"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream21.xml-p35522433p37022432.bz2": {"num_bytes": 385640399, "checksum": "5b98ffac90fc138cc775c999e57ca6a9d77053ae03f82e7280ac0332e0aa8ce4"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream21.xml-p37022433p38522432.bz2": {"num_bytes": 372653931, "checksum": "4117d06b710a4b6cd4b6f83d4879bf7dbda8b371b526380836484e870fb7e1b2"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream21.xml-p38522433p39996245.bz2": {"num_bytes": 377877693, "checksum": "cdbd3b4832c5cc490748beaa4813c0a7d2e48d8430fc879014052b4868db9464"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream22.xml-p39996246p41496245.bz2": {"num_bytes": 371485741, "checksum": "d93248360867b2bdf8e41fa95ef139283d8194eefc69368189faef4b59864492"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream22.xml-p41496246p42996245.bz2": {"num_bytes": 381901960, "checksum": "74eca8a454787e231d60299a458f6056e9319827423e8df26338fb703e2f7db7"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream22.xml-p42996246p44496245.bz2": {"num_bytes": 387633014, "checksum": "9eaf8cd27f95027d90a35821f939a88f1da24ab83d8f8285cd078b08a35a4c77"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream22.xml-p44496246p44788941.bz2": {"num_bytes": 61111911, "checksum": "47a415014e9ca4f99336d4611bcbfcfd51be1436b583cbb14b22bf33a8f88c80"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream23.xml-p44788942p46288941.bz2": {"num_bytes": 248594177, "checksum": "322705c1782165a29c235226243debe97b10cd810765a09753ade172cd71eb91"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream23.xml-p46288942p47788941.bz2": {"num_bytes": 397742843, "checksum": "6badb8a7ed44b27a5d39b6f9265281f8ef8c2cc4b8452d5cd91d96f42e26263b"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream23.xml-p47788942p49288941.bz2": {"num_bytes": 332850442, "checksum": "bc9c9feeac8d525093720a9581512ff4fd1e86b8ad5ccff9e2d86afd8e4f45c5"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream23.xml-p49288942p50564553.bz2": {"num_bytes": 262134661, "checksum": "e83e4a6a033bc04ad4ac2771be8aec4a5ebc45d457cb61d34aedb2f79593a238"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream24.xml-p50564554p52064553.bz2": {"num_bytes": 356285691, "checksum": "0b6281c187801f7aa66f90cf623b56edcf57f45940b0b8385ac6ef9bc4c6f856"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream24.xml-p52064554p53564553.bz2": {"num_bytes": 355189066, "checksum": "ad1e0c4052e6ec7f8fbee1db7898a015df3621feeb2c6e90fd60b62b31136d86"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream24.xml-p53564554p55064553.bz2": {"num_bytes": 340505087, "checksum": "4e71603b9e81e49c95086d2fe6aaeb99bea95560ac0c06ead37b7fd3dd423620"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream24.xml-p55064554p56564553.bz2": {"num_bytes": 358134041, "checksum": "7aa29ba9da137f8c33530fae34cb2f7d33b60f9ccb114e4094c1c178dc47a800"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream24.xml-p56564554p57025655.bz2": {"num_bytes": 112854213, "checksum": "9d2aa9435d06303c7e477ba5e9fb01a2d6cc1b4050a1a4b6cfcd26bd582d3d00"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream25.xml-p57025656p58525655.bz2": {"num_bytes": 368228982, "checksum": "2497b38c84ab8ec355f60385884f116032e9dea866d86818ea19306fdda90389"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream25.xml-p58525656p60025655.bz2": {"num_bytes": 330207424, "checksum": "79fda40841fb8234b5794425dfe246f5e250cb0bb11bf07f0653f97f80864aaf"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream25.xml-p60025656p61525655.bz2": {"num_bytes": 365614799, "checksum": "b428cf877bae7686601a811c797e221e414e41bc56ccec4e64fd4faf83b70568"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream25.xml-p61525656p62585850.bz2": {"num_bytes": 253055775, "checksum": "7ab490880c479c7aa7a9a734ee48d294c220fd3e67315b719e23bc8866071252"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream26.xml-p62585851p63975909.bz2": {"num_bytes": 369883871, "checksum": "6ac3e25764a816f7d201a46af54ef8bc60d2b139ae9226e303d002dfa460b968"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream27.xml-p63975910p65475909.bz2": {"num_bytes": 333644957, "checksum": "9c29a1bc6199440a49b3b95987e66a049767d42330fda681336e33f42bd42bb6"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream27.xml-p65475910p66975909.bz2": {"num_bytes": 361537200, "checksum": "6383dacbf2a21c3ef84ceaf5c23314f869c864935a2a9c856a8edc9553eaef66"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream27.xml-p66975910p68475909.bz2": {"num_bytes": 385365490, "checksum": "7e312fbbfec9473530796e550a7a5b106849b9653c255dc18cb1461a960b87e7"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream27.xml-p68475910p69975909.bz2": {"num_bytes": 396726943, "checksum": "576197dc5b086a8f46c74162237c8abffd92f05a55eddf1692de15186c67e1fa"}, "https://dumps.wikimedia.org/enwiki/20220301/enwiki-20220301-pages-articles-multistream27.xml-p69975910p70201969.bz2": {"num_bytes": 53906320, "checksum": "fbba55ac845a639c787e365cd903637c9b89f3df31564f0c4668a51094ed03ad"}}, "download_size": 20598313936, "post_processing_size": null, "dataset_size": 20275516160, "size_in_bytes": 40873830096}, "20220301.fr": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikipedia", "config_name": "20220301.fr", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 7375920768, "num_examples": 2402095, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/frwiki/20220301/dumpstatus.json": {"num_bytes": 105721, "checksum": "e87fb482002c2bff2e3c738704e49c28636cba7a5612ffdf9e6ce9069d8913ee"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream1.xml-p1p306134.bz2": {"num_bytes": 591104142, "checksum": "761729cb32274f94a6202a592766bc4069bf51199ab64af48abd3d368c51e594"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream2.xml-p306135p1050822.bz2": {"num_bytes": 663004215, "checksum": "bd29d4b68138d7bac285e65c3c20bb1a96479eb34feb7b46cbb8d66b5b023586"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream3.xml-p1050823p2550822.bz2": {"num_bytes": 562426077, "checksum": "d0fe6f2915f631dc5c3a392859232da9cd3b23a2e07e62b3ba92d2dcbcb8eaae"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream3.xml-p2550823p2977214.bz2": {"num_bytes": 149106511, "checksum": "84e4b3341cd09f16f14fa1d3f205a7052b0170a994131ab31b3f9fbce8ea91e1"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream4.xml-p2977215p4477214.bz2": {"num_bytes": 570306664, "checksum": "30f317d478baedb5b12f9bac9ebbd432a490259201a593cc89968d56c03d9351"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream4.xml-p4477215p5202073.bz2": {"num_bytes": 278393035, "checksum": "0d5f2841b62f0a73214ddff37873a6a437c7dc3123a7ce85cfa1ce212c61142d"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream5.xml-p5202074p6702073.bz2": {"num_bytes": 538681585, "checksum": "8d4bd2dfb68df9c7692de2fb75f5659256fc1af7b4bb9dc0c15e29e3e15dd5e4"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream5.xml-p6702074p8202073.bz2": {"num_bytes": 450708819, "checksum": "3e9629a38e089f4f1b36c80a6acbea57f6db2dbfaea306abfd97a3c822b0faca"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream5.xml-p8202074p9074283.bz2": {"num_bytes": 180668756, "checksum": "8bcf57d4f8d9bfff415c32b69a2583235638550a229f163f5f358bf7b0647474"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream6.xml-p9074284p10574283.bz2": {"num_bytes": 415725199, "checksum": "87dd3b1feee0eb2e3f479d6f875d4eaa84218d777956e3553a9a8f4fcae94f34"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream6.xml-p10574284p12074283.bz2": {"num_bytes": 401653810, "checksum": "7877ffa64389fc7159c688d04d9aca89a80010259a602bc2d416a4bf2e5f03b7"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream6.xml-p12074284p13574283.bz2": {"num_bytes": 456457056, "checksum": "fb0b7078931f2fd03243b146166ebe0d1a09ad203413fa1229b788fba3007139"}, "https://dumps.wikimedia.org/frwiki/20220301/frwiki-20220301-pages-articles-multistream6.xml-p13574284p14821802.bz2": {"num_bytes": 344223684, "checksum": "62061c80d80f2e19622d9109a0ec1cd6a1447f92ca70ee988c993f8e5353952e"}}, "download_size": 5602565274, "post_processing_size": null, "dataset_size": 7375920768, "size_in_bytes": 12978486042}, "20220301.frr": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikipedia", "config_name": "20220301.frr", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 9129760, "num_examples": 15199, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/frrwiki/20220301/dumpstatus.json": {"num_bytes": 11330, "checksum": "4a2e855bedb6a339fac9ab6eddaccc6927267df590196725238ef5d58490c77d"}, "https://dumps.wikimedia.org/frrwiki/20220301/frrwiki-20220301-pages-articles-multistream.xml.bz2": {"num_bytes": 12426687, "checksum": "3d7c76a452d25ae633c89880006e6f09c377c02a12c09326f710899fe61fcf26"}}, "download_size": 12438017, "post_processing_size": null, "dataset_size": 9129760, "size_in_bytes": 21567777}, "20220301.it": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikipedia", "config_name": "20220301.it", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 4539944448, "num_examples": 1743035, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/itwiki/20220301/dumpstatus.json": {"num_bytes": 72047, "checksum": "bbea1ec508a29c100db90d7d8a4a16bd81d6eadba7f0ecfa25431f1d72f339c3"}, "https://dumps.wikimedia.org/itwiki/20220301/itwiki-20220301-pages-articles-multistream1.xml-p1p316052.bz2": {"num_bytes": 306248227, "checksum": "6642d994f399f0860243de003e5681d1c9fff916162b36775709e4aaaaeff858"}, "https://dumps.wikimedia.org/itwiki/20220301/itwiki-20220301-pages-articles-multistream2.xml-p316053p1204973.bz2": {"num_bytes": 423186063, "checksum": "080af4d28d65809037963143b5b7f2fe9a68c05b21ced34d598745688118adf8"}, "https://dumps.wikimedia.org/itwiki/20220301/itwiki-20220301-pages-articles-multistream3.xml-p1204974p2206774.bz2": {"num_bytes": 483626055, "checksum": "24b1efcedff36547c7a42a474ba133e044a7d15de0bd0f831a02409ef7795734"}, "https://dumps.wikimedia.org/itwiki/20220301/itwiki-20220301-pages-articles-multistream4.xml-p2206775p3593336.bz2": {"num_bytes": 586265474, "checksum": "11a0f8350fa5d2439b2d36074d49045ec9838abdc13814d8eb524a258cb490db"}, "https://dumps.wikimedia.org/itwiki/20220301/itwiki-20220301-pages-articles-multistream5.xml-p3593337p5093336.bz2": {"num_bytes": 581856227, "checksum": "fa8da146836d3116f3d464a716428588a53c42b30607048c65553e75560f693d"}, "https://dumps.wikimedia.org/itwiki/20220301/itwiki-20220301-pages-articles-multistream5.xml-p5093337p5915379.bz2": {"num_bytes": 244580638, "checksum": "facc73f8bb5a326e65083ef1e083bca0faa74e63e9ab2e0c99c111078bebf05e"}, "https://dumps.wikimedia.org/itwiki/20220301/itwiki-20220301-pages-articles-multistream6.xml-p5915380p7415379.bz2": {"num_bytes": 312145545, "checksum": "fa885a11228722027db74f9e33a28022b38637cc290ce25b1bf9cce8bc0b53a8"}, "https://dumps.wikimedia.org/itwiki/20220301/itwiki-20220301-pages-articles-multistream6.xml-p7415380p8915379.bz2": {"num_bytes": 455006641, "checksum": "a30ca223f83d3bc77b9297648e6573d40165fe2cc238f733eb091444ad1afdd0"}, "https://dumps.wikimedia.org/itwiki/20220301/itwiki-20220301-pages-articles-multistream6.xml-p8915380p9319766.bz2": {"num_bytes": 123454322, "checksum": "6ca6dd370278363d0e55e394864476ae7e70cf42503a6572c546cf9ec6b6328e"}}, "download_size": 3516441239, "post_processing_size": null, "dataset_size": 4539944448, "size_in_bytes": 8056385687}, "20220301.simple": {"description": "Wikipedia dataset containing cleaned articles of all languages.\nThe datasets are built from the Wikipedia dump\n(https://dumps.wikimedia.org/) with one split per language. Each example\ncontains the content of one full Wikipedia article with cleaning to strip\nmarkdown and unwanted sections (references, etc.).\n", "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n", "homepage": "https://dumps.wikimedia.org", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikipedia", "config_name": "20220301.simple", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 235072360, "num_examples": 205328, "dataset_name": "wikipedia"}}, "download_checksums": {"https://dumps.wikimedia.org/simplewiki/20220301/dumpstatus.json": {"num_bytes": 11707, "checksum": "2f2690e9f8bb87cfc13ca0d12316454986f7874605acb56401b681b0d1fed6d0"}, "https://dumps.wikimedia.org/simplewiki/20220301/simplewiki-20220301-pages-articles-multistream.xml.bz2": {"num_bytes": 239671089, "checksum": "9b979865f771b927e587ff1f92578d3f526125569f853b717ab5158f1d02a7c0"}}, "download_size": 239682796, "post_processing_size": null, "dataset_size": 235072360, "size_in_bytes": 474755156}}
wikipedia.py CHANGED
@@ -22,6 +22,7 @@ import codecs
22
  import json
23
  import re
24
  import xml.etree.cElementTree as etree
 
25
 
26
  import datasets
27
 
@@ -357,14 +358,531 @@ WIKIPEDIA_LANGUAGES = [
357
  "zu",
358
  ]
359
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  _BASE_URL_TMPL = "https://dumps.wikimedia.org/{lang}wiki/{date}/"
361
  _INFO_FILE = "dumpstatus.json"
362
 
363
 
 
 
 
364
  class WikipediaConfig(datasets.BuilderConfig):
365
  """BuilderConfig for Wikipedia."""
366
 
367
- def __init__(self, language=None, date=None, **kwargs):
368
  """BuilderConfig for Wikipedia.
369
 
370
  Args:
@@ -373,16 +891,17 @@ class WikipediaConfig(datasets.BuilderConfig):
373
  available dates can be found at https://dumps.wikimedia.org/enwiki/.
374
  **kwargs: keyword arguments forwarded to super.
375
  """
376
- super(WikipediaConfig, self).__init__(
377
  name=f"{date}.{language}",
378
  description=f"Wikipedia dataset for {language}, parsed from {date} dump.",
 
379
  **kwargs,
380
  )
381
  self.date = date
382
  self.language = language
383
 
384
 
385
- _VERSION = datasets.Version("1.0.0", "")
386
 
387
 
388
  class Wikipedia(datasets.BeamBasedBuilder):
@@ -392,9 +911,8 @@ class Wikipedia(datasets.BeamBasedBuilder):
392
  BUILDER_CONFIG_CLASS = WikipediaConfig
393
  BUILDER_CONFIGS = [
394
  WikipediaConfig(
395
- version=_VERSION,
396
  language=lang,
397
- date="20200501",
398
  ) # pylint:disable=g-complex-comprehension
399
  for lang in WIKIPEDIA_LANGUAGES
400
  ]
@@ -402,7 +920,14 @@ class Wikipedia(datasets.BeamBasedBuilder):
402
  def _info(self):
403
  return datasets.DatasetInfo(
404
  description=_DESCRIPTION,
405
- features=datasets.Features({"title": datasets.Value("string"), "text": datasets.Value("string")}),
 
 
 
 
 
 
 
406
  # No default supervised_keys.
407
  supervised_keys=None,
408
  homepage="https://dumps.wikimedia.org",
@@ -468,6 +993,7 @@ class Wikipedia(datasets.BeamBasedBuilder):
468
  title = elem.find(f"./{namespace}title").text
469
  ns = elem.find(f"./{namespace}ns").text
470
  id_ = elem.find(f"./{namespace}id").text
 
471
 
472
  # Filter pages that are not in the "main" namespace.
473
  if ns != "0":
@@ -478,18 +1004,18 @@ class Wikipedia(datasets.BeamBasedBuilder):
478
  elem.clear()
479
 
480
  # Filter redirects.
481
- if raw_content is None or raw_content.lower().startswith("#redirect"):
482
  beam.metrics.Metrics.counter(language, "filtered-redirects").inc()
483
  continue
484
 
485
  beam.metrics.Metrics.counter(language, "extracted-examples").inc()
486
  yield (id_, title, raw_content)
487
 
488
- def _clean_content(inputs):
489
  """Cleans raw wikicode to extract text."""
490
  id_, title, raw_content = inputs
491
  try:
492
- text = _parse_and_clean_wikicode(raw_content, parser=mwparserfromhell)
493
  except (mwparserfromhell.parser.ParserError) as e:
494
  beam.metrics.Metrics.counter(language, "parser-error").inc()
495
  logger.error("mwparserfromhell ParseError: %s", e)
@@ -499,34 +1025,57 @@ class Wikipedia(datasets.BeamBasedBuilder):
499
  beam.metrics.Metrics.counter(language, "empty-clean-examples").inc()
500
  return
501
 
 
 
502
  beam.metrics.Metrics.counter(language, "cleaned-examples").inc()
503
 
504
- yield id_, {"title": title, "text": text}
505
 
506
  return (
507
  pipeline
508
  | "Initialize" >> beam.Create(filepaths)
509
  | "Extract content" >> beam.FlatMap(_extract_content)
510
  | "Distribute" >> beam.transforms.Reshuffle()
511
- | "Clean content" >> beam.FlatMap(_clean_content)
512
  )
513
 
514
 
515
- def _parse_and_clean_wikicode(raw_content, parser):
516
  """Strips formatting and unwanted sections from raw page content."""
517
  wikicode = parser.parse(raw_content)
518
 
519
- # Filters for references, tables, and file/image links.
520
- re_rm_wikilink = re.compile("^(?:File|Image|Media):", flags=re.IGNORECASE | re.UNICODE)
 
 
 
 
521
 
522
  def rm_wikilink(obj):
523
  return bool(re_rm_wikilink.match(str(obj.title)))
524
 
 
525
  def rm_tag(obj):
526
  return str(obj.tag) in {"ref", "table"}
527
 
528
- def rm_template(obj):
529
- return obj.name.lower() in {"reflist", "notelist", "notelist-ua", "notelist-lr", "notelist-ur", "notelist-lg"}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
 
531
  def try_remove_obj(obj, section):
532
  try:
@@ -538,12 +1087,18 @@ def _parse_and_clean_wikicode(raw_content, parser):
538
  section_text = []
539
  # Filter individual sections to clean.
540
  for section in wikicode.get_sections(flat=True, include_lead=True, include_headings=True):
541
- for obj in section.ifilter_wikilinks(matches=rm_wikilink, recursive=True):
542
- try_remove_obj(obj, section)
543
- for obj in section.ifilter_templates(matches=rm_template, recursive=True):
544
- try_remove_obj(obj, section)
 
545
  for obj in section.ifilter_tags(matches=rm_tag, recursive=True):
546
  try_remove_obj(obj, section)
547
 
548
- section_text.append(section.strip_code().strip())
549
  return "\n\n".join(section_text)
 
 
 
 
 
 
22
  import json
23
  import re
24
  import xml.etree.cElementTree as etree
25
+ from urllib.parse import quote
26
 
27
  import datasets
28
 
 
358
  "zu",
359
  ]
360
 
361
+ # Source: for each Wikipedia language code (example shown for "ab"), aliases for namespaces -2 and 6 accessed via this API call:
362
+ # https://ab.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=namespacealiases|namespaces&format=json&formatversion=2 (accessed 12/21/2021)
363
+ MEDIA_ALIASES = {
364
+ "ab": ["Медиа", "Файл", "Афаил", "Амедиа", "Изображение"],
365
+ "ace": ["Beureukaih", "Gambar", "Alat", "Berkas"],
366
+ "ady": ["Медиа"],
367
+ "af": ["Lêer", "Beeld"],
368
+ "als": ["Medium", "Datei", "Bild"],
369
+ "am": ["ፋይል", "ስዕል"],
370
+ "an": ["Imachen", "Imagen"],
371
+ "ang": ["Ymele", "Biliþ"],
372
+ "ar": ["ميديا", "صورة", "وسائط", "ملف"],
373
+ "arc": ["ܠܦܦܐ", "ܡܝܕܝܐ"],
374
+ "arz": ["ميديا", "صورة", "وسائط", "ملف"],
375
+ "as": ["চিত্ৰ", "चित्र", "চিত্র", "মাধ্যম"],
376
+ "ast": ["Imaxen", "Ficheru", "Imaxe", "Archivu", "Imagen", "Medios"],
377
+ "atj": ["Tipatcimoctakewin", "Natisinahikaniwoc"],
378
+ "av": ["Медиа", "Файл", "Изображение"],
379
+ "ay": ["Medio", "Archivo", "Imagen"],
380
+ "az": ["Mediya", "Şəkil", "Fayl"],
381
+ "azb": ["رسانه", "تصویر", "مدیا", "فایل", "رسانه‌ای"],
382
+ "ba": ["Медиа", "Рәсем", "Файл", "Изображение"],
383
+ "bar": ["Medium", "Datei", "Bild"],
384
+ "bat-smg": ["Vaizdas", "Medėjė", "Abruozdielis"],
385
+ "bcl": ["Medio", "Ladawan"],
386
+ "be": ["Мультымедыя", "Файл", "Выява"],
387
+ "be-x-old": ["Мэдыя", "Файл", "Выява"],
388
+ "bg": ["Медия", "Файл", "Картинка"],
389
+ "bh": ["मीडिया", "चित्र"],
390
+ "bjn": ["Barakas", "Gambar", "Berkas"],
391
+ "bm": ["Média", "Fichier"],
392
+ "bn": ["চিত্র", "মিডিয়া"],
393
+ "bpy": ["ছবি", "মিডিয়া"],
394
+ "br": ["Skeudenn", "Restr"],
395
+ "bs": ["Mediji", "Slika", "Datoteka", "Medija"],
396
+ "bug": ["Gambar", "Berkas"],
397
+ "bxr": ["Файл", "Меди", "Изображение"],
398
+ "ca": ["Fitxer", "Imatge"],
399
+ "cbk-zam": ["Medio", "Archivo", "Imagen"],
400
+ "cdo": ["文件", "媒體", "圖像", "檔案"],
401
+ "ce": ["Хlум", "Медиа", "Сурт", "Файл", "Медйа", "Изображение"],
402
+ "ceb": ["Payl", "Medya", "Imahen"],
403
+ "ch": ["Litratu"],
404
+ "ckb": ["میدیا", "پەڕگە"],
405
+ "co": ["Immagine"],
406
+ "crh": ["Медиа", "Resim", "Файл", "Fayl", "Ресим"],
407
+ "cs": ["Soubor", "Média", "Obrázok"],
408
+ "csb": ["Òbrôzk", "Grafika"],
409
+ "cu": ["Видъ", "Ви́дъ", "Дѣло", "Срѣдьства"],
410
+ "cv": ["Медиа", "Ӳкерчĕк", "Изображение"],
411
+ "cy": ["Delwedd"],
412
+ "da": ["Billede", "Fil"],
413
+ "de": ["Medium", "Datei", "Bild"],
414
+ "din": ["Ciɛl", "Apamduööt"],
415
+ "diq": ["Medya", "Dosya"],
416
+ "dsb": ["Wobraz", "Dataja", "Bild", "Medija"],
417
+ "dty": ["चित्र", "मिडिया"],
418
+ "dv": ["ފައިލު", "މީޑިއާ", "ފައިލް"],
419
+ "el": ["Εικόνα", "Αρχείο", "Μέσο", "Μέσον"],
420
+ "eml": ["Immagine"],
421
+ "eo": ["Dosiero", "Aŭdvidaĵo"],
422
+ "es": ["Medio", "Archivo", "Imagen"],
423
+ "et": ["Pilt", "Fail", "Meedia"],
424
+ "eu": ["Irudi", "Fitxategi"],
425
+ "ext": ["Archivu", "Imagen", "Mediu"],
426
+ "fa": ["رسانه", "تصویر", "مدیا", "پرونده", "رسانه‌ای"],
427
+ "ff": ["Média", "Fichier"],
428
+ "fi": ["Kuva", "Tiedosto"],
429
+ "fiu-vro": ["Pilt", "Meediä"],
430
+ "fo": ["Miðil", "Mynd"],
431
+ "fr": ["Média", "Fichier"],
432
+ "frp": ["Émâge", "Fichiér", "Mèdia"],
433
+ "frr": ["Medium", "Datei", "Bild"],
434
+ "fur": ["Immagine", "Figure"],
435
+ "fy": ["Ofbyld"],
436
+ "ga": ["Íomhá", "Meán"],
437
+ "gag": ["Mediya", "Medya", "Resim", "Dosya", "Dosye"],
438
+ "gan": ["媒体文件", "文件", "文檔", "档案", "媒體", "图像", "圖像", "媒体", "檔案"],
439
+ "gd": ["Faidhle", "Meadhan"],
440
+ "gl": ["Imaxe", "Ficheiro", "Arquivo", "Imagem"],
441
+ "glk": ["رسانه", "تصویر", "پرونده", "فاىل", "رسانه‌ای", "مديا"],
442
+ "gn": ["Medio", "Imagen", "Ta'ãnga"],
443
+ "gom": ["माध्यम", "मिडिया", "फायल"],
444
+ "gor": ["Gambar", "Berkas"],
445
+ "got": ["𐍆𐌴𐌹𐌻𐌰"],
446
+ "gu": ["દ્રશ્ય-શ્રાવ્ય (મિડિયા)", "દ્રશ્ય-શ્રાવ્ય_(મિડિયા)", "ચિત્ર"],
447
+ "gv": ["Coadan", "Meanyn"],
448
+ "hak": ["文件", "媒體", "圖像", "檔案"],
449
+ "haw": ["Kiʻi", "Waihona", "Pāpaho"],
450
+ "he": ["תמונה", "קו", "מדיה", "קובץ"],
451
+ "hi": ["मीडिया", "चित्र"],
452
+ "hif": ["file", "saadhan"],
453
+ "hr": ["Mediji", "DT", "Slika", "F", "Datoteka"],
454
+ "hsb": ["Wobraz", "Dataja", "Bild"],
455
+ "ht": ["Imaj", "Fichye", "Medya"],
456
+ "hu": ["Kép", "Fájl", "Média"],
457
+ "hy": ["Պատկեր", "Մեդիա"],
458
+ "ia": ["Imagine", "Multimedia"],
459
+ "id": ["Gambar", "Berkas"],
460
+ "ig": ["Nká", "Midia", "Usòrò", "Ákwúkwó orünotu", "Ákwúkwó_orünotu"],
461
+ "ii": ["媒体文件", "文件", "档案", "图像", "媒体"],
462
+ "ilo": ["Midia", "Papeles"],
463
+ "inh": ["Медиа", "Файл", "Изображение"],
464
+ "io": ["Imajo", "Arkivo"],
465
+ "is": ["Miðill", "Mynd"],
466
+ "it": ["Immagine"],
467
+ "ja": ["メディア", "ファイル", "画像"],
468
+ "jbo": ["velsku", "datnyvei"],
469
+ "jv": ["Barkas", "Medhia", "Gambar", "Médhia"],
470
+ "ka": ["მედია", "სურათი", "ფაილი"],
471
+ "kaa": ["Swret", "Таспа", "سۋرەت", "Taspa", "Su'wret", "Сурет", "تاسپا"],
472
+ "kab": ["Tugna"],
473
+ "kbd": ["Медиа", "Файл"],
474
+ "kbp": ["Média", "Fichier"],
475
+ "kg": ["Fisye"],
476
+ "kk": ["Swret", "سۋرەت", "Таспа", "Taspa", "Сурет", "تاسپا"],
477
+ "kl": ["Billede", "Fiileq", "Fil"],
478
+ "km": ["ឯកសារ", "រូបភាព", "មេឌា", "មីឌា"],
479
+ "kn": ["ಚಿತ್ರ", "ಮೀಡಿಯ"],
480
+ "ko": ["미디어", "파일", "그림"],
481
+ "koi": ["Медиа", "Файл", "Изображение"],
482
+ "krc": ["Медиа", "Файл", "Изображение"],
483
+ "ks": ["میڈیا", "فَیِل"],
484
+ "ksh": ["Beld", "Meedije", "Medie", "Belld", "Medium", "Datei", "Meedijum", "Bild"],
485
+ "ku": ["میدیا", "پەڕگە", "Medya", "Wêne"],
486
+ "kv": ["Медиа", "Файл", "Изображение"],
487
+ "kw": ["Restren"],
488
+ "ky": ["Медиа", "Файл"],
489
+ "la": ["Imago", "Fasciculus"],
490
+ "lad": ["Dossia", "Medya", "Archivo", "Dosya", "Imagen", "Meddia"],
491
+ "lb": ["Fichier", "Bild"],
492
+ "lbe": ["Медиа", "Сурат", "Изображение"],
493
+ "lez": ["Медиа", "Mediya", "Файл", "Şəkil", "Изображение"],
494
+ "lfn": ["Fix"],
495
+ "li": ["Afbeelding", "Plaetje", "Aafbeilding"],
496
+ "lij": ["Immaggine", "Immagine"],
497
+ "lmo": ["Immagine", "Imàjine", "Archivi"],
498
+ "ln": ["Média", "Fichier"],
499
+ "lo": ["ສື່ອ", "ສື່", "ຮູບ"],
500
+ "lrc": ["رسانه", "تصویر", "رسانه‌ای", "جانیا", "أسگ", "ڤارئسگأر"],
501
+ "lt": ["Vaizdas", "Medija"],
502
+ "ltg": ["Medeja", "Fails"],
503
+ "lv": ["Attēls"],
504
+ "mai": ["मेडिया", "फाइल"],
505
+ "map-bms": ["Barkas", "Medhia", "Gambar", "Médhia"],
506
+ "mdf": ["Медиа", "Няйф", "Изображение"],
507
+ "mg": ["Rakitra", "Sary", "Média"],
508
+ "mhr": ["Медиа", "Файл", "Изображение"],
509
+ "min": ["Gambar", "Berkas"],
510
+ "mk": ["Податотека", "Медија", "Медиум", "Слика"],
511
+ "ml": ["പ്രമാണം", "ചി", "മീഡിയ", "പ്ര", "ചിത്രം"],
512
+ "mn": ["Медиа", "Файл", "Зураг"],
513
+ "mr": ["चित्र", "मिडिया"],
514
+ "mrj": ["Медиа", "Файл", "Изображение"],
515
+ "ms": ["Fail", "Imej"],
516
+ "mt": ["Midja", "Medja", "Stampa"],
517
+ "mwl": ["Multimédia", "Fexeiro", "Ficheiro", "Arquivo", "Imagem"],
518
+ "my": ["ဖိုင်", "မီဒီယာ"],
519
+ "myv": ["Медия", "Артовкс", "Изображение"],
520
+ "mzn": ["رسانه", "تصویر", "مه‌دیا", "مدیا", "پرونده", "رسانه‌ای"],
521
+ "nah": ["Mēdiatl", "Īxiptli", "Imagen"],
522
+ "nap": ["Fiùra", "Immagine"],
523
+ "nds": ["Datei", "Bild"],
524
+ "nds-nl": ["Ofbeelding", "Afbeelding", "Bestaand"],
525
+ "ne": ["मीडिया", "चित्र"],
526
+ "new": ["किपा", "माध्यम"],
527
+ "nl": ["Bestand", "Afbeelding"],
528
+ "nn": ["Fil", "Bilde", "Filpeikar"],
529
+ "no": ["Fil", "Medium", "Bilde"],
530
+ "nov": [],
531
+ "nrm": ["Média", "Fichier"],
532
+ "nso": ["Seswantšho"],
533
+ "nv": ["Eʼelyaaígíí"],
534
+ "oc": ["Imatge", "Fichièr", "Mèdia"],
535
+ "olo": ["Kuva", "Medii", "Failu"],
536
+ "or": ["ମାଧ୍ୟମ", "ଫାଇଲ"],
537
+ "os": ["Ныв", "Медиа", "Файл", "Изображение"],
538
+ "pa": ["ਤਸਵੀਰ", "ਮੀਡੀਆ"],
539
+ "pcd": ["Média", "Fichier"],
540
+ "pdc": ["Medium", "Datei", "Bild", "Feil"],
541
+ "pfl": ["Dadai", "Medium", "Datei", "Bild"],
542
+ "pi": ["मीडिया", "पटिमा"],
543
+ "pl": ["Plik", "Grafika"],
544
+ "pms": ["Figura", "Immagine"],
545
+ "pnb": ["میڈیا", "تصویر", "فائل"],
546
+ "pnt": ["Εικόνα", "Αρχείον", "Εικόναν", "Μέσον"],
547
+ "ps": ["انځور", "رسنۍ", "دوتنه"],
548
+ "pt": ["Multimédia", "Ficheiro", "Arquivo", "Imagem"],
549
+ "qu": ["Midya", "Imagen", "Rikcha"],
550
+ "rm": ["Multimedia", "Datoteca"],
551
+ "rmy": ["Fişier", "Mediya", "Chitro", "Imagine"],
552
+ "ro": ["Fişier", "Imagine", "Fișier"],
553
+ "roa-rup": ["Fişier", "Imagine", "Fișier"],
554
+ "roa-tara": ["Immagine"],
555
+ "ru": ["Меди��", "Файл", "Изображение"],
556
+ "rue": ["Медіа", "Медиа", "Файл", "Изображение", "Зображення"],
557
+ "rw": ["Dosiye", "Itangazamakuru"],
558
+ "sa": ["चित्रम्", "माध्यमम्", "सञ्चिका", "माध्यम", "चित्रं"],
559
+ "sah": ["Миэдьийэ", "Ойуу", "Билэ", "Изображение"],
560
+ "sat": ["ᱨᱮᱫ", "ᱢᱤᱰᱤᱭᱟ"],
561
+ "sc": ["Immàgini"],
562
+ "scn": ["Immagine", "Mmàggini", "Mèdia"],
563
+ "sd": ["عڪس", "ذريعات", "فائل"],
564
+ "se": ["Fiila"],
565
+ "sg": ["Média", "Fichier"],
566
+ "sh": ["Mediji", "Slika", "Медија", "Datoteka", "Medija", "Слика"],
567
+ "si": ["රූපය", "මාධ්‍යය", "ගොනුව"],
568
+ "sk": ["Súbor", "Obrázok", "Médiá"],
569
+ "sl": ["Slika", "Datoteka"],
570
+ "sq": ["Figura", "Skeda"],
571
+ "sr": ["Датотека", "Medij", "Slika", "Медија", "Datoteka", "Медиј", "Medija", "Слика"],
572
+ "srn": ["Afbeelding", "Gefre"],
573
+ "stq": ["Bielde", "Bild"],
574
+ "su": ["Média", "Gambar"],
575
+ "sv": ["Fil", "Bild"],
576
+ "sw": ["Faili", "Picha"],
577
+ "szl": ["Plik", "Grafika"],
578
+ "ta": ["படிமம்", "ஊடகம்"],
579
+ "tcy": ["ಮಾದ್ಯಮೊ", "ಫೈಲ್"],
580
+ "te": ["ఫైలు", "దస్త్రం", "బొమ్మ", "మీడియా"],
581
+ "tet": ["Imajen", "Arquivo", "Imagem"],
582
+ "tg": ["Акс", "Медиа"],
583
+ "th": ["ไฟล์", "สื่อ", "ภาพ"],
584
+ "ti": ["ፋይል", "ሜድያ"],
585
+ "tk": ["Faýl"],
586
+ "tl": ["Midya", "Talaksan"],
587
+ "tpi": ["Fail"],
588
+ "tr": ["Medya", "Resim", "Dosya", "Ortam"],
589
+ "tt": ["Медиа", "Рәсем", "Файл", "Räsem", "Изображение"],
590
+ "ty": ["Média", "Fichier"],
591
+ "tyv": ["Медиа", "Файл", "Изображение"],
592
+ "udm": ["Медиа", "Файл", "Суред", "Изображение"],
593
+ "ug": ["ۋاسىتە", "ھۆججەت"],
594
+ "uk": ["Медіа", "Медиа", "Файл", "Изображение", "Зображення"],
595
+ "ur": ["میڈیا", "تصویر", "وسیط", "زریعہ", "فائل", "ملف"],
596
+ "uz": ["Mediya", "Tasvir", "Fayl"],
597
+ "vec": ["Immagine", "Imàjine", "Mèdia"],
598
+ "vep": ["Pilt", "Fail"],
599
+ "vi": ["Phương_tiện", "Tập_tin", "Hình", "Tập tin", "Phương tiện"],
600
+ "vls": ["Afbeelding", "Ofbeeldienge"],
601
+ "vo": ["Ragiv", "Magod", "Nünamakanäd"],
602
+ "wa": ["Imådje"],
603
+ "war": ["Medya", "Fayl", "Paypay"],
604
+ "wo": ["Xibaarukaay", "Dencukaay"],
605
+ "wuu": ["文件", "档案", "图像", "媒体"],
606
+ "xal": ["Аһар", "Боомг", "Изображение", "Зург"],
607
+ "xmf": ["მედია", "სურათი", "ფაილი"],
608
+ "yi": ["מעדיע", "תמונה", "טעקע", "בילד"],
609
+ "yo": ["Fáìlì", "Amóhùnmáwòrán", "Àwòrán"],
610
+ "za": ["媒体文件", "文件", "档案", "图像", "媒体"],
611
+ "zea": ["Afbeelding", "Plaetje"],
612
+ "zh": ["媒体文件", "F", "文件", "媒體", "档案", "图像", "圖像", "媒体", "檔案"],
613
+ "zh-classical": ["文件", "媒體", "圖像", "檔案"],
614
+ "zh-min-nan": ["tóng-àn", "文件", "媒體", "Mûi-thé", "圖像", "檔案"],
615
+ "zh-yue": ["檔", "档", "文件", "图", "媒體", "圖", "档案", "图像", "圖像", "媒体", "檔案"],
616
+ }
617
+
618
+ # Source: for each Wikipedia language code (example shown for "ab"), aliases for namespace 14 accessed via this API call:
619
+ # https://ab.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=namespacealiases|namespaces&format=json&formatversion=2 (accessed 12/21/2021)
620
+ CAT_ALIASES = {
621
+ "ab": ["Категория", "Акатегориа"],
622
+ "ace": ["Kawan", "Kategori"],
623
+ "af": ["Kategorie"],
624
+ "ak": ["Nkyekyem"],
625
+ "als": ["Kategorie"],
626
+ "am": ["መደብ"],
627
+ "an": ["Categoría"],
628
+ "ang": ["Flocc"],
629
+ "ar": ["تصنيف"],
630
+ "arc": ["ܣܕܪܐ"],
631
+ "arz": ["تصنيف"],
632
+ "as": ["CAT", "শ্ৰেণী", "श्रेणी", "শ্রেণী"],
633
+ "ast": ["Categoría"],
634
+ "atj": ["Tipanictawin"],
635
+ "av": ["Категория"],
636
+ "ay": ["Categoría"],
637
+ "az": ["Kateqoriya"],
638
+ "azb": ["بؤلمه"],
639
+ "ba": ["Төркөм", "Категория"],
640
+ "bar": ["Kategorie"],
641
+ "bat-smg": ["Kategorija", "Kateguorėjė"],
642
+ "bcl": ["Kategorya"],
643
+ "be": ["Катэгорыя"],
644
+ "be-x-old": ["Катэгорыя"],
645
+ "bg": ["Категория"],
646
+ "bh": ["श्रेणी"],
647
+ "bjn": ["Tumbung", "Kategori"],
648
+ "bm": ["Catégorie"],
649
+ "bn": ["বিষয়শ্রেণী", "വിഭാഗം"],
650
+ "bpy": ["থাক"],
651
+ "br": ["Rummad"],
652
+ "bs": ["Kategorija"],
653
+ "bug": ["Kategori"],
654
+ "bxr": ["Категори", "Категория"],
655
+ "ca": ["Categoria"],
656
+ "cbk-zam": ["Categoría"],
657
+ "cdo": ["分類"],
658
+ "ce": ["Категори", "Тоба", "Кадегар"],
659
+ "ceb": ["Kategoriya"],
660
+ "ch": ["Katigoria"],
661
+ "ckb": ["پ", "پۆل"],
662
+ "co": ["Categoria"],
663
+ "crh": ["Категория", "Kategoriya"],
664
+ "cs": ["Kategorie"],
665
+ "csb": ["Kategòrëjô"],
666
+ "cu": ["Катигорї", "Категория", "Катигорїꙗ"],
667
+ "cv": ["Категори"],
668
+ "cy": ["Categori"],
669
+ "da": ["Kategori"],
670
+ "de": ["Kategorie"],
671
+ "din": ["Bekätakthook"],
672
+ "diq": ["Kategoriye", "Kategori"],
673
+ "dsb": ["Kategorija"],
674
+ "dty": ["श्रेणी"],
675
+ "dv": ["ޤިސްމު"],
676
+ "el": ["Κατηγορία"],
677
+ "eml": ["Categoria"],
678
+ "eo": ["Kategorio"],
679
+ "es": ["CAT", "Categoría"],
680
+ "et": ["Kategooria"],
681
+ "eu": ["Kategoria"],
682
+ "ext": ["Categoría", "Categoria"],
683
+ "fa": ["رده"],
684
+ "ff": ["Catégorie"],
685
+ "fi": ["Luokka"],
686
+ "fiu-vro": ["Katõgooria"],
687
+ "fo": ["Bólkur"],
688
+ "fr": ["Catégorie"],
689
+ "frp": ["Catègorie"],
690
+ "frr": ["Kategorie"],
691
+ "fur": ["Categorie"],
692
+ "fy": ["Kategory"],
693
+ "ga": ["Rang", "Catagóir"],
694
+ "gag": ["Kategori", "Kategoriya"],
695
+ "gan": ["分類", "分类"],
696
+ "gd": ["Roinn-seòrsa"],
697
+ "gl": ["Categoría"],
698
+ "glk": ["جرگه", "رده"],
699
+ "gn": ["Ñemohenda"],
700
+ "gom": ["वर्ग", "श्रेणी"],
701
+ "gor": ["Dalala"],
702
+ "got": ["𐌷𐌰𐌽𐍃𐌰"],
703
+ "gu": ["શ્રેણી", "CAT", "શ્રે"],
704
+ "gv": ["Ronney"],
705
+ "hak": ["分類"],
706
+ "haw": ["Māhele"],
707
+ "he": ["קטגוריה", "קט"],
708
+ "hi": ["श्र", "श्रेणी"],
709
+ "hif": ["vibhag"],
710
+ "hr": ["CT", "KT", "Kategorija"],
711
+ "hsb": ["Kategorija"],
712
+ "ht": ["Kategori"],
713
+ "hu": ["Kategória"],
714
+ "hy": ["Կատեգորիա"],
715
+ "ia": ["Categoria"],
716
+ "id": ["Kategori"],
717
+ "ie": ["Categorie"],
718
+ "ig": ["Ébéonọr", "Òtù"],
719
+ "ii": ["分类"],
720
+ "ilo": ["Kategoria"],
721
+ "inh": ["ОагӀат"],
722
+ "io": ["Kategorio"],
723
+ "is": ["Flokkur"],
724
+ "it": ["CAT", "Categoria"],
725
+ "ja": ["カテゴリ"],
726
+ "jbo": ["klesi"],
727
+ "jv": ["Kategori"],
728
+ "ka": ["კატეგორია"],
729
+ "kaa": ["Sanat", "Kategoriya", "Санат", "سانات"],
730
+ "kab": ["Taggayt"],
731
+ "kbd": ["Категория", "Категориэ"],
732
+ "kbp": ["Catégorie"],
733
+ "kg": ["Kalasi"],
734
+ "kk": ["Sanat", "Санат", "سانات"],
735
+ "kl": ["Sumut_atassuseq", "Kategori", "Sumut atassuseq"],
736
+ "km": ["ចំនាត់ថ្នាក់ក្រុម", "ចំណាត់ក្រុម", "ចំណាត់ថ្នាក់ក្រុម"],
737
+ "kn": ["ವರ್ಗ"],
738
+ "ko": ["분류"],
739
+ "koi": ["Категория"],
740
+ "krc": ["Категория"],
741
+ "ks": ["زٲژ"],
742
+ "ksh": ["Saachjropp", "Saachjrop", "Katejori", "Kategorie", "Saachjrupp", "Kattejori", "Sachjrop"],
743
+ "ku": ["Kategorî", "پۆل"],
744
+ "kv": ["Категория"],
745
+ "kw": ["Class", "Klass"],
746
+ "ky": ["Категория"],
747
+ "la": ["Categoria"],
748
+ "lad": ["Kateggoría", "Katēggoría", "Categoría"],
749
+ "lb": ["Kategorie"],
750
+ "lbe": ["Категория"],
751
+ "lez": ["Категория"],
752
+ "lfn": ["Categoria"],
753
+ "li": ["Categorie", "Kategorie"],
754
+ "lij": ["Categorîa", "Categoria"],
755
+ "lmo": ["Categuria", "Categoria"],
756
+ "ln": ["Catégorie"],
757
+ "lo": ["ໝວດ"],
758
+ "lrc": ["دأسە"],
759
+ "lt": ["Kategorija"],
760
+ "ltg": ["Kategoreja"],
761
+ "lv": ["Kategorija"],
762
+ "mai": ["CA", "श्रेणी"],
763
+ "map-bms": ["Kategori"],
764
+ "mdf": ["Категорие", "Категория"],
765
+ "mg": ["Sokajy", "Catégorie"],
766
+ "mhr": ["Категория", "Категорий"],
767
+ "min": ["Kategori"],
768
+ "mk": ["Категорија"],
769
+ "ml": ["വിഭാഗം", "വി", "വർഗ്ഗം", "വ"],
770
+ "mn": ["Ангилал"],
771
+ "mr": ["वर्ग"],
772
+ "mrj": ["Категори", "Категория"],
773
+ "ms": ["Kategori"],
774
+ "mt": ["Kategorija"],
775
+ "mwl": ["Catadorie", "Categoria"],
776
+ "my": ["ကဏ္ဍ"],
777
+ "myv": ["Категория"],
778
+ "mzn": ["رج", "رده"],
779
+ "nah": ["Neneuhcāyōtl", "Categoría"],
780
+ "nap": ["Categurìa", "Categoria"],
781
+ "nds": ["Kategorie"],
782
+ "nds-nl": ["Categorie", "Kattegerie", "Kategorie"],
783
+ "ne": ["श्रेणी"],
784
+ "new": ["पुचः"],
785
+ "nl": ["Categorie"],
786
+ "nn": ["Kategori"],
787
+ "no": ["Kategori"],
788
+ "nrm": ["Catégorie"],
789
+ "nso": ["Setensele"],
790
+ "nv": ["Tʼááłáhági_átʼéego", "Tʼááłáhági átʼéego"],
791
+ "oc": ["Categoria"],
792
+ "olo": ["Kategourii"],
793
+ "or": ["ବିଭାଗ", "ଶ୍ରେଣୀ"],
794
+ "os": ["Категори"],
795
+ "pa": ["ਸ਼੍ਰੇਣੀ"],
796
+ "pcd": ["Catégorie"],
797
+ "pdc": ["Abdeeling", "Kategorie"],
798
+ "pfl": ["Kadegorie", "Sachgrubb", "Kategorie"],
799
+ "pi": ["विभाग"],
800
+ "pl": ["Kategoria"],
801
+ "pms": ["Categorìa"],
802
+ "pnb": ["گٹھ"],
803
+ "pnt": ["Κατηγορίαν"],
804
+ "ps": ["وېشنيزه"],
805
+ "pt": ["Categoria"],
806
+ "qu": ["Katiguriya"],
807
+ "rm": ["Categoria"],
808
+ "rmy": ["Shopni"],
809
+ "ro": ["Categorie"],
810
+ "roa-rup": ["Categorie"],
811
+ "roa-tara": ["Categoria"],
812
+ "ru": ["Категория", "К"],
813
+ "rue": ["Категория", "Катеґорія"],
814
+ "rw": ["Ikiciro"],
815
+ "sa": ["वर्गः"],
816
+ "sah": ["Категория"],
817
+ "sat": ["ᱛᱷᱚᱠ"],
818
+ "sc": ["Categoria"],
819
+ "scn": ["Catigurìa"],
820
+ "sd": ["زمرو"],
821
+ "se": ["Kategoriija"],
822
+ "sg": ["Catégorie"],
823
+ "sh": ["Kategorija", "Категорија"],
824
+ "si": ["ප්‍රවර්ගය"],
825
+ "sk": ["Kategória"],
826
+ "sl": ["Kategorija"],
827
+ "sq": ["Kategoria", "Kategori"],
828
+ "sr": ["Kategorija", "Категорија"],
829
+ "srn": ["Categorie", "Guru"],
830
+ "stq": ["Kategorie"],
831
+ "su": ["Kategori"],
832
+ "sv": ["Kategori"],
833
+ "sw": ["Jamii"],
834
+ "szl": ["Kategoryjo", "Kategoria"],
835
+ "ta": ["பகுப்பு"],
836
+ "tcy": ["ವರ್ಗೊ"],
837
+ "te": ["వర్గం"],
838
+ "tet": ["Kategoría", "Kategoria"],
839
+ "tg": ["Гурӯҳ"],
840
+ "th": ["หมวดหมู่"],
841
+ "ti": ["መደብ"],
842
+ "tk": ["Kategoriýa"],
843
+ "tl": ["Kategorya", "Kaurian"],
844
+ "tpi": ["Grup"],
845
+ "tr": ["Kategori", "KAT"],
846
+ "tt": ["Төркем", "Törkem", "Категория"],
847
+ "ty": ["Catégorie"],
848
+ "tyv": ["Аңгылал", "Категория"],
849
+ "udm": ["Категория"],
850
+ "ug": ["تۈر"],
851
+ "uk": ["Категория", "Категорія"],
852
+ "ur": ["زمرہ"],
853
+ "uz": ["Turkum", "Kategoriya"],
854
+ "vec": ["Categoria"],
855
+ "vep": ["Kategorii"],
856
+ "vi": ["Thể_loại", "Thể loại"],
857
+ "vls": ["Categorie"],
858
+ "vo": ["Klad"],
859
+ "wa": ["Categoreye"],
860
+ "war": ["Kaarangay"],
861
+ "wo": ["Wàll", "Catégorie"],
862
+ "wuu": ["分类"],
863
+ "xal": ["Янз", "Әәшл"],
864
+ "xmf": ["კატეგორია"],
865
+ "yi": ["קאטעגאריע", "קאַטעגאָריע"],
866
+ "yo": ["Ẹ̀ka"],
867
+ "za": ["分类"],
868
+ "zea": ["Categorie"],
869
+ "zh": ["分类", "分類", "CAT"],
870
+ "zh-classical": ["分類", "CAT"],
871
+ "zh-min-nan": ["分類", "Lūi-pia̍t"],
872
+ "zh-yue": ["分类", "分類", "类", "類"],
873
+ }
874
+
875
  _BASE_URL_TMPL = "https://dumps.wikimedia.org/{lang}wiki/{date}/"
876
  _INFO_FILE = "dumpstatus.json"
877
 
878
 
879
+ _VERSION = datasets.Version("2.0.0", "")
880
+
881
+
882
  class WikipediaConfig(datasets.BuilderConfig):
883
  """BuilderConfig for Wikipedia."""
884
 
885
+ def __init__(self, language=None, date=None, version=_VERSION, **kwargs):
886
  """BuilderConfig for Wikipedia.
887
 
888
  Args:
 
891
  available dates can be found at https://dumps.wikimedia.org/enwiki/.
892
  **kwargs: keyword arguments forwarded to super.
893
  """
894
+ super().__init__(
895
  name=f"{date}.{language}",
896
  description=f"Wikipedia dataset for {language}, parsed from {date} dump.",
897
+ version=version,
898
  **kwargs,
899
  )
900
  self.date = date
901
  self.language = language
902
 
903
 
904
+ _DATE = "20220301"
905
 
906
 
907
  class Wikipedia(datasets.BeamBasedBuilder):
 
911
  BUILDER_CONFIG_CLASS = WikipediaConfig
912
  BUILDER_CONFIGS = [
913
  WikipediaConfig(
 
914
  language=lang,
915
+ date=_DATE,
916
  ) # pylint:disable=g-complex-comprehension
917
  for lang in WIKIPEDIA_LANGUAGES
918
  ]
 
920
  def _info(self):
921
  return datasets.DatasetInfo(
922
  description=_DESCRIPTION,
923
+ features=datasets.Features(
924
+ {
925
+ "id": datasets.Value("string"),
926
+ "url": datasets.Value("string"),
927
+ "title": datasets.Value("string"),
928
+ "text": datasets.Value("string"),
929
+ }
930
+ ),
931
  # No default supervised_keys.
932
  supervised_keys=None,
933
  homepage="https://dumps.wikimedia.org",
 
993
  title = elem.find(f"./{namespace}title").text
994
  ns = elem.find(f"./{namespace}ns").text
995
  id_ = elem.find(f"./{namespace}id").text
996
+ red_ = elem.find(f"./{namespace}redirect")
997
 
998
  # Filter pages that are not in the "main" namespace.
999
  if ns != "0":
 
1004
  elem.clear()
1005
 
1006
  # Filter redirects.
1007
+ if raw_content is None or red_ is not None:
1008
  beam.metrics.Metrics.counter(language, "filtered-redirects").inc()
1009
  continue
1010
 
1011
  beam.metrics.Metrics.counter(language, "extracted-examples").inc()
1012
  yield (id_, title, raw_content)
1013
 
1014
+ def _clean_content(inputs, language):
1015
  """Cleans raw wikicode to extract text."""
1016
  id_, title, raw_content = inputs
1017
  try:
1018
+ text = _parse_and_clean_wikicode(raw_content, parser=mwparserfromhell, language=language)
1019
  except (mwparserfromhell.parser.ParserError) as e:
1020
  beam.metrics.Metrics.counter(language, "parser-error").inc()
1021
  logger.error("mwparserfromhell ParseError: %s", e)
 
1025
  beam.metrics.Metrics.counter(language, "empty-clean-examples").inc()
1026
  return
1027
 
1028
+ url = _construct_url(title, language)
1029
+
1030
  beam.metrics.Metrics.counter(language, "cleaned-examples").inc()
1031
 
1032
+ yield id_, {"id": id_, "url": url, "title": title, "text": text}
1033
 
1034
  return (
1035
  pipeline
1036
  | "Initialize" >> beam.Create(filepaths)
1037
  | "Extract content" >> beam.FlatMap(_extract_content)
1038
  | "Distribute" >> beam.transforms.Reshuffle()
1039
+ | "Clean content" >> beam.FlatMap(_clean_content, language=language)
1040
  )
1041
 
1042
 
1043
+ def _parse_and_clean_wikicode(raw_content, parser, language):
1044
  """Strips formatting and unwanted sections from raw page content."""
1045
  wikicode = parser.parse(raw_content)
1046
 
1047
+ # Filters for magic words that are parser instructions -- e.g., __NOTOC__
1048
+ re_rm_magic = re.compile("__[A-Z]*__", flags=re.UNICODE)
1049
+
1050
+ # Filters for file/image links.
1051
+ media_prefixes = "|".join(["File", "Image", "Media"] + MEDIA_ALIASES.get(language, []))
1052
+ re_rm_wikilink = re.compile(f"^(?:{media_prefixes}):", flags=re.IGNORECASE | re.UNICODE)
1053
 
1054
  def rm_wikilink(obj):
1055
  return bool(re_rm_wikilink.match(str(obj.title)))
1056
 
1057
+ # Filters for references and tables
1058
  def rm_tag(obj):
1059
  return str(obj.tag) in {"ref", "table"}
1060
 
1061
+ # Leave category links in-place but remove the category prefixes
1062
+ cat_prefixes = "|".join(["Category"] + CAT_ALIASES.get(language, []))
1063
+ re_clean_wikilink = re.compile(f"^(?:{cat_prefixes}):", flags=re.IGNORECASE | re.UNICODE)
1064
+
1065
+ def is_category(obj):
1066
+ return bool(re_clean_wikilink.match(str(obj.title)))
1067
+
1068
+ def clean_wikilink(obj):
1069
+ text = obj.__strip__()
1070
+ text = re.sub(re_clean_wikilink, "", text)
1071
+ obj.text = text
1072
+
1073
+ def try_replace_obj(obj):
1074
+ try:
1075
+ clean_wikilink(obj)
1076
+ except ValueError:
1077
+ # For unknown reasons, objects are sometimes not found.
1078
+ pass
1079
 
1080
  def try_remove_obj(obj, section):
1081
  try:
 
1087
  section_text = []
1088
  # Filter individual sections to clean.
1089
  for section in wikicode.get_sections(flat=True, include_lead=True, include_headings=True):
1090
+ for obj in section.ifilter_wikilinks(recursive=True):
1091
+ if rm_wikilink(obj):
1092
+ try_remove_obj(obj, section)
1093
+ elif is_category(obj):
1094
+ try_replace_obj(obj)
1095
  for obj in section.ifilter_tags(matches=rm_tag, recursive=True):
1096
  try_remove_obj(obj, section)
1097
 
1098
+ section_text.append(re.sub(re_rm_magic, "", section.strip_code().strip()))
1099
  return "\n\n".join(section_text)
1100
+
1101
+
1102
+ def _construct_url(title, language):
1103
+ # See: https://meta.wikimedia.org/wiki/Help:URL
1104
+ return f"https://{language}.wikipedia.org/wiki/{quote(title)}"