Datasets:

Modalities:
Text
Formats:
parquet
Libraries:
Datasets
pandas
License:
parquet-converter commited on
Commit
bdf29e4
·
1 Parent(s): 9632971

Update parquet files

Browse files
README.md DELETED
@@ -1,411 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - found
4
- language_creators:
5
- - found
6
- language:
7
- - ar
8
- - en
9
- - es
10
- - fr
11
- - ru
12
- - zh
13
- license:
14
- - unknown
15
- multilinguality:
16
- - translation
17
- size_categories:
18
- - 10K<n<100K
19
- source_datasets:
20
- - original
21
- task_categories:
22
- - translation
23
- task_ids: []
24
- paperswithcode_id: null
25
- pretty_name: UnGa
26
- configs:
27
- - ar-to-en
28
- - ar-to-es
29
- - ar-to-fr
30
- - ar-to-ru
31
- - ar-to-zh
32
- - en-to-es
33
- - en-to-fr
34
- - en-to-ru
35
- - en-to-zh
36
- - es-to-fr
37
- - es-to-ru
38
- - es-to-zh
39
- - fr-to-ru
40
- - fr-to-zh
41
- - ru-to-zh
42
- dataset_info:
43
- - config_name: ar_to_en
44
- features:
45
- - name: id
46
- dtype: string
47
- - name: translation
48
- dtype:
49
- translation:
50
- languages:
51
- - ar
52
- - en
53
- splits:
54
- - name: train
55
- num_bytes: 53122872
56
- num_examples: 74067
57
- download_size: 10584906
58
- dataset_size: 53122872
59
- - config_name: ar_to_es
60
- features:
61
- - name: id
62
- dtype: string
63
- - name: translation
64
- dtype:
65
- translation:
66
- languages:
67
- - ar
68
- - es
69
- splits:
70
- - name: train
71
- num_bytes: 55728711
72
- num_examples: 74067
73
- download_size: 11084275
74
- dataset_size: 55728711
75
- - config_name: ar_to_fr
76
- features:
77
- - name: id
78
- dtype: string
79
- - name: translation
80
- dtype:
81
- translation:
82
- languages:
83
- - ar
84
- - fr
85
- splits:
86
- - name: train
87
- num_bytes: 55930898
88
- num_examples: 74067
89
- download_size: 11248563
90
- dataset_size: 55930898
91
- - config_name: ar_to_ru
92
- features:
93
- - name: id
94
- dtype: string
95
- - name: translation
96
- dtype:
97
- translation:
98
- languages:
99
- - ar
100
- - ru
101
- splits:
102
- - name: train
103
- num_bytes: 72657721
104
- num_examples: 74067
105
- download_size: 12852834
106
- dataset_size: 72657721
107
- - config_name: ar_to_zh
108
- features:
109
- - name: id
110
- dtype: string
111
- - name: translation
112
- dtype:
113
- translation:
114
- languages:
115
- - ar
116
- - zh
117
- splits:
118
- - name: train
119
- num_bytes: 48217675
120
- num_examples: 74067
121
- download_size: 10254078
122
- dataset_size: 48217675
123
- - config_name: en_to_es
124
- features:
125
- - name: id
126
- dtype: string
127
- - name: translation
128
- dtype:
129
- translation:
130
- languages:
131
- - en
132
- - es
133
- splits:
134
- - name: train
135
- num_bytes: 45358866
136
- num_examples: 74067
137
- download_size: 9850684
138
- dataset_size: 45358866
139
- - config_name: en_to_fr
140
- features:
141
- - name: id
142
- dtype: string
143
- - name: translation
144
- dtype:
145
- translation:
146
- languages:
147
- - en
148
- - fr
149
- splits:
150
- - name: train
151
- num_bytes: 45561053
152
- num_examples: 74067
153
- download_size: 10014972
154
- dataset_size: 45561053
155
- - config_name: en_to_ru
156
- features:
157
- - name: id
158
- dtype: string
159
- - name: translation
160
- dtype:
161
- translation:
162
- languages:
163
- - en
164
- - ru
165
- splits:
166
- - name: train
167
- num_bytes: 62287876
168
- num_examples: 74067
169
- download_size: 11619243
170
- dataset_size: 62287876
171
- - config_name: en_to_zh
172
- features:
173
- - name: id
174
- dtype: string
175
- - name: translation
176
- dtype:
177
- translation:
178
- languages:
179
- - en
180
- - zh
181
- splits:
182
- - name: train
183
- num_bytes: 37847830
184
- num_examples: 74067
185
- download_size: 9020487
186
- dataset_size: 37847830
187
- - config_name: es_to_fr
188
- features:
189
- - name: id
190
- dtype: string
191
- - name: translation
192
- dtype:
193
- translation:
194
- languages:
195
- - es
196
- - fr
197
- splits:
198
- - name: train
199
- num_bytes: 48166892
200
- num_examples: 74067
201
- download_size: 10514341
202
- dataset_size: 48166892
203
- - config_name: es_to_ru
204
- features:
205
- - name: id
206
- dtype: string
207
- - name: translation
208
- dtype:
209
- translation:
210
- languages:
211
- - es
212
- - ru
213
- splits:
214
- - name: train
215
- num_bytes: 64893715
216
- num_examples: 74067
217
- download_size: 12118612
218
- dataset_size: 64893715
219
- - config_name: es_to_zh
220
- features:
221
- - name: id
222
- dtype: string
223
- - name: translation
224
- dtype:
225
- translation:
226
- languages:
227
- - es
228
- - zh
229
- splits:
230
- - name: train
231
- num_bytes: 40453669
232
- num_examples: 74067
233
- download_size: 9519856
234
- dataset_size: 40453669
235
- - config_name: fr_to_ru
236
- features:
237
- - name: id
238
- dtype: string
239
- - name: translation
240
- dtype:
241
- translation:
242
- languages:
243
- - fr
244
- - ru
245
- splits:
246
- - name: train
247
- num_bytes: 65095902
248
- num_examples: 74067
249
- download_size: 12282900
250
- dataset_size: 65095902
251
- - config_name: fr_to_zh
252
- features:
253
- - name: id
254
- dtype: string
255
- - name: translation
256
- dtype:
257
- translation:
258
- languages:
259
- - fr
260
- - zh
261
- splits:
262
- - name: train
263
- num_bytes: 40655856
264
- num_examples: 74067
265
- download_size: 9684144
266
- dataset_size: 40655856
267
- - config_name: ru_to_zh
268
- features:
269
- - name: id
270
- dtype: string
271
- - name: translation
272
- dtype:
273
- translation:
274
- languages:
275
- - ru
276
- - zh
277
- splits:
278
- - name: train
279
- num_bytes: 57382679
280
- num_examples: 74067
281
- download_size: 11288415
282
- dataset_size: 57382679
283
- ---
284
-
285
- # Dataset Card for [Dataset Name]
286
-
287
- ## Table of Contents
288
- - [Dataset Description](#dataset-description)
289
- - [Dataset Summary](#dataset-summary)
290
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
291
- - [Languages](#languages)
292
- - [Dataset Structure](#dataset-structure)
293
- - [Data Instances](#data-instances)
294
- - [Data Fields](#data-fields)
295
- - [Data Splits](#data-splits)
296
- - [Dataset Creation](#dataset-creation)
297
- - [Curation Rationale](#curation-rationale)
298
- - [Source Data](#source-data)
299
- - [Annotations](#annotations)
300
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
301
- - [Considerations for Using the Data](#considerations-for-using-the-data)
302
- - [Social Impact of Dataset](#social-impact-of-dataset)
303
- - [Discussion of Biases](#discussion-of-biases)
304
- - [Other Known Limitations](#other-known-limitations)
305
- - [Additional Information](#additional-information)
306
- - [Dataset Curators](#dataset-curators)
307
- - [Licensing Information](#licensing-information)
308
- - [Citation Information](#citation-information)
309
- - [Contributions](#contributions)
310
-
311
- ## Dataset Description
312
-
313
- - **Homepage:** http://opus.nlpl.eu/UN.php
314
- - **Repository:**
315
- - **Paper:** https://www.researchgate.net/publication/228579662_United_nations_general_assembly_resolutions_A_six-language_parallel_corpus
316
- - **Leaderboard:**
317
- - **Point of Contact:**
318
-
319
- ### Dataset Summary
320
- This is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).
321
-
322
-
323
- ### Supported Tasks and Leaderboards
324
-
325
- [More Information Needed]
326
-
327
- ### Languages
328
-
329
- [More Information Needed]
330
-
331
- ## Dataset Structure
332
-
333
- ### Data Instances
334
-
335
- [More Information Needed]
336
-
337
- ### Data Fields
338
-
339
- [More Information Needed]
340
-
341
- ### Data Splits
342
-
343
- [More Information Needed]
344
-
345
- ## Dataset Creation
346
-
347
- ### Curation Rationale
348
-
349
- [More Information Needed]
350
-
351
- ### Source Data
352
-
353
- #### Initial Data Collection and Normalization
354
-
355
- [More Information Needed]
356
-
357
- #### Who are the source language producers?
358
-
359
- [More Information Needed]
360
-
361
- ### Annotations
362
-
363
- #### Annotation process
364
-
365
- [More Information Needed]
366
-
367
- #### Who are the annotators?
368
-
369
- [More Information Needed]
370
-
371
- ### Personal and Sensitive Information
372
-
373
- [More Information Needed]
374
-
375
- ## Considerations for Using the Data
376
-
377
- ### Social Impact of Dataset
378
-
379
- [More Information Needed]
380
-
381
- ### Discussion of Biases
382
-
383
- [More Information Needed]
384
-
385
- ### Other Known Limitations
386
-
387
- [More Information Needed]
388
-
389
- ## Additional Information
390
-
391
- ### Dataset Curators
392
-
393
- [More Information Needed]
394
-
395
- ### Licensing Information
396
-
397
- [More Information Needed]
398
-
399
- ### Citation Information
400
-
401
- @inproceedings{title = "United Nations General Assembly Resolutions: a six-language parallel corpus",
402
- abstract = "In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.",
403
- author = "Alexandre Rafalovitch and Robert Dale",
404
- year = "2009",
405
- language = "English",
406
- booktitle = "MT Summit XII proceedings",
407
- publisher = "International Association of Machine Translation",
408
- }
409
- ### Contributions
410
-
411
- Thanks to [@param087](https://github.com/param087) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ar_to_en/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0de758d0a5dd1a309431a02b27d7874228f1f005044ac7113aac3137c1c6d681
3
+ size 21418696
ar_to_es/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aea61f9531b685c8c36757018305f58da743b090bf40c7d44ec79a001047292
3
+ size 22724975
ar_to_fr/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:196a1e4f89a6e36e9446ea56a1780f2638d5089c2eb21f057da7841ca1b451c9
3
+ size 23035903
ar_to_ru/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56bb35830eb7c9dc407113b76af1854ea74ffc188457c3cf67cb3527104758a8
3
+ size 28279668
ar_to_zh/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:874f6082371fcfa096ac515ae65d66acc2df89793b51829944da10904c4f1308
3
+ size 20391115
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"ar_to_en": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["ar", "en"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "ar_to_en", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 53122872, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-en.txt.zip": {"num_bytes": 10584906, "checksum": "0b1b1182ba335875269ee2e0d40ecbefcdbb761fc22de16b674e0a0f79bd6060"}}, "download_size": 10584906, "post_processing_size": null, "dataset_size": 53122872, "size_in_bytes": 63707778}, "ar_to_es": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["ar", "es"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "ar_to_es", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 55728711, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-es.txt.zip": {"num_bytes": 11084275, "checksum": "7e1809a2a02bab91ed18a8b8cbfee6bce7f87b678c4d19064a733fa455dace6d"}}, "download_size": 11084275, "post_processing_size": null, "dataset_size": 55728711, "size_in_bytes": 66812986}, "ar_to_fr": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["ar", "fr"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "ar_to_fr", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 55930898, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-fr.txt.zip": {"num_bytes": 11248563, "checksum": "3f566fa222d63451febb4ce24567eb2860055e97bf1090c4002650b371897cd0"}}, "download_size": 11248563, "post_processing_size": null, "dataset_size": 55930898, "size_in_bytes": 67179461}, "ar_to_ru": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["ar", "ru"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "ar_to_ru", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 72657721, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-ru.txt.zip": {"num_bytes": 12852834, "checksum": "ae745d9af4eeb45bba73070cb3f1fdfdd15ac79f16e4dda0fd25bc5879622406"}}, "download_size": 12852834, "post_processing_size": null, "dataset_size": 72657721, "size_in_bytes": 85510555}, "ar_to_zh": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["ar", "zh"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "ar_to_zh", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 48217675, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-zh.txt.zip": {"num_bytes": 10254078, "checksum": "aa86f28b09caaaea39465f92e006401c48929b301c2f7612427e12043d1d6614"}}, "download_size": 10254078, "post_processing_size": null, "dataset_size": 48217675, "size_in_bytes": 58471753}, "en_to_es": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["en", "es"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "en_to_es", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 45358866, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/en-es.txt.zip": {"num_bytes": 9850684, "checksum": "f5e79e3bd0b53430ce970b2ba6e0dab2c29c0c13a781e73319b7eb2e6ebd5fe1"}}, "download_size": 9850684, "post_processing_size": null, "dataset_size": 45358866, "size_in_bytes": 55209550}, "en_to_fr": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["en", "fr"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "en_to_fr", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 45561053, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/en-fr.txt.zip": {"num_bytes": 10014972, "checksum": "d2d5d2b08509b7ecce87be5ceac3a6bf7cc74e0aabc8bc1af09dda58558d6375"}}, "download_size": 10014972, "post_processing_size": null, "dataset_size": 45561053, "size_in_bytes": 55576025}, "en_to_ru": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["en", "ru"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "en_to_ru", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 62287876, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/en-ru.txt.zip": {"num_bytes": 11619243, "checksum": "a5a739378d277f3229c852d79126bdba969ae44a91df4bed70ab24a85da12767"}}, "download_size": 11619243, "post_processing_size": null, "dataset_size": 62287876, "size_in_bytes": 73907119}, "en_to_zh": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["en", "zh"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "en_to_zh", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 37847830, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/en-zh.txt.zip": {"num_bytes": 9020487, "checksum": "3b7723bc5bb77403d04b33ce6e35636e43578168ac587c65fba922e0d36258e1"}}, "download_size": 9020487, "post_processing_size": null, "dataset_size": 37847830, "size_in_bytes": 46868317}, "es_to_fr": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["es", "fr"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "es_to_fr", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 48166892, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/es-fr.txt.zip": {"num_bytes": 10514341, "checksum": "8143cc758e0639da0f360f96173b75c52793a815a6927bf86849a9a728f56895"}}, "download_size": 10514341, "post_processing_size": null, "dataset_size": 48166892, "size_in_bytes": 58681233}, "es_to_ru": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["es", "ru"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "es_to_ru", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 64893715, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/es-ru.txt.zip": {"num_bytes": 12118612, "checksum": "0071936ae42e07066c8a4cdf85dbaa01cd68abc1dd384f4a06ed63d70dce0392"}}, "download_size": 12118612, "post_processing_size": null, "dataset_size": 64893715, "size_in_bytes": 77012327}, "es_to_zh": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["es", "zh"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "es_to_zh", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 40453669, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/es-zh.txt.zip": {"num_bytes": 9519856, "checksum": "fc6f1322e7716c8a80ae16d1c7a8920b929d22b09fd9b7d100a357ace433ebd3"}}, "download_size": 9519856, "post_processing_size": null, "dataset_size": 40453669, "size_in_bytes": 49973525}, "fr_to_ru": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["fr", "ru"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "fr_to_ru", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 65095902, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/fr-ru.txt.zip": {"num_bytes": 12282900, "checksum": "73830e021af28b341eabd45a5a427dad4d3a4bafa0c013d152ce204b45b81853"}}, "download_size": 12282900, "post_processing_size": null, "dataset_size": 65095902, "size_in_bytes": 77378802}, "fr_to_zh": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["fr", "zh"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "fr_to_zh", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 40655856, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/fr-zh.txt.zip": {"num_bytes": 9684144, "checksum": "39410331ac8c160cc8815028a283fdbbe4f2b2be3925704fc2883c04e04dd52f"}}, "download_size": 9684144, "post_processing_size": null, "dataset_size": 40655856, "size_in_bytes": 50340000}, "ru_to_zh": {"description": "United nations general assembly resolutions: A six-language parallel corpus.\nThis is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).\n6 languages, 15 bitexts\ntotal number of files: 6\ntotal number of tokens: 18.87M\ntotal number of sentence fragments: 0.44M\n", "citation": "@inproceedings{title = \"United Nations General Assembly Resolutions: a six-language parallel corpus\",\nabstract = \"In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.\",\nauthor = \"Alexandre Rafalovitch and Robert Dale\",\nyear = \"2009\",\nlanguage = \"English\",\nbooktitle = \"MT Summit XII proceedings\",\npublisher = \"International Association of Machine Translation\",\n}", "homepage": "http://opus.nlpl.eu/UN.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["ru", "zh"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "un_ga", "config_name": "ru_to_zh", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 57382679, "num_examples": 74067, "dataset_name": "un_ga"}}, "download_checksums": {"http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ru-zh.txt.zip": {"num_bytes": 11288415, "checksum": "acbc404d900f3c159f6d7d73616f368309f8cc22cc9e16060cfd5bf9db9dd33b"}}, "download_size": 11288415, "post_processing_size": null, "dataset_size": 57382679, "size_in_bytes": 68671094}}
 
 
en_to_es/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c592e55cb2f37428fa68fe15d1a1ae9b3ddad490c0cb95a63869c44f93692fec
3
+ size 19229140
en_to_fr/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3613f480872ea4209e5c13f805c69f759ed05951b330b622d96df042dffdfc0
3
+ size 19540062
en_to_ru/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e723a2f4fb4413ffcdcf39ea5e8291695b21fa600ff29f057c74e86df029cedb
3
+ size 24783811
en_to_zh/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0b449ac4a637c780eec7b20b01d0b54f18895649d1fa8acf164c65c2545d95a
3
+ size 16895274
es_to_fr/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c19094b67abcb920ced0c105442c1fe9433f53140bf4960e820b038ec6b98565
3
+ size 20846354
es_to_ru/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06051fb909bca43f544a79cce4156c65f911e9de1c397a9d54e40a1bbdbf298c
3
+ size 26090091
es_to_zh/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b2b2ee5770d7cedce0551d74559b583ba8e03a8867e2a80681ea62b1452d1b3
3
+ size 18201559
fr_to_ru/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9104cd639dbf8bed390e63ea57de2f736ec589d1080cf2421d8d397c98a6949
3
+ size 26401014
fr_to_zh/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f613818e80af612d6ef1b6ec121a2d01f4c045a07a1d9049bc103731eaa2d1e6
3
+ size 18512481
ru_to_zh/un_ga-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6be0ff496a1cad4d73dcbad7a9ff7965714ad450ab90ce82e1099cd2c6be2b53
3
+ size 23756228
un_ga.py DELETED
@@ -1,154 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
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
- """United nations general assembly resolutions: A six-language parallel corpus"""
16
-
17
-
18
- import os
19
-
20
- import datasets
21
-
22
-
23
- _CITATION = """\
24
- @inproceedings{title = "United Nations General Assembly Resolutions: a six-language parallel corpus",
25
- abstract = "In this paper we describe a six-ways parallel public-domain corpus consisting of 2100 United Nations General Assembly Resolutions with translations in the six official languages of the United Nations, with an average of around 3 million tokens per language. The corpus is available in a preprocessed, formatting-normalized TMX format with paragraphs aligned across multiple languages. We describe the background to the corpus and its content, the process of its construction, and some of its interesting properties.",
26
- author = "Alexandre Rafalovitch and Robert Dale",
27
- year = "2009",
28
- language = "English",
29
- booktitle = "MT Summit XII proceedings",
30
- publisher = "International Association of Machine Translation",
31
- }"""
32
-
33
- _HOMEPAGE = "http://opus.nlpl.eu/UN.php"
34
-
35
-
36
- _LICENSE = ""
37
-
38
- _VALID_LANGUAGE_PAIRS = {
39
- ("ar", "en"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-en.txt.zip",
40
- ("ar", "es"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-es.txt.zip",
41
- ("ar", "fr"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-fr.txt.zip",
42
- ("ar", "ru"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-ru.txt.zip",
43
- ("ar", "zh"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ar-zh.txt.zip",
44
- ("en", "es"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/en-es.txt.zip",
45
- ("en", "fr"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/en-fr.txt.zip",
46
- ("en", "ru"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/en-ru.txt.zip",
47
- ("en", "zh"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/en-zh.txt.zip",
48
- ("es", "fr"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/es-fr.txt.zip",
49
- ("es", "ru"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/es-ru.txt.zip",
50
- ("es", "zh"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/es-zh.txt.zip",
51
- ("fr", "ru"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/fr-ru.txt.zip",
52
- ("fr", "zh"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/fr-zh.txt.zip",
53
- ("ru", "zh"): "http://opus.nlpl.eu/download.php?f=UN/v20090831/moses/ru-zh.txt.zip",
54
- }
55
-
56
- _VERSION = "2.0.0"
57
-
58
- _DESCRIPTION = """\
59
- United nations general assembly resolutions: A six-language parallel corpus.
60
- This is a collection of translated documents from the United Nations originally compiled into a translation memory by Alexandre Rafalovitch, Robert Dale (see http://uncorpora.org).
61
- 6 languages, 15 bitexts
62
- total number of files: 6
63
- total number of tokens: 18.87M
64
- total number of sentence fragments: 0.44M
65
- """
66
-
67
- _BASE_NAME = "UN.{}-{}.{}"
68
-
69
-
70
- class UnGaConfig(datasets.BuilderConfig):
71
- """BuilderConfig for United nations general assembly resolutions: A six-language parallel corpus"""
72
-
73
- def __init__(self, language_pair=(None, None), **kwargs):
74
- """BuilderConfig for United nations general assembly resolutions: A six-language parallel corpus.
75
- The first language in `language_pair` should consist of two strings joined by
76
- an underscore (e.g. "en-tr").
77
- Args:
78
- language_pair: pair of languages that will be used for translation.
79
- **kwargs: keyword arguments forwarded to super.
80
- """
81
- name = "%s_to_%s" % (language_pair[0], language_pair[1])
82
-
83
- description = ("Translation dataset from %s to %s or %s to %s.") % (
84
- language_pair[0],
85
- language_pair[1],
86
- language_pair[1],
87
- language_pair[0],
88
- )
89
- super(UnGaConfig, self).__init__(
90
- name=name, description=description, version=datasets.Version(_VERSION, ""), **kwargs
91
- )
92
-
93
- # Validate language pair.
94
- assert language_pair in _VALID_LANGUAGE_PAIRS, (
95
- "Config language pair (%s, " "%s) not supported"
96
- ) % language_pair
97
-
98
- self.language_pair = language_pair
99
-
100
-
101
- class UnGa(datasets.GeneratorBasedBuilder):
102
-
103
- BUILDER_CONFIGS = [
104
- UnGaConfig(
105
- language_pair=pair,
106
- )
107
- for pair in _VALID_LANGUAGE_PAIRS.keys()
108
- ]
109
-
110
- BUILDER_CONFIG_CLASS = UnGaConfig
111
-
112
- def _info(self):
113
- return datasets.DatasetInfo(
114
- description=_DESCRIPTION,
115
- features=datasets.Features(
116
- {
117
- "id": datasets.Value("string"),
118
- "translation": datasets.Translation(languages=tuple(self.config.language_pair)),
119
- },
120
- ),
121
- supervised_keys=None,
122
- homepage=_HOMEPAGE,
123
- citation=_CITATION,
124
- )
125
-
126
- def _split_generators(self, dl_manager):
127
- download_url = _VALID_LANGUAGE_PAIRS.get(tuple(self.config.language_pair))
128
- path = dl_manager.download_and_extract(download_url)
129
- return [
130
- datasets.SplitGenerator(
131
- name=datasets.Split.TRAIN,
132
- gen_kwargs={"datapath": path},
133
- )
134
- ]
135
-
136
- def _generate_examples(self, datapath):
137
- lang1, lang2 = self.config.language_pair
138
- lang1_file = _BASE_NAME.format(lang1, lang2, lang1)
139
- lang2_file = _BASE_NAME.format(lang1, lang2, lang2)
140
- lang1_path = os.path.join(datapath, lang1_file)
141
- lang2_path = os.path.join(datapath, lang2_file)
142
-
143
- with open(lang1_path, encoding="utf-8") as f1, open(lang2_path, encoding="utf-8") as f2:
144
- for sentence_counter, (x, y) in enumerate(zip(f1, f2)):
145
- x = x.strip()
146
- y = y.strip()
147
- result = (
148
- sentence_counter,
149
- {
150
- "id": str(sentence_counter),
151
- "translation": {lang1: x, lang2: y},
152
- },
153
- )
154
- yield result