Datasets:

Modalities:
Text
Formats:
parquet
Libraries:
Datasets
pandas
License:
parquet-converter commited on
Commit
653fdf8
·
1 Parent(s): 35ac7b2

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,27 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,610 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - crowdsourced
4
- - expert-generated
5
- language_creators:
6
- - found
7
- language:
8
- - ace
9
- - af
10
- - ak
11
- - am
12
- - an
13
- - ang
14
- - ar
15
- - ary
16
- - as
17
- - ast
18
- - az
19
- - ba
20
- - bal
21
- - be
22
- - bem
23
- - ber
24
- - bg
25
- - bho
26
- - bn
27
- - bo
28
- - br
29
- - brx
30
- - bs
31
- - bua
32
- - byn
33
- - ca
34
- - ce
35
- - ceb
36
- - chr
37
- - ckb
38
- - co
39
- - crh
40
- - cs
41
- - csb
42
- - cv
43
- - cy
44
- - da
45
- - de
46
- - dsb
47
- - dv
48
- - dz
49
- - el
50
- - en
51
- - eo
52
- - es
53
- - et
54
- - eu
55
- - fa
56
- - ff
57
- - fi
58
- - fil
59
- - fo
60
- - fr
61
- - frm
62
- - frp
63
- - fur
64
- - fy
65
- - ga
66
- - gd
67
- - gl
68
- - gn
69
- - grc
70
- - gu
71
- - guc
72
- - gv
73
- - ha
74
- - haw
75
- - he
76
- - hi
77
- - hil
78
- - hne
79
- - hr
80
- - hsb
81
- - ht
82
- - hu
83
- - hy
84
- - ia
85
- - id
86
- - ig
87
- - io
88
- - is
89
- - it
90
- - iu
91
- - ja
92
- - jbo
93
- - jv
94
- - ka
95
- - kab
96
- - kg
97
- - kk
98
- - kl
99
- - km
100
- - kn
101
- - ko
102
- - kok
103
- - ks
104
- - ksh
105
- - ku
106
- - kw
107
- - ky
108
- - la
109
- - lb
110
- - lg
111
- - li
112
- - lij
113
- - lld
114
- - ln
115
- - lo
116
- - lt
117
- - ltg
118
- - lv
119
- - mai
120
- - mg
121
- - mh
122
- - mhr
123
- - mi
124
- - miq
125
- - mk
126
- - ml
127
- - mn
128
- - mr
129
- - ms
130
- - mt
131
- - mus
132
- - my
133
- - nan
134
- - nap
135
- - nb
136
- - nds
137
- - ne
138
- - nhn
139
- - nl
140
- - nn
141
- - 'no'
142
- - nso
143
- - ny
144
- - oc
145
- - om
146
- - or
147
- - os
148
- - pa
149
- - pam
150
- - pap
151
- - pl
152
- - pms
153
- - pmy
154
- - ps
155
- - pt
156
- - qu
157
- - rm
158
- - ro
159
- - rom
160
- - ru
161
- - rw
162
- - sa
163
- - sc
164
- - sco
165
- - sd
166
- - se
167
- - shn
168
- - shs
169
- - si
170
- - sk
171
- - sl
172
- - sm
173
- - sml
174
- - sn
175
- - so
176
- - son
177
- - sq
178
- - sr
179
- - st
180
- - sv
181
- - sw
182
- - syr
183
- - szl
184
- - ta
185
- - te
186
- - tet
187
- - tg
188
- - th
189
- - ti
190
- - tk
191
- - tl
192
- - tlh
193
- - tr
194
- - trv
195
- - ts
196
- - tt
197
- - ug
198
- - uk
199
- - ur
200
- - uz
201
- - ve
202
- - vec
203
- - vi
204
- - wa
205
- - wae
206
- - wo
207
- - xal
208
- - xh
209
- - yi
210
- - yo
211
- - zh
212
- - zu
213
- - zza
214
- language_bcp47:
215
- - ar-SY
216
- - bn-IN
217
- - de-AT
218
- - de-DE
219
- - en-AU
220
- - en-CA
221
- - en-GB
222
- - en-NZ
223
- - en-US
224
- - es-AR
225
- - es-CL
226
- - es-CO
227
- - es-CR
228
- - es-DO
229
- - es-EC
230
- - es-ES
231
- - es-GT
232
- - es-HN
233
- - es-MX
234
- - es-NI
235
- - es-PA
236
- - es-PE
237
- - es-PR
238
- - es-SV
239
- - es-UY
240
- - es-VE
241
- - fa-AF
242
- - fr-CA
243
- - fr-FR
244
- - nl-NL
245
- - pt-BR
246
- - pt-PT
247
- - ta-LK
248
- - zh-CN
249
- - zh-HK
250
- - zh-TW
251
- license:
252
- - bsd-3-clause
253
- multilinguality:
254
- - multilingual
255
- size_categories:
256
- - 10K<n<100K
257
- - 1K<n<10K
258
- - n<1K
259
- source_datasets:
260
- - original
261
- task_categories:
262
- - translation
263
- task_ids: []
264
- paperswithcode_id: null
265
- pretty_name: Opus Ubuntu
266
- configs:
267
- - as-bs
268
- - az-cs
269
- - bg-de
270
- - bn-ga
271
- - br-es_PR
272
- - br-hi
273
- - br-la
274
- - br-uz
275
- - br-yi
276
- - bs-szl
277
- dataset_info:
278
- - config_name: as-bs
279
- features:
280
- - name: id
281
- dtype: string
282
- - name: translation
283
- dtype:
284
- translation:
285
- languages:
286
- - as
287
- - bs
288
- splits:
289
- - name: train
290
- num_bytes: 1037811
291
- num_examples: 8583
292
- download_size: 229723
293
- dataset_size: 1037811
294
- - config_name: az-cs
295
- features:
296
- - name: id
297
- dtype: string
298
- - name: translation
299
- dtype:
300
- translation:
301
- languages:
302
- - az
303
- - cs
304
- splits:
305
- - name: train
306
- num_bytes: 17821
307
- num_examples: 293
308
- download_size: 9501
309
- dataset_size: 17821
310
- - config_name: bg-de
311
- features:
312
- - name: id
313
- dtype: string
314
- - name: translation
315
- dtype:
316
- translation:
317
- languages:
318
- - bg
319
- - de
320
- splits:
321
- - name: train
322
- num_bytes: 27627
323
- num_examples: 184
324
- download_size: 9994
325
- dataset_size: 27627
326
- - config_name: br-es_PR
327
- features:
328
- - name: id
329
- dtype: string
330
- - name: translation
331
- dtype:
332
- translation:
333
- languages:
334
- - br
335
- - es_PR
336
- splits:
337
- - name: train
338
- num_bytes: 8875
339
- num_examples: 125
340
- download_size: 5494
341
- dataset_size: 8875
342
- - config_name: bn-ga
343
- features:
344
- - name: id
345
- dtype: string
346
- - name: translation
347
- dtype:
348
- translation:
349
- languages:
350
- - bn
351
- - ga
352
- splits:
353
- - name: train
354
- num_bytes: 584629
355
- num_examples: 7324
356
- download_size: 142710
357
- dataset_size: 584629
358
- - config_name: br-hi
359
- features:
360
- - name: id
361
- dtype: string
362
- - name: translation
363
- dtype:
364
- translation:
365
- languages:
366
- - br
367
- - hi
368
- splits:
369
- - name: train
370
- num_bytes: 1300081
371
- num_examples: 15551
372
- download_size: 325415
373
- dataset_size: 1300081
374
- - config_name: br-la
375
- features:
376
- - name: id
377
- dtype: string
378
- - name: translation
379
- dtype:
380
- translation:
381
- languages:
382
- - br
383
- - la
384
- splits:
385
- - name: train
386
- num_bytes: 29341
387
- num_examples: 527
388
- download_size: 11565
389
- dataset_size: 29341
390
- - config_name: bs-szl
391
- features:
392
- - name: id
393
- dtype: string
394
- - name: translation
395
- dtype:
396
- translation:
397
- languages:
398
- - bs
399
- - szl
400
- splits:
401
- - name: train
402
- num_bytes: 41116
403
- num_examples: 646
404
- download_size: 18134
405
- dataset_size: 41116
406
- - config_name: br-uz
407
- features:
408
- - name: id
409
- dtype: string
410
- - name: translation
411
- dtype:
412
- translation:
413
- languages:
414
- - br
415
- - uz
416
- splits:
417
- - name: train
418
- num_bytes: 110278
419
- num_examples: 1416
420
- download_size: 33595
421
- dataset_size: 110278
422
- - config_name: br-yi
423
- features:
424
- - name: id
425
- dtype: string
426
- - name: translation
427
- dtype:
428
- translation:
429
- languages:
430
- - br
431
- - yi
432
- splits:
433
- - name: train
434
- num_bytes: 172846
435
- num_examples: 2799
436
- download_size: 41956
437
- dataset_size: 172846
438
- ---
439
-
440
- # Dataset Card for Opus Ubuntu
441
-
442
- ## Table of Contents
443
- - [Dataset Description](#dataset-description)
444
- - [Dataset Summary](#dataset-summary)
445
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
446
- - [Languages](#languages)
447
- - [Dataset Structure](#dataset-structure)
448
- - [Data Instances](#data-instances)
449
- - [Data Fields](#data-fields)
450
- - [Data Splits](#data-splits)
451
- - [Dataset Creation](#dataset-creation)
452
- - [Curation Rationale](#curation-rationale)
453
- - [Source Data](#source-data)
454
- - [Annotations](#annotations)
455
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
456
- - [Considerations for Using the Data](#considerations-for-using-the-data)
457
- - [Social Impact of Dataset](#social-impact-of-dataset)
458
- - [Discussion of Biases](#discussion-of-biases)
459
- - [Other Known Limitations](#other-known-limitations)
460
- - [Additional Information](#additional-information)
461
- - [Dataset Curators](#dataset-curators)
462
- - [Licensing Information](#licensing-information)
463
- - [Citation Information](#citation-information)
464
- - [Contributions](#contributions)
465
-
466
- ## Dataset Description
467
-
468
- - **Homepage:** http://opus.nlpl.eu/Ubuntu.php
469
- - **Repository:** None
470
- - **Paper:** http://www.lrec-conf.org/proceedings/lrec2012/pdf/463_Paper.pdf
471
- - **Leaderboard:** [More Information Needed]
472
- - **Point of Contact:** [More Information Needed]
473
-
474
- ### Dataset Summary
475
-
476
- These are translations of the Ubuntu software package messages, donated by the Ubuntu community.
477
-
478
- To load a language pair which isn't part of the config, all you need to do is specify the language code as pairs.
479
- You can find the valid pairs in Homepage section of Dataset Description: http://opus.nlpl.eu/Ubuntu.php
480
- E.g.
481
-
482
- `dataset = load_dataset("opus_ubuntu", lang1="it", lang2="pl")`
483
-
484
-
485
- ### Supported Tasks and Leaderboards
486
-
487
- [More Information Needed]
488
-
489
- ### Languages
490
-
491
- [More Information Needed]
492
-
493
- ## Dataset Structure
494
-
495
- ### Data Instances
496
-
497
- Example instance:
498
-
499
- ```
500
- {
501
- 'id': '0',
502
- 'translation': {
503
- 'it': 'Comprende Gmail, Google Docs, Google+, YouTube e Picasa',
504
- 'pl': 'Zawiera Gmail, Google Docs, Google+, YouTube oraz Picasa'
505
- }
506
- }
507
- ```
508
-
509
- ### Data Fields
510
-
511
- Each instance has two fields:
512
- - **id**: the id of the example
513
- - **translation**: a dictionary containing translated texts in two languages.
514
-
515
- ### Data Splits
516
-
517
- Each subset simply consists in a train set. We provide the number of examples for certain language pairs:
518
-
519
- | | train |
520
- |:---------|--------:|
521
- | as-bs | 8583 |
522
- | az-cs | 293 |
523
- | bg-de | 184 |
524
- | br-es_PR | 125 |
525
- | bn-ga | 7324 |
526
- | br-hi | 15551 |
527
- | br-la | 527 |
528
- | bs-szl | 646 |
529
- | br-uz | 1416 |
530
- | br-yi | 2799 |
531
-
532
- ## Dataset Creation
533
-
534
- ### Curation Rationale
535
-
536
- [More Information Needed]
537
-
538
- ### Source Data
539
-
540
- [More Information Needed]
541
-
542
- #### Initial Data Collection and Normalization
543
-
544
- [More Information Needed]
545
-
546
- #### Who are the source language producers?
547
-
548
- [More Information Needed]
549
-
550
- ### Annotations
551
-
552
- [More Information Needed]
553
-
554
- #### Annotation process
555
-
556
- [More Information Needed]
557
-
558
- #### Who are the annotators?
559
-
560
- [More Information Needed]
561
-
562
- ### Personal and Sensitive Information
563
-
564
- [More Information Needed]
565
-
566
- ## Considerations for Using the Data
567
-
568
- ### Social Impact of Dataset
569
-
570
- [More Information Needed]
571
-
572
- ### Discussion of Biases
573
-
574
- [More Information Needed]
575
-
576
- ### Other Known Limitations
577
-
578
- [More Information Needed]
579
-
580
- ## Additional Information
581
-
582
- ### Dataset Curators
583
-
584
- [More Information Needed]
585
-
586
- ### Licensing Information
587
-
588
- BSD "Revised" license (see (https://help.launchpad.net/Legal#Translations_copyright)[https://help.launchpad.net/Legal#Translations_copyright])
589
-
590
- ### Citation Information
591
-
592
- ```bibtex
593
- @InProceedings{TIEDEMANN12.463,
594
- author = {J{\"o}rg Tiedemann},
595
- title = {Parallel Data, Tools and Interfaces in OPUS},
596
- booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},
597
- year = {2012},
598
- month = {may},
599
- date = {23-25},
600
- address = {Istanbul, Turkey},
601
- editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},
602
- publisher = {European Language Resources Association (ELRA)},
603
- isbn = {978-2-9517408-7-7},
604
- language = {english}
605
- }
606
- ```
607
-
608
- ### Contributions
609
-
610
- Thanks to [@rkc007](https://github.com/rkc007) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
as-bs/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4c0200950dbdcf3550fcf5fb597085431222f98fe7ca76e9fadf479b078ab29
3
+ size 470873
az-cs/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8b1c63b12419db15f96636e1dbfea783951430144938cf93a96e1186099ed75
3
+ size 14636
bg-de/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dba004e97a0835ecbce305a5ea571632db912b10ccb41140d5721f101df83753
3
+ size 16277
bn-ga/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3349ea4d81fd4d00fa6c2523ed47b96f51b566ee09761c3f3a27f679b8ee9a20
3
+ size 272246
br-es_PR/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8834a7d586404635eb860c274003c2ec4b2e6b0ec5deaeb1497c5ef8ddd8a54
3
+ size 8193
br-hi/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0bea9db58196ac79042a857325265fa6310c7f6ddd21607437bff0ce21ce539d
3
+ size 641802
br-la/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e13464fe7f6b624c9999a3371567e69ef64fe3219dd8c55b007fbf2cd4889394
3
+ size 17722
br-uz/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:758a0b93dc1d51e233a6356d991852b9e8457f080d98dc8919fb75c586ad723e
3
+ size 62659
br-yi/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bdeeac977645e74f190a87ecb36f6677ef5571862548faaa471bc867f77ae52
3
+ size 77869
bs-szl/opus_ubuntu-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48d878b23175b4cf6ed36c01b9afaa698d4a0e3ba42902bc80427b0b30745c1a
3
+ size 30034
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"as-bs": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["as", "bs"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "as-bs", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1037811, "num_examples": 8583, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/as-bs.txt.zip": {"num_bytes": 229723, "checksum": "c161c28a947125784b1c0ac5077078a56e884fed2837d31d445eb4af9dafc2d0"}}, "download_size": 229723, "post_processing_size": null, "dataset_size": 1037811, "size_in_bytes": 1267534}, "az-cs": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["az", "cs"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "az-cs", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 17821, "num_examples": 293, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/az-cs.txt.zip": {"num_bytes": 9501, "checksum": "b4986820df296b519e225d8083ead1ce60fed986207d8cb5b448ffee56a175e6"}}, "download_size": 9501, "post_processing_size": null, "dataset_size": 17821, "size_in_bytes": 27322}, "bg-de": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["bg", "de"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "bg-de", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 27627, "num_examples": 184, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/bg-de.txt.zip": {"num_bytes": 9994, "checksum": "2dabaefcd9ca11ba6a315fc2e208682ff478655c34ce80a1bceff49b58abf896"}}, "download_size": 9994, "post_processing_size": null, "dataset_size": 27627, "size_in_bytes": 37621}, "br-es_PR": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["br", "es_PR"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "br-es_PR", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 8875, "num_examples": 125, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/br-es_PR.txt.zip": {"num_bytes": 5494, "checksum": "fe84c9308d4cbea7cf05fa7202a6a8018983e9cf150d0cbfa6954c2713d879c9"}}, "download_size": 5494, "post_processing_size": null, "dataset_size": 8875, "size_in_bytes": 14369}, "bn-ga": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["bn", "ga"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "bn-ga", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 584629, "num_examples": 7324, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/bn-ga.txt.zip": {"num_bytes": 142710, "checksum": "427fc72ef91e720fe3b322118313cdc35dc0e6867d6b0bb21f798770964113f0"}}, "download_size": 142710, "post_processing_size": null, "dataset_size": 584629, "size_in_bytes": 727339}, "br-hi": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["br", "hi"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "br-hi", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1300081, "num_examples": 15551, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/br-hi.txt.zip": {"num_bytes": 325415, "checksum": "ce9f786a4580eec408c98315c42c1bcce2b6b2ebe5e56a357bc7542ecbc3a21d"}}, "download_size": 325415, "post_processing_size": null, "dataset_size": 1300081, "size_in_bytes": 1625496}, "br-la": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["br", "la"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "br-la", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 29341, "num_examples": 527, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/br-la.txt.zip": {"num_bytes": 11565, "checksum": "5c16d6cda06ecd2c57c20a67ffba20bc0b4a0e211827481dad2f913b3d54c0e5"}}, "download_size": 11565, "post_processing_size": null, "dataset_size": 29341, "size_in_bytes": 40906}, "bs-szl": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["bs", "szl"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "bs-szl", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 41116, "num_examples": 646, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/bs-szl.txt.zip": {"num_bytes": 18134, "checksum": "39f0daeb68d222720f230d775561dca60fcae4a15ad40d7364ad6a2332d94171"}}, "download_size": 18134, "post_processing_size": null, "dataset_size": 41116, "size_in_bytes": 59250}, "br-uz": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["br", "uz"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "br-uz", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 110278, "num_examples": 1416, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/br-uz.txt.zip": {"num_bytes": 33595, "checksum": "69f3c1a90c2f2d97590b82ed5cbded98a4f003f32fa54f891a568760042c781b"}}, "download_size": 33595, "post_processing_size": null, "dataset_size": 110278, "size_in_bytes": 143873}, "br-yi": {"description": "A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net\n244 languages, 23,988 bitexts\ntotal number of files: 30,959\ntotal number of tokens: 29.84M\ntotal number of sentence fragments: 7.73M\n", "citation": "@InProceedings{TIEDEMANN12.463,\n author = {J\ufffdrg Tiedemann},\n title = {Parallel Data, Tools and Interfaces in OPUS},\n booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},\n year = {2012},\n month = {may},\n date = {23-25},\n address = {Istanbul, Turkey},\n editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},\n publisher = {European Language Resources Association (ELRA)},\n isbn = {978-2-9517408-7-7},\n language = {english}\n }\n", "homepage": "http://opus.nlpl.eu/Ubuntu.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["br", "yi"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_ubuntu", "config_name": "br-yi", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 172846, "num_examples": 2799, "dataset_name": "opus_ubuntu"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/br-yi.txt.zip": {"num_bytes": 41956, "checksum": "74941bbd3cda94ad0e6446a3bc2213c4068d85a7bcd953889d963a1816716c46"}}, "download_size": 41956, "post_processing_size": null, "dataset_size": 172846, "size_in_bytes": 214802}}
 
 
opus_ubuntu.py DELETED
@@ -1,132 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 HuggingFace Datasets Authors.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- # Lint as: python3
17
- import os
18
-
19
- import datasets
20
-
21
-
22
- _DESCRIPTION = """\
23
- A parallel corpus of Ubuntu localization files. Source: https://translations.launchpad.net
24
- 244 languages, 23,988 bitexts
25
- total number of files: 30,959
26
- total number of tokens: 29.84M
27
- total number of sentence fragments: 7.73M
28
- """
29
- _HOMEPAGE_URL = "http://opus.nlpl.eu/Ubuntu.php"
30
- _CITATION = """\
31
- @InProceedings{TIEDEMANN12.463,
32
- author = {J{\"o}rg Tiedemann},
33
- title = {Parallel Data, Tools and Interfaces in OPUS},
34
- booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},
35
- year = {2012},
36
- month = {may},
37
- date = {23-25},
38
- address = {Istanbul, Turkey},
39
- editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Mehmet Ugur Dogan and Bente Maegaard and Joseph Mariani and Jan Odijk and Stelios Piperidis},
40
- publisher = {European Language Resources Association (ELRA)},
41
- isbn = {978-2-9517408-7-7},
42
- language = {english}
43
- }
44
- """
45
-
46
- _VERSION = "1.0.0"
47
- _BASE_NAME = "Ubuntu.{}.{}"
48
- _BASE_URL = "https://object.pouta.csc.fi/OPUS-Ubuntu/v14.10/moses/{}-{}.txt.zip"
49
- # Please note that only few pairs are shown here. You can use config to generate data for all language pairs
50
- _LANGUAGE_PAIRS = [
51
- ("as", "bs"),
52
- ("az", "cs"),
53
- ("bg", "de"),
54
- ("br", "es_PR"),
55
- ("bn", "ga"),
56
- ("br", "hi"),
57
- ("br", "la"),
58
- ("bs", "szl"),
59
- ("br", "uz"),
60
- ("br", "yi"),
61
- ]
62
-
63
-
64
- class UbuntuConfig(datasets.BuilderConfig):
65
- def __init__(self, *args, lang1=None, lang2=None, **kwargs):
66
- super().__init__(
67
- *args,
68
- name=f"{lang1}-{lang2}",
69
- **kwargs,
70
- )
71
- self.lang1 = lang1
72
- self.lang2 = lang2
73
-
74
-
75
- class OpusUbuntu(datasets.GeneratorBasedBuilder):
76
- BUILDER_CONFIGS = [
77
- UbuntuConfig(
78
- lang1=lang1,
79
- lang2=lang2,
80
- description=f"Translating {lang1} to {lang2} or vice versa",
81
- version=datasets.Version(_VERSION),
82
- )
83
- for lang1, lang2 in _LANGUAGE_PAIRS
84
- ]
85
- BUILDER_CONFIG_CLASS = UbuntuConfig
86
-
87
- def _info(self):
88
- return datasets.DatasetInfo(
89
- description=_DESCRIPTION,
90
- features=datasets.Features(
91
- {
92
- "id": datasets.Value("string"),
93
- "translation": datasets.Translation(languages=(self.config.lang1, self.config.lang2)),
94
- },
95
- ),
96
- supervised_keys=None,
97
- homepage=_HOMEPAGE_URL,
98
- citation=_CITATION,
99
- )
100
-
101
- def _split_generators(self, dl_manager):
102
- def _base_url(lang1, lang2):
103
- return _BASE_URL.format(lang1, lang2)
104
-
105
- download_url = _base_url(self.config.lang1, self.config.lang2)
106
- path = dl_manager.download_and_extract(download_url)
107
- return [
108
- datasets.SplitGenerator(
109
- name=datasets.Split.TRAIN,
110
- gen_kwargs={"datapath": path},
111
- )
112
- ]
113
-
114
- def _generate_examples(self, datapath):
115
- l1, l2 = self.config.lang1, self.config.lang2
116
- folder = l1 + "-" + l2
117
- l1_file = _BASE_NAME.format(folder, l1)
118
- l2_file = _BASE_NAME.format(folder, l2)
119
- l1_path = os.path.join(datapath, l1_file)
120
- l2_path = os.path.join(datapath, l2_file)
121
- with open(l1_path, encoding="utf-8") as f1, open(l2_path, encoding="utf-8") as f2:
122
- for sentence_counter, (x, y) in enumerate(zip(f1, f2)):
123
- x = x.strip()
124
- y = y.strip()
125
- result = (
126
- sentence_counter,
127
- {
128
- "id": str(sentence_counter),
129
- "translation": {l1: x, l2: y},
130
- },
131
- )
132
- yield result