Datasets:

ArXiv:
License:
albertvillanova HF staff commited on
Commit
8c658c9
1 Parent(s): 0d4bcf5

Add all language configurations (#6)

Browse files

- Add all language configurations (dd27e7fd872cd87dca51796b47ac6b57f4f2f6aa)
- Add list of languages to dataset card (7517c8e316b3d5f353ff752212442efc5878240c)

Files changed (2) hide show
  1. README.md +117 -5
  2. cc100.py +118 -4
README.md CHANGED
@@ -228,11 +228,123 @@ CC-100 is mainly intended to pretrain language models and word representations.
228
 
229
  ### Languages
230
 
231
- To load a language which isn't part of the config, all you need to do is specify the language code in the config.
232
- You can find the valid languages in Homepage section of Dataset Description: https://data.statmt.org/cc-100/
233
- E.g.
234
-
235
- `dataset = load_dataset("cc100", lang="en")`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
 
237
  ## Dataset Structure
238
 
 
228
 
229
  ### Languages
230
 
231
+ The languages in the dataset are:
232
+ - af: Afrikaans (305M)
233
+ - am: Amharic (133M)
234
+ - ar: Arabic (5.4G)
235
+ - as: Assamese (7.6M)
236
+ - az: Azerbaijani (1.3G)
237
+ - be: Belarusian (692M)
238
+ - bg: Bulgarian (9.3G)
239
+ - bn: Bengali (860M)
240
+ - bn_rom: Bengali Romanized (164M)
241
+ - br: Breton (21M)
242
+ - bs: Bosnian (18M)
243
+ - ca: Catalan (2.4G)
244
+ - cs: Czech (4.4G)
245
+ - cy: Welsh (179M)
246
+ - da: Danish (12G)
247
+ - de: German (18G)
248
+ - el: Greek (7.4G)
249
+ - en: English (82G)
250
+ - eo: Esperanto (250M)
251
+ - es: Spanish (14G)
252
+ - et: Estonian (1.7G)
253
+ - eu: Basque (488M)
254
+ - fa: Persian (20G)
255
+ - ff: Fulah (3.1M)
256
+ - fi: Finnish (15G)
257
+ - fr: French (14G)
258
+ - fy: Frisian (38M)
259
+ - ga: Irish (108M)
260
+ - gd: Scottish Gaelic (22M)
261
+ - gl: Galician (708M)
262
+ - gn: Guarani (1.5M)
263
+ - gu: Gujarati (242M)
264
+ - ha: Hausa (61M)
265
+ - he: Hebrew (6.1G)
266
+ - hi: Hindi (2.5G)
267
+ - hi_rom: Hindi Romanized (129M)
268
+ - hr: Croatian (5.7G)
269
+ - ht: Haitian (9.1M)
270
+ - hu: Hungarian (15G)
271
+ - hy: Armenian (776M)
272
+ - id: Indonesian (36G)
273
+ - ig: Igbo (6.6M)
274
+ - is: Icelandic (779M)
275
+ - it: Italian (7.8G)
276
+ - ja: Japanese (15G)
277
+ - jv: Javanese (37M)
278
+ - ka: Georgian (1.1G)
279
+ - kk: Kazakh (889M)
280
+ - km: Khmer (153M)
281
+ - kn: Kannada (360M)
282
+ - ko: Korean (14G)
283
+ - ku: Kurdish (90M)
284
+ - ky: Kyrgyz (173M)
285
+ - la: Latin (609M)
286
+ - lg: Ganda (7.3M)
287
+ - li: Limburgish (2.2M)
288
+ - ln: Lingala (2.3M)
289
+ - lo: Lao (63M)
290
+ - lt: Lithuanian (3.4G)
291
+ - lv: Latvian (2.1G)
292
+ - mg: Malagasy (29M)
293
+ - mk: Macedonian (706M)
294
+ - ml: Malayalam (831M)
295
+ - mn: Mongolian (397M)
296
+ - mr: Marathi (334M)
297
+ - ms: Malay (2.1G)
298
+ - my: Burmese (46M)
299
+ - my_zaw: Burmese (Zawgyi) (178M)
300
+ - ne: Nepali (393M)
301
+ - nl: Dutch (7.9G)
302
+ - no: Norwegian (13G)
303
+ - ns: Northern Sotho (1.8M)
304
+ - om: Oromo (11M)
305
+ - or: Oriya (56M)
306
+ - pa: Punjabi (90M)
307
+ - pl: Polish (12G)
308
+ - ps: Pashto (107M)
309
+ - pt: Portuguese (13G)
310
+ - qu: Quechua (1.5M)
311
+ - rm: Romansh (4.8M)
312
+ - ro: Romanian (16G)
313
+ - ru: Russian (46G)
314
+ - sa: Sanskrit (44M)
315
+ - sc: Sardinian (143K)
316
+ - sd: Sindhi (67M)
317
+ - si: Sinhala (452M)
318
+ - sk: Slovak (6.1G)
319
+ - sl: Slovenian (2.8G)
320
+ - so: Somali (78M)
321
+ - sq: Albanian (1.3G)
322
+ - sr: Serbian (1.5G)
323
+ - ss: Swati (86K)
324
+ - su: Sundanese (15M)
325
+ - sv: Swedish (21G)
326
+ - sw: Swahili (332M)
327
+ - ta: Tamil (1.3G)
328
+ - ta_rom: Tamil Romanized (68M)
329
+ - te: Telugu (536M)
330
+ - te_rom: Telugu Romanized (79M)
331
+ - th: Thai (8.7G)
332
+ - tl: Tagalog (701M)
333
+ - tn: Tswana (8.0M)
334
+ - tr: Turkish (5.4G)
335
+ - ug: Uyghur (46M)
336
+ - uk: Ukrainian (14G)
337
+ - ur: Urdu (884M)
338
+ - ur_rom: Urdu Romanized (141M)
339
+ - uz: Uzbek (155M)
340
+ - vi: Vietnamese (28G)
341
+ - wo: Wolof (3.6M)
342
+ - xh: Xhosa (25M)
343
+ - yi: Yiddish (51M)
344
+ - yo: Yoruba (1.1M)
345
+ - zh-Hans: Chinese (Simplified) (14G)
346
+ - zh-Hant: Chinese (Traditional) (5.3G)
347
+ - zu: Zulu (4.3M)
348
 
349
  ## Dataset Structure
350
 
cc100.py CHANGED
@@ -84,10 +84,124 @@ _CITATION = """\
84
 
85
  _VERSION = "1.0.0"
86
  _BASE_URL = "https://data.statmt.org/cc-100/{}.txt.xz"
87
-
88
- # Please note: due to the size of the data, only few examples are provided.
89
- # However, you can pass the lang parameter in config to fetch data of any language in the corpus
90
- _LANGUAGES = ["am", "sr", "ka"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
 
92
 
93
  class Cc100Config(datasets.BuilderConfig):
 
84
 
85
  _VERSION = "1.0.0"
86
  _BASE_URL = "https://data.statmt.org/cc-100/{}.txt.xz"
87
+ _LANGUAGES = [
88
+ "af",
89
+ "am",
90
+ "ar",
91
+ "as",
92
+ "az",
93
+ "be",
94
+ "bg",
95
+ "bn",
96
+ "bn_rom",
97
+ "br",
98
+ "bs",
99
+ "ca",
100
+ "cs",
101
+ "cy",
102
+ "da",
103
+ "de",
104
+ "el",
105
+ "en",
106
+ "eo",
107
+ "es",
108
+ "et",
109
+ "eu",
110
+ "fa",
111
+ "ff",
112
+ "fi",
113
+ "fr",
114
+ "fy",
115
+ "ga",
116
+ "gd",
117
+ "gl",
118
+ "gn",
119
+ "gu",
120
+ "ha",
121
+ "he",
122
+ "hi",
123
+ "hi_rom",
124
+ "hr",
125
+ "ht",
126
+ "hu",
127
+ "hy",
128
+ "id",
129
+ "ig",
130
+ "is",
131
+ "it",
132
+ "ja",
133
+ "jv",
134
+ "ka",
135
+ "kk",
136
+ "km",
137
+ "kn",
138
+ "ko",
139
+ "ku",
140
+ "ky",
141
+ "la",
142
+ "lg",
143
+ "li",
144
+ "ln",
145
+ "lo",
146
+ "lt",
147
+ "lv",
148
+ "mg",
149
+ "mk",
150
+ "ml",
151
+ "mn",
152
+ "mr",
153
+ "ms",
154
+ "my",
155
+ "my_zaw",
156
+ "ne",
157
+ "nl",
158
+ "no",
159
+ "ns",
160
+ "om",
161
+ "or",
162
+ "pa",
163
+ "pl",
164
+ "ps",
165
+ "pt",
166
+ "qu",
167
+ "rm",
168
+ "ro",
169
+ "ru",
170
+ "sa",
171
+ "sc",
172
+ "sd",
173
+ "si",
174
+ "sk",
175
+ "sl",
176
+ "so",
177
+ "sq",
178
+ "sr",
179
+ "ss",
180
+ "su",
181
+ "sv",
182
+ "sw",
183
+ "ta",
184
+ "ta_rom",
185
+ "te",
186
+ "te_rom",
187
+ "th",
188
+ "tl",
189
+ "tn",
190
+ "tr",
191
+ "ug",
192
+ "uk",
193
+ "ur",
194
+ "ur_rom",
195
+ "uz",
196
+ "vi",
197
+ "wo",
198
+ "xh",
199
+ "yi",
200
+ "yo",
201
+ "zh-Hans",
202
+ "zh-Hant",
203
+ "zu",
204
+ ]
205
 
206
 
207
  class Cc100Config(datasets.BuilderConfig):