Datasets:
opus_gnome

Task Categories: translation
Multilinguality: multilingual
Language Creators: found
Annotations Creators: found
Source Datasets: original
Licenses: unknown
system commited on
Commit
91dc0fc
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,345 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - found
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - af
8
+ - am
9
+ - an
10
+ - ang
11
+ - ar
12
+ - ar_TN
13
+ - ara
14
+ - as
15
+ - ast
16
+ - az
17
+ - az_IR
18
+ - bal
19
+ - be
20
+ - bem
21
+ - bg
22
+ - bg_BG
23
+ - bn
24
+ - bn_IN
25
+ - bo
26
+ - br
27
+ - brx
28
+ - bs
29
+ - ca
30
+ - cat
31
+ - crh
32
+ - cs
33
+ - csb
34
+ - cy
35
+ - da
36
+ - da_DK
37
+ - de
38
+ - de_CH
39
+ - dv
40
+ - dz
41
+ - el
42
+ - en
43
+ - en_AU
44
+ - en_CA
45
+ - en_GB
46
+ - en_NZ
47
+ - en_US
48
+ - en_ZA
49
+ - eo
50
+ - es
51
+ - es_AR
52
+ - es_CL
53
+ - es_CO
54
+ - es_CR
55
+ - es_DO
56
+ - es_EC
57
+ - es_ES
58
+ - es_GT
59
+ - es_HN
60
+ - es_MX
61
+ - es_NI
62
+ - es_PA
63
+ - es_PE
64
+ - es_PR
65
+ - es_SV
66
+ - es_UY
67
+ - es_VE
68
+ - et
69
+ - eu
70
+ - fa
71
+ - fa_IR
72
+ - fi
73
+ - fo
74
+ - foo
75
+ - fr
76
+ - fur
77
+ - fy
78
+ - ga
79
+ - gd
80
+ - gl
81
+ - gn
82
+ - gr
83
+ - gu
84
+ - gv
85
+ - ha
86
+ - he
87
+ - hi
88
+ - hi_IN
89
+ - hr
90
+ - hu
91
+ - hy
92
+ - ia
93
+ - id
94
+ - ig
95
+ - io
96
+ - is
97
+ - it
98
+ - it_IT
99
+ - ja
100
+ - jbo
101
+ - ka
102
+ - kg
103
+ - kk
104
+ - km
105
+ - kn
106
+ - ko
107
+ - kr
108
+ - ks
109
+ - ku
110
+ - ky
111
+ - la
112
+ - lg
113
+ - li
114
+ - lo
115
+ - lt
116
+ - lv
117
+ - mai
118
+ - mg
119
+ - mi
120
+ - mk
121
+ - ml
122
+ - mn
123
+ - mr
124
+ - ms
125
+ - ms_MY
126
+ - mt
127
+ - mus
128
+ - my
129
+ - nb
130
+ - nb_NO
131
+ - nds
132
+ - ne
133
+ - nhn
134
+ - nl
135
+ - nn
136
+ - nn_NO
137
+ - n/o
138
+ - no_nb
139
+ - nqo
140
+ - nr
141
+ - nso
142
+ - oc
143
+ - or
144
+ - os
145
+ - pa
146
+ - pl
147
+ - ps
148
+ - pt
149
+ - pt_BR
150
+ - pt_PT
151
+ - quz
152
+ - ro
153
+ - ru
154
+ - rw
155
+ - si
156
+ - sk
157
+ - sl
158
+ - so
159
+ - sq
160
+ - sr
161
+ - sr_ME
162
+ - st
163
+ - sv
164
+ - sw
165
+ - szl
166
+ - ta
167
+ - te
168
+ - tg
169
+ - tg_TJ
170
+ - th
171
+ - tk
172
+ - tl
173
+ - tl_PH
174
+ - tmp
175
+ - tr
176
+ - tr_TR
177
+ - ts
178
+ - tt
179
+ - ug
180
+ - uk
181
+ - ur
182
+ - ur_PK
183
+ - uz
184
+ - vi
185
+ - vi_VN
186
+ - wa
187
+ - xh
188
+ - yi
189
+ - yo
190
+ - zh_CN
191
+ - zh_HK
192
+ - zh_TW
193
+ - zu
194
+ licenses:
195
+ - unknown
196
+ multilinguality:
197
+ - multilingual
198
+ size_categories:
199
+ - 10K<n<100K
200
+ source_datasets:
201
+ - original
202
+ task_categories:
203
+ - conditional-text-generation
204
+ task_ids:
205
+ - machine-translation
206
+ ---
207
+
208
+ # Dataset Card Creation Guide
209
+
210
+ ## Table of Contents
211
+ - [Dataset Description](#dataset-description)
212
+ - [Dataset Summary](#dataset-summary)
213
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
214
+ - [Languages](#languages)
215
+ - [Dataset Structure](#dataset-structure)
216
+ - [Data Instances](#data-instances)
217
+ - [Data Fields](#data-instances)
218
+ - [Data Splits](#data-instances)
219
+ - [Dataset Creation](#dataset-creation)
220
+ - [Curation Rationale](#curation-rationale)
221
+ - [Source Data](#source-data)
222
+ - [Annotations](#annotations)
223
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
224
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
225
+ - [Social Impact of Dataset](#social-impact-of-dataset)
226
+ - [Discussion of Biases](#discussion-of-biases)
227
+ - [Other Known Limitations](#other-known-limitations)
228
+ - [Additional Information](#additional-information)
229
+ - [Dataset Curators](#dataset-curators)
230
+ - [Licensing Information](#licensing-information)
231
+ - [Citation Information](#citation-information)
232
+
233
+ ## Dataset Description
234
+
235
+ - **Homepage:** http://opus.nlpl.eu/GNOME.php
236
+ - **Repository:** None
237
+ - **Paper:** http://www.lrec-conf.org/proceedings/lrec2012/pdf/463_Paper.pdf
238
+ - **Leaderboard:** [More Information Needed]
239
+ - **Point of Contact:** [More Information Needed]
240
+
241
+ ### Dataset Summary
242
+
243
+
244
+ To load a language pair which isn't part of the config, all you need to do is specify the language code as pairs.
245
+ You can find the valid pairs in Homepage section of Dataset Description: http://opus.nlpl.eu/GNOME.php
246
+ E.g.
247
+
248
+ `dataset = load_dataset("gnome", lang1="it", lang2="pl")`
249
+
250
+
251
+ ### Supported Tasks and Leaderboards
252
+
253
+ [More Information Needed]
254
+
255
+ ### Languages
256
+
257
+ [More Information Needed]
258
+
259
+ ## Dataset Structure
260
+
261
+ ### Data Instances
262
+
263
+ [More Information Needed]
264
+
265
+ ### Data Fields
266
+
267
+ [More Information Needed]
268
+
269
+ ### Data Splits
270
+
271
+ [More Information Needed]
272
+
273
+ ## Dataset Creation
274
+
275
+ ### Curation Rationale
276
+
277
+ [More Information Needed]
278
+
279
+ ### Source Data
280
+
281
+ [More Information Needed]
282
+
283
+ #### Initial Data Collection and Normalization
284
+
285
+ [More Information Needed]
286
+
287
+ #### Who are the source language producers?
288
+
289
+ [More Information Needed]
290
+
291
+ ### Annotations
292
+
293
+ [More Information Needed]
294
+
295
+ #### Annotation process
296
+
297
+ [More Information Needed]
298
+
299
+ #### Who are the annotators?
300
+
301
+ [More Information Needed]
302
+
303
+ ### Personal and Sensitive Information
304
+
305
+ [More Information Needed]
306
+
307
+ ## Considerations for Using the Data
308
+
309
+ ### Social Impact of Dataset
310
+
311
+ [More Information Needed]
312
+
313
+ ### Discussion of Biases
314
+
315
+ [More Information Needed]
316
+
317
+ ### Other Known Limitations
318
+
319
+ [More Information Needed]
320
+
321
+ ## Additional Information
322
+
323
+ ### Dataset Curators
324
+
325
+ [More Information Needed]
326
+
327
+ ### Licensing Information
328
+
329
+ [More Information Needed]
330
+
331
+ ### Citation Information
332
+
333
+ @InProceedings{TIEDEMANN12.463,
334
+ author = {J{\"o}rg Tiedemann},
335
+ title = {Parallel Data, Tools and Interfaces in OPUS},
336
+ booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},
337
+ year = {2012},
338
+ month = {may},
339
+ date = {23-25},
340
+ address = {Istanbul, Turkey},
341
+ 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},
342
+ publisher = {European Language Resources Association (ELRA)},
343
+ isbn = {978-2-9517408-7-7},
344
+ language = {english}
345
+ }
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"ar-bal": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["ar", "bal"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "ar-bal", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 5150, "num_examples": 60, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/ar-bal.txt.zip": {"num_bytes": 2503, "checksum": "4e866fb03b6d6af3569885cb0ab065aa791142a1d434debd1ceb86d0556dc237"}}, "download_size": 2503, "post_processing_size": null, "dataset_size": 5150, "size_in_bytes": 7653}, "bg-csb": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["bg", "csb"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "bg-csb", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 172545, "num_examples": 1768, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/bg-csb.txt.zip": {"num_bytes": 29706, "checksum": "7b6a09f032639be9f529e269d34ef4751c2e89fa3d9e2a56b279682454a67dfe"}}, "download_size": 29706, "post_processing_size": null, "dataset_size": 172545, "size_in_bytes": 202251}, "ca-en_GB": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["ca", "en_GB"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "ca-en_GB", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1007488, "num_examples": 7982, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/ca-en_GB.txt.zip": {"num_bytes": 188727, "checksum": "db2b9a019637b8a90963a08a4e645b2188bf34bc5b95833b936d9daafb33935f"}}, "download_size": 188727, "post_processing_size": null, "dataset_size": 1007488, "size_in_bytes": 1196215}, "cs-eo": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["cs", "eo"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "cs-eo", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2895, "num_examples": 73, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/cs-eo.txt.zip": {"num_bytes": 3055, "checksum": "5f87df6f904525612374ecea41fa8ef24615d623936d5f8721d79e4eef60360f"}}, "download_size": 3055, "post_processing_size": null, "dataset_size": 2895, "size_in_bytes": 5950}, "de-ha": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["de", "ha"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "de-ha", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 22899, "num_examples": 216, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/de-ha.txt.zip": {"num_bytes": 5287, "checksum": "0536f15e69fc0f97a056fc7736ef351e3e8b10411dedbb885728e77e530c9ead"}}, "download_size": 5287, "post_processing_size": null, "dataset_size": 22899, "size_in_bytes": 28186}, "cs-tk": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["cs", "tk"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "cs-tk", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1197731, "num_examples": 18686, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/cs-tk.txt.zip": {"num_bytes": 98044, "checksum": "44317497e1d43220f6a435db9281af7bf680e05dfa438d4424edbe5ddeb37da4"}}, "download_size": 98044, "post_processing_size": null, "dataset_size": 1197731, "size_in_bytes": 1295775}, "da-vi": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["da", "vi"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "da-vi", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 9372, "num_examples": 149, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/da-vi.txt.zip": {"num_bytes": 5432, "checksum": "aea348e6c5f586871d834ed69720f35eca180362d704764f3dd4dd28cd3734eb"}}, "download_size": 5432, "post_processing_size": null, "dataset_size": 9372, "size_in_bytes": 14804}, "en_GB-my": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["en_GB", "my"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "en_GB-my", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3298074, "num_examples": 28232, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/en_GB-my.txt.zip": {"num_bytes": 362750, "checksum": "ae082bec7bc2031a7689e671d7b89cb9759f5f5753982cd3baf7fad7bd99a43d"}}, "download_size": 362750, "post_processing_size": null, "dataset_size": 3298074, "size_in_bytes": 3660824}, "el-sk": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["el", "sk"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "el-sk", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 12121, "num_examples": 150, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/el-sk.txt.zip": {"num_bytes": 6116, "checksum": "5b3349eac7b10fd7a8ef37cdaa6566fb48d367c0c9e07b60c7963302f2b700f3"}}, "download_size": 6116, "post_processing_size": null, "dataset_size": 12121, "size_in_bytes": 18237}, "de-tt": {"description": "A parallel corpus of GNOME localization files. Source: https://l10n.gnome.org\n\n187 languages, 12,822 bitexts\ntotal number of files: 113,344\ntotal number of tokens: 267.27M\ntotal number of sentence fragments: 58.12M\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/GNOME.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["de", "tt"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_gnome", "config_name": "de-tt", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 134978, "num_examples": 2169, "dataset_name": "opus_gnome"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/de-tt.txt.zip": {"num_bytes": 15891, "checksum": "d95f376d3bff0b6b2c4bf7b2b942b73cda003799721e1ab6b9d3087a12a7ef38"}}, "download_size": 15891, "post_processing_size": null, "dataset_size": 134978, "size_in_bytes": 150869}}
dummy/ar-bal/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51c138751f39f4144bd3ee039ecc200685b82b1ecaea1801bec429c1abe01fa0
3
+ size 1004
dummy/bg-csb/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9025fa1335045d980c7c7bd50170c8bf3aceef7a0dcb828a322a01b5b9c4a937
3
+ size 894
dummy/ca-en_GB/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb17c8352433334099b74db6bcf3f9abf032d88ba144721862a41f284525f643
3
+ size 1181
dummy/cs-eo/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee3f4b1439c700e1cb2de244c06c1e135c1b209e2cc574b2e163c27847f9f18b
3
+ size 1081
dummy/cs-tk/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeba34f624be8c6390d28088295ea305a27940f633dc564e7b9af62c096f70b2
3
+ size 1005
dummy/da-vi/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e8826cce8d28f391e312c74f397bcdd027e8aa1b3fa1db7a056bf038090de9f
3
+ size 1206
dummy/de-ha/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b194c358a477120bd3e7de75474fe9b2c6959f4d32765c2a6f9e0866f8a94b85
3
+ size 1024
dummy/de-tt/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:320cc2e6270b46694f03b64cc400e6ee2db65b5dd3f81f9407e296dc870c0a18
3
+ size 1109
dummy/el-sk/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd993ac74ddef95f0acceca09b34bf0272d694fe8e255fdd00eb3ec0031b88df
3
+ size 1195
dummy/en_GB-my/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c03471c9527b8b85e81eee2cf014d14c8725fc692ef84f83675d5929a242d325
3
+ size 1141
opus_gnome.py ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 GNOME localization files. Source: https://l10n.gnome.org
24
+
25
+ 187 languages, 12,822 bitexts
26
+ total number of files: 113,344
27
+ total number of tokens: 267.27M
28
+ total number of sentence fragments: 58.12M
29
+ """
30
+ _HOMEPAGE_URL = "http://opus.nlpl.eu/GNOME.php"
31
+ _CITATION = """\
32
+ @InProceedings{TIEDEMANN12.463,
33
+ author = {J{\"o}rg Tiedemann},
34
+ title = {Parallel Data, Tools and Interfaces in OPUS},
35
+ booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},
36
+ year = {2012},
37
+ month = {may},
38
+ date = {23-25},
39
+ address = {Istanbul, Turkey},
40
+ 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},
41
+ publisher = {European Language Resources Association (ELRA)},
42
+ isbn = {978-2-9517408-7-7},
43
+ language = {english}
44
+ }
45
+ """
46
+
47
+ _VERSION = "1.0.0"
48
+ _BASE_NAME = "GNOME.{}.{}"
49
+ _BASE_URL = "https://object.pouta.csc.fi/OPUS-GNOME/v1/moses/{}-{}.txt.zip"
50
+ # Please note that only few pairs are shown here. You can use config to generate data for all language pairs
51
+ _LANGUAGE_PAIRS = [
52
+ ("ar", "bal"),
53
+ ("bg", "csb"),
54
+ ("ca", "en_GB"),
55
+ ("cs", "eo"),
56
+ ("de", "ha"),
57
+ ("cs", "tk"),
58
+ ("da", "vi"),
59
+ ("en_GB", "my"),
60
+ ("el", "sk"),
61
+ ("de", "tt"),
62
+ ]
63
+
64
+
65
+ class GnomeConfig(datasets.BuilderConfig):
66
+ def __init__(self, *args, lang1=None, lang2=None, **kwargs):
67
+ super().__init__(
68
+ *args,
69
+ name=f"{lang1}-{lang2}",
70
+ **kwargs,
71
+ )
72
+ self.lang1 = lang1
73
+ self.lang2 = lang2
74
+
75
+
76
+ class OpusGnome(datasets.GeneratorBasedBuilder):
77
+ BUILDER_CONFIGS = [
78
+ GnomeConfig(
79
+ lang1=lang1,
80
+ lang2=lang2,
81
+ description=f"Translating {lang1} to {lang2} or vice versa",
82
+ version=datasets.Version(_VERSION),
83
+ )
84
+ for lang1, lang2 in _LANGUAGE_PAIRS
85
+ ]
86
+ BUILDER_CONFIG_CLASS = GnomeConfig
87
+
88
+ def _info(self):
89
+ return datasets.DatasetInfo(
90
+ description=_DESCRIPTION,
91
+ features=datasets.Features(
92
+ {
93
+ "id": datasets.Value("string"),
94
+ "translation": datasets.Translation(languages=(self.config.lang1, self.config.lang2)),
95
+ },
96
+ ),
97
+ supervised_keys=None,
98
+ homepage=_HOMEPAGE_URL,
99
+ citation=_CITATION,
100
+ )
101
+
102
+ def _split_generators(self, dl_manager):
103
+ def _base_url(lang1, lang2):
104
+ return _BASE_URL.format(lang1, lang2)
105
+
106
+ download_url = _base_url(self.config.lang1, self.config.lang2)
107
+ path = dl_manager.download_and_extract(download_url)
108
+ return [
109
+ datasets.SplitGenerator(
110
+ name=datasets.Split.TRAIN,
111
+ gen_kwargs={"datapath": path},
112
+ )
113
+ ]
114
+
115
+ def _generate_examples(self, datapath):
116
+ l1, l2 = self.config.lang1, self.config.lang2
117
+ folder = l1 + "-" + l2
118
+ l1_file = _BASE_NAME.format(folder, l1)
119
+ l2_file = _BASE_NAME.format(folder, l2)
120
+ l1_path = os.path.join(datapath, l1_file)
121
+ l2_path = os.path.join(datapath, l2_file)
122
+ with open(l1_path, encoding="utf-8") as f1, open(l2_path, encoding="utf-8") as f2:
123
+ for sentence_counter, (x, y) in enumerate(zip(f1, f2)):
124
+ x = x.strip()
125
+ y = y.strip()
126
+ result = (
127
+ sentence_counter,
128
+ {
129
+ "id": str(sentence_counter),
130
+ "translation": {l1: x, l2: y},
131
+ },
132
+ )
133
+ yield result