Datasets:

Multilinguality:
multilingual
Size Categories:
n<1K
Language Creators:
expert-generated
Annotations Creators:
found
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
68229b6
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,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - found
4
+ language_creators:
5
+ - expert-generated
6
+ languages:
7
+ de-en:
8
+ - de
9
+ - en
10
+ de-es:
11
+ - de
12
+ - es
13
+ de-fr:
14
+ - de
15
+ - fr
16
+ de-sv:
17
+ - de
18
+ - sv
19
+ en-es:
20
+ - en
21
+ - es
22
+ en-fr:
23
+ - en
24
+ - fr
25
+ en-sv:
26
+ - en
27
+ - sv
28
+ es-fr:
29
+ - es
30
+ - fr
31
+ es-sv:
32
+ - es
33
+ - sv
34
+ fr-sv:
35
+ - fr
36
+ - sv
37
+ licenses:
38
+ - unknown
39
+ multilinguality:
40
+ - multilingual
41
+ size_categories:
42
+ - n<1K
43
+ source_datasets:
44
+ - original
45
+ task_categories:
46
+ - conditional-text-generation
47
+ task_ids:
48
+ - machine-translation
49
+ ---
50
+
51
+ # Dataset Card for [Dataset Name]
52
+
53
+ ## Table of Contents
54
+ - [Dataset Description](#dataset-description)
55
+ - [Dataset Summary](#dataset-summary)
56
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
57
+ - [Languages](#languages)
58
+ - [Dataset Structure](#dataset-structure)
59
+ - [Data Instances](#data-instances)
60
+ - [Data Fields](#data-fields)
61
+ - [Data Splits](#data-splits)
62
+ - [Dataset Creation](#dataset-creation)
63
+ - [Curation Rationale](#curation-rationale)
64
+ - [Source Data](#source-data)
65
+ - [Annotations](#annotations)
66
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
67
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
68
+ - [Social Impact of Dataset](#social-impact-of-dataset)
69
+ - [Discussion of Biases](#discussion-of-biases)
70
+ - [Other Known Limitations](#other-known-limitations)
71
+ - [Additional Information](#additional-information)
72
+ - [Dataset Curators](#dataset-curators)
73
+ - [Licensing Information](#licensing-information)
74
+ - [Citation Information](#citation-information)
75
+
76
+ ## Dataset Description
77
+
78
+ - **Homepage: http://opus.nlpl.eu/RF.php**
79
+ - **Repository: NA**
80
+ - **Paper: http://www.lrec-conf.org/proceedings/lrec2012/pdf/463_Paper.pdf**
81
+ - **Leaderboard: [More Information Needed]**
82
+ - **Point of Contact: [More Information Needed]**
83
+
84
+ ### Dataset Summary
85
+
86
+ RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations.
87
+
88
+ ### Supported Tasks and Leaderboards
89
+
90
+ [More Information Needed]
91
+
92
+ ### Languages
93
+
94
+ English (en), Spanish (es), German (de), French (fr), Swedish (sv)
95
+
96
+ ## Dataset Structure
97
+
98
+ ### Data Instances
99
+
100
+ [More Information Needed]
101
+
102
+ ### Data Fields
103
+
104
+ [More Information Needed]
105
+
106
+ ### Data Splits
107
+
108
+ [More Information Needed]
109
+
110
+ ## Dataset Creation
111
+
112
+ ### Curation Rationale
113
+
114
+ [More Information Needed]
115
+
116
+ ### Source Data
117
+
118
+ #### Initial Data Collection and Normalization
119
+
120
+ [More Information Needed]
121
+
122
+ #### Who are the source language producers?
123
+
124
+ [More Information Needed]
125
+
126
+ ### Annotations
127
+
128
+ #### Annotation process
129
+
130
+ [More Information Needed]
131
+
132
+ #### Who are the annotators?
133
+
134
+ [More Information Needed]
135
+
136
+ ### Personal and Sensitive Information
137
+
138
+ [More Information Needed]
139
+
140
+ ## Considerations for Using the Data
141
+
142
+ ### Social Impact of Dataset
143
+
144
+ [More Information Needed]
145
+
146
+ ### Discussion of Biases
147
+
148
+ [More Information Needed]
149
+
150
+ ### Other Known Limitations
151
+
152
+ [More Information Needed]
153
+
154
+ ## Additional Information
155
+
156
+ ### Dataset Curators
157
+
158
+ [More Information Needed]
159
+
160
+ ### Licensing Information
161
+
162
+ [More Information Needed]
163
+
164
+ ### Citation Information
165
+
166
+ ```
167
+ @InProceedings{TIEDEMANN12.463,
168
+ author = {J{\"o}rg Tiedemann},
169
+ title = {Parallel Data, Tools and Interfaces in OPUS},
170
+ booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},
171
+ year = {2012},
172
+ month = {may},
173
+ date = {23-25},
174
+ address = {Istanbul, Turkey},
175
+ 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},
176
+ publisher = {European Language Resources Association (ELRA)},
177
+ isbn = {978-2-9517408-7-7},
178
+ language = {english}
179
+ }
180
+ ```
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"de-en": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["de", "en"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_rf", "config_name": "de-en", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 38683, "num_examples": 177, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/de-en.txt.zip": {"num_bytes": 16029, "checksum": "50305ff986a2fc62ab427df8756b2301ea141f030189bfe991606072029e1b6e"}}, "download_size": 16029, "post_processing_size": null, "dataset_size": 38683, "size_in_bytes": 54712}, "de-es": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["de", "es"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_rf", "config_name": "de-es", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2316, "num_examples": 24, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/de-es.txt.zip": {"num_bytes": 2403, "checksum": "531de3d9a53ec1fe698c8f86fc2a56c94cf1b214f853f27be0f2071f184025e1"}}, "download_size": 2403, "post_processing_size": null, "dataset_size": 2316, "size_in_bytes": 4719}, "de-fr": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["de", "fr"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_rf", "config_name": "de-fr", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 41300, "num_examples": 173, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/de-fr.txt.zip": {"num_bytes": 16720, "checksum": "e18359858759dae815a51d52b0a6856cc5d5c9a6455b0fdfd4850ff6279c5cd2"}}, "download_size": 16720, "post_processing_size": null, "dataset_size": 41300, "size_in_bytes": 58020}, "de-sv": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["de", "sv"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_rf", "config_name": "de-sv", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 37414, "num_examples": 178, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/de-sv.txt.zip": {"num_bytes": 15749, "checksum": "fee26852813092b6a4b9e0939b3218d9a586aa73130d6d04e5a76b60bc88f079"}}, "download_size": 15749, "post_processing_size": null, "dataset_size": 37414, "size_in_bytes": 53163}, "en-es": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.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": "opus_rf", "config_name": "en-es", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2600, "num_examples": 25, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/en-es.txt.zip": {"num_bytes": 2485, "checksum": "47969410f7a606d4856246c09c73a05a9deab7fbc451cf9200fdb648376902f4"}}, "download_size": 2485, "post_processing_size": null, "dataset_size": 2600, "size_in_bytes": 5085}, "en-fr": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.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": "opus_rf", "config_name": "en-fr", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 39503, "num_examples": 175, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/en-fr.txt.zip": {"num_bytes": 16038, "checksum": "a48b1a06187bd5e7f5d305343187ba448f06688f9113bc6ceaf98abd72ef728e"}}, "download_size": 16038, "post_processing_size": null, "dataset_size": 39503, "size_in_bytes": 55541}, "en-sv": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["en", "sv"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_rf", "config_name": "en-sv", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 35778, "num_examples": 180, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/en-sv.txt.zip": {"num_bytes": 15147, "checksum": "6b80c5ca96c9c9c69f54cd8766ebcb9f5e9276a68766fa18e1d51ac3afa1e959"}}, "download_size": 15147, "post_processing_size": null, "dataset_size": 35778, "size_in_bytes": 50925}, "es-fr": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.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": "opus_rf", "config_name": "es-fr", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2519, "num_examples": 21, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/es-fr.txt.zip": {"num_bytes": 2469, "checksum": "78e348133cb935ec67748ea06713e01137edfe39414c3578ddb94e128978332a"}}, "download_size": 2469, "post_processing_size": null, "dataset_size": 2519, "size_in_bytes": 4988}, "es-sv": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["es", "sv"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_rf", "config_name": "es-sv", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3110, "num_examples": 28, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/es-sv.txt.zip": {"num_bytes": 2726, "checksum": "bf69d7ab19273dfaed9b451639a473843502cbcb284c0d77f6bd82ff7d797ab8"}}, "download_size": 2726, "post_processing_size": null, "dataset_size": 3110, "size_in_bytes": 5836}, "fr-sv": {"description": "RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. \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/RF.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["fr", "sv"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_rf", "config_name": "fr-sv", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 38627, "num_examples": 175, "dataset_name": "opus_rf"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-RF/v1/moses/fr-sv.txt.zip": {"num_bytes": 15937, "checksum": "529e2002b68f2739996248c7464871888c80e1c5cf81ff48344c6cd57c5481dc"}}, "download_size": 15937, "post_processing_size": null, "dataset_size": 38627, "size_in_bytes": 54564}}
dummy/de-en/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac22f7eec50b375f6faa98ecdfe91b6421f5d09bb92f538a01121b1cf27687e9
3
+ size 1416
dummy/de-es/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cec6a8a3060ec499378f09cb5ae5facc760e6517f5d357d8d93e577e965d69b
3
+ size 1165
dummy/de-fr/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e834e27cd6ab9524607805a6832cc53773b2b01ad99e1fa6e19277a86d0180e6
3
+ size 1462
dummy/de-sv/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e99afa95f754f6af9b89a5eca20bdf9675ade4879cb177d99c232871a62e7d77
3
+ size 1372
dummy/en-es/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62369ba09bdd1e3df3f1740e33b987d6f7c4188ebbc10bf94ce33b725c0ed606
3
+ size 1223
dummy/en-fr/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0b4e6df4e58630f10b87cf9c1384e7aedb99db5815395e9d7166bb0e8068d7c
3
+ size 1418
dummy/en-sv/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d08f64e41863fad87217c659bc1c0816b112f9fc181f45c1fd75a47c99875f4b
3
+ size 1310
dummy/es-fr/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:164407acf17d9f6f24b43603461ad1055a41e3054bfd2b0c57abfbf7465a32eb
3
+ size 1586
dummy/es-sv/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d97d4c693f13d820e400db9ad4e38fd56c2d56dc2604451c9a11a3d72d67df39
3
+ size 1189
dummy/fr-sv/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9bf22e84a43998195ea0bbb62367a46f953673dd0d74a68899efce15885ef86
3
+ size 1374
opus_rf.py ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """
16
+ RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations.
17
+
18
+ 5 languages, 10 bitexts
19
+ total number of files: 11
20
+ total number of tokens: 19.74k
21
+ total number of sentence fragments: 0.86k
22
+ """
23
+
24
+ from __future__ import absolute_import, division, print_function
25
+
26
+ import os
27
+
28
+ import datasets
29
+
30
+
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
+ _DESCRIPTION = """\
48
+ RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations.
49
+ """
50
+
51
+ _HOMEPAGE = "http://opus.nlpl.eu/RF.php"
52
+
53
+ _VERSION = "1.0.0"
54
+ _BASE_NAME = "RF.{}.{}"
55
+ _BASE_URL = "https://object.pouta.csc.fi/OPUS-RF/v1/moses/{}-{}.txt.zip"
56
+
57
+ _LANGUAGE_PAIRS = [
58
+ ("de", "en"),
59
+ ("de", "es"),
60
+ ("de", "fr"),
61
+ ("de", "sv"),
62
+ ("en", "es"),
63
+ ("en", "fr"),
64
+ ("en", "sv"),
65
+ ("es", "fr"),
66
+ ("es", "sv"),
67
+ ("fr", "sv"),
68
+ ]
69
+
70
+
71
+ class OpusRFTranslationsConfig(datasets.BuilderConfig):
72
+ def __init__(self, *args, lang1=None, lang2=None, **kwargs):
73
+ super().__init__(
74
+ *args,
75
+ name=f"{lang1}-{lang2}",
76
+ **kwargs,
77
+ )
78
+ self.lang1 = lang1
79
+ self.lang2 = lang2
80
+
81
+
82
+ class OpusRF(datasets.GeneratorBasedBuilder):
83
+ """RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations. """
84
+
85
+ BUILDER_CONFIGS = [
86
+ OpusRFTranslationsConfig(
87
+ lang1=lang1,
88
+ lang2=lang2,
89
+ description=f"Translating {lang1} to {lang2} or vice versa",
90
+ version=datasets.Version(_VERSION),
91
+ )
92
+ for lang1, lang2 in _LANGUAGE_PAIRS
93
+ ]
94
+ BUILDER_CONFIG_CLASS = OpusRFTranslationsConfig
95
+
96
+ def _info(self):
97
+ return datasets.DatasetInfo(
98
+ description=_DESCRIPTION,
99
+ features=datasets.Features(
100
+ {
101
+ "id": datasets.Value("string"),
102
+ "translation": datasets.Translation(languages=(self.config.lang1, self.config.lang2)),
103
+ }
104
+ ),
105
+ supervised_keys=None,
106
+ homepage=_HOMEPAGE,
107
+ citation=_CITATION,
108
+ )
109
+
110
+ def _split_generators(self, dl_manager):
111
+ """Returns SplitGenerators."""
112
+ download_url = _BASE_URL.format(self.config.lang1, self.config.lang2)
113
+ path = dl_manager.download_and_extract(download_url)
114
+ return [
115
+ datasets.SplitGenerator(
116
+ name=datasets.Split.TRAIN,
117
+ gen_kwargs={"datapath": path},
118
+ )
119
+ ]
120
+
121
+ def _generate_examples(self, datapath):
122
+ """ Yields examples. """
123
+ l1, l2 = self.config.lang1, self.config.lang2
124
+ folder = l1 + "-" + l2
125
+ l1_file = _BASE_NAME.format(folder, l1)
126
+ l2_file = _BASE_NAME.format(folder, l2)
127
+ l1_path = os.path.join(datapath, l1_file)
128
+ l2_path = os.path.join(datapath, l2_file)
129
+ with open(l1_path, encoding="utf-8") as f1, open(l2_path, encoding="utf-8") as f2:
130
+ for sentence_counter, (x, y) in enumerate(zip(f1, f2)):
131
+ x = x.strip()
132
+ y = y.strip()
133
+ result = (
134
+ sentence_counter,
135
+ {
136
+ "id": str(sentence_counter),
137
+ "translation": {l1: x, l2: y},
138
+ },
139
+ )
140
+ yield result