Datasets:

Multilinguality:
multilingual
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
found
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
68204c4
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,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - found
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ af-en:
8
+ - af
9
+ - en
10
+ el-en:
11
+ - el
12
+ - en
13
+ en-zh:
14
+ - en
15
+ - zh
16
+ licenses:
17
+ - unknown
18
+ multilinguality:
19
+ - multilingual
20
+ size_categories:
21
+ - 10K<n<100K
22
+ source_datasets:
23
+ - original
24
+ task_categories:
25
+ - conditional-text-generation
26
+ task_ids:
27
+ - machine-translation
28
+ ---
29
+
30
+ # Dataset Card Creation Guide
31
+
32
+ ## Table of Contents
33
+ - [Dataset Description](#dataset-description)
34
+ - [Dataset Summary](#dataset-summary)
35
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
36
+ - [Languages](#languages)
37
+ - [Dataset Structure](#dataset-structure)
38
+ - [Data Instances](#data-instances)
39
+ - [Data Fields](#data-instances)
40
+ - [Data Splits](#data-instances)
41
+ - [Dataset Creation](#dataset-creation)
42
+ - [Curation Rationale](#curation-rationale)
43
+ - [Source Data](#source-data)
44
+ - [Annotations](#annotations)
45
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
46
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
47
+ - [Social Impact of Dataset](#social-impact-of-dataset)
48
+ - [Discussion of Biases](#discussion-of-biases)
49
+ - [Other Known Limitations](#other-known-limitations)
50
+ - [Additional Information](#additional-information)
51
+ - [Dataset Curators](#dataset-curators)
52
+ - [Licensing Information](#licensing-information)
53
+ - [Citation Information](#citation-information)
54
+
55
+ ## Dataset Description
56
+
57
+ - **Homepage:** http://opus.nlpl.eu/SPC.php
58
+ - **Repository:** None
59
+ - **Paper:** http://www.lrec-conf.org/proceedings/lrec2012/pdf/463_Paper.pdf
60
+ - **Leaderboard:** [More Information Needed]
61
+ - **Point of Contact:** [More Information Needed]
62
+
63
+ ### Dataset Summary
64
+
65
+ [More Information Needed]
66
+
67
+ ### Supported Tasks and Leaderboards
68
+
69
+ [More Information Needed]
70
+
71
+ ### Languages
72
+
73
+ [More Information Needed]
74
+
75
+ ## Dataset Structure
76
+
77
+ ### Data Instances
78
+
79
+ [More Information Needed]
80
+
81
+ ### Data Fields
82
+
83
+ [More Information Needed]
84
+
85
+ ### Data Splits
86
+
87
+ [More Information Needed]
88
+
89
+ ## Dataset Creation
90
+
91
+ ### Curation Rationale
92
+
93
+ [More Information Needed]
94
+
95
+ ### Source Data
96
+
97
+ [More Information Needed]
98
+
99
+ #### Initial Data Collection and Normalization
100
+
101
+ [More Information Needed]
102
+
103
+ #### Who are the source language producers?
104
+
105
+ [More Information Needed]
106
+
107
+ ### Annotations
108
+
109
+ [More Information Needed]
110
+
111
+ #### Annotation process
112
+
113
+ [More Information Needed]
114
+
115
+ #### Who are the annotators?
116
+
117
+ [More Information Needed]
118
+
119
+ ### Personal and Sensitive Information
120
+
121
+ [More Information Needed]
122
+
123
+ ## Considerations for Using the Data
124
+
125
+ ### Social Impact of Dataset
126
+
127
+ [More Information Needed]
128
+
129
+ ### Discussion of Biases
130
+
131
+ [More Information Needed]
132
+
133
+ ### Other Known Limitations
134
+
135
+ [More Information Needed]
136
+
137
+ ## Additional Information
138
+
139
+ ### Dataset Curators
140
+
141
+ [More Information Needed]
142
+
143
+ ### Licensing Information
144
+
145
+ [More Information Needed]
146
+
147
+ ### Citation Information
148
+
149
+ [More Information Needed]
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"af-en": {"description": "This is a collection of parallel corpora collected by Hercules Dalianis and his research group for bilingual dictionary construction.\nMore information in: Hercules Dalianis, Hao-chun Xing, Xin Zhang: Creating a Reusable English-Chinese Parallel Corpus for Bilingual Dictionary Construction, In Proceedings of LREC2010 (source: http://people.dsv.su.se/~hercules/SEC/) and Konstantinos Charitakis (2007): Using Parallel Corpora to Create a Greek-English Dictionary with UPLUG, In Proceedings of NODALIDA 2007. Afrikaans-English: Aldin Draghoender and Mattias Kanhov: Creating a reusable English \u2013 Afrikaans parallel corpora for bilingual dictionary construction\n\n4 languages, 3 bitexts\ntotal number of files: 6\ntotal number of tokens: 1.32M\ntotal number of sentence fragments: 0.15M\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/SPC.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["af", "en"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "spc", "config_name": "af-en", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 4605446, "num_examples": 57351, "dataset_name": "spc"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-SPC/v1/moses/af-en.txt.zip": {"num_bytes": 1105038, "checksum": "bb822d424216d3afb96e6321fb79d3b38591c30ccdf0c714ff2727a696702860"}}, "download_size": 1105038, "post_processing_size": null, "dataset_size": 4605446, "size_in_bytes": 5710484}, "el-en": {"description": "This is a collection of parallel corpora collected by Hercules Dalianis and his research group for bilingual dictionary construction.\nMore information in: Hercules Dalianis, Hao-chun Xing, Xin Zhang: Creating a Reusable English-Chinese Parallel Corpus for Bilingual Dictionary Construction, In Proceedings of LREC2010 (source: http://people.dsv.su.se/~hercules/SEC/) and Konstantinos Charitakis (2007): Using Parallel Corpora to Create a Greek-English Dictionary with UPLUG, In Proceedings of NODALIDA 2007. Afrikaans-English: Aldin Draghoender and Mattias Kanhov: Creating a reusable English \u2013 Afrikaans parallel corpora for bilingual dictionary construction\n\n4 languages, 3 bitexts\ntotal number of files: 6\ntotal number of tokens: 1.32M\ntotal number of sentence fragments: 0.15M\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/SPC.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["el", "en"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "spc", "config_name": "el-en", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3797941, "num_examples": 8181, "dataset_name": "spc"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-SPC/v1/moses/el-en.txt.zip": {"num_bytes": 841228, "checksum": "6b583ee4a5b12648663882f8ac3a4651acdfc1b107cdedfbfccac401fdf38414"}}, "download_size": 841228, "post_processing_size": null, "dataset_size": 3797941, "size_in_bytes": 4639169}, "en-zh": {"description": "This is a collection of parallel corpora collected by Hercules Dalianis and his research group for bilingual dictionary construction.\nMore information in: Hercules Dalianis, Hao-chun Xing, Xin Zhang: Creating a Reusable English-Chinese Parallel Corpus for Bilingual Dictionary Construction, In Proceedings of LREC2010 (source: http://people.dsv.su.se/~hercules/SEC/) and Konstantinos Charitakis (2007): Using Parallel Corpora to Create a Greek-English Dictionary with UPLUG, In Proceedings of NODALIDA 2007. Afrikaans-English: Aldin Draghoender and Mattias Kanhov: Creating a reusable English \u2013 Afrikaans parallel corpora for bilingual dictionary construction\n\n4 languages, 3 bitexts\ntotal number of files: 6\ntotal number of tokens: 1.32M\ntotal number of sentence fragments: 0.15M\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/SPC.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": "spc", "config_name": "en-zh", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 849200, "num_examples": 2228, "dataset_name": "spc"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-SPC/v1/moses/en-zh.txt.zip": {"num_bytes": 189995, "checksum": "5d4e94b1ac8263167965ba12017031179c199743443a8e2a69d4dcb79234a97f"}}, "download_size": 189995, "post_processing_size": null, "dataset_size": 849200, "size_in_bytes": 1039195}}
dummy/af-en/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef0ce5c4246f46e67c66d6ca9dba73f7ff5ffc7b101f8f94eda8a15ac6d842f3
3
+ size 758
dummy/el-en/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe1a9226b80606bd1630d4cf448e286ae3bd133c209288f1287d5fcb106cd9e2
3
+ size 1231
dummy/en-zh/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f6a89ecdc1fcff664c392c62e1b0450499cb0b524b339a9d0ef5f408a94ccca
3
+ size 1015
spc.py ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ This is a collection of parallel corpora collected by Hercules Dalianis and his research group for bilingual dictionary construction.
24
+ More information in: Hercules Dalianis, Hao-chun Xing, Xin Zhang: Creating a Reusable English-Chinese Parallel Corpus for Bilingual Dictionary Construction, In Proceedings of LREC2010 (source: http://people.dsv.su.se/~hercules/SEC/) and Konstantinos Charitakis (2007): Using Parallel Corpora to Create a Greek-English Dictionary with UPLUG, In Proceedings of NODALIDA 2007. Afrikaans-English: Aldin Draghoender and Mattias Kanhov: Creating a reusable English – Afrikaans parallel corpora for bilingual dictionary construction
25
+
26
+ 4 languages, 3 bitexts
27
+ total number of files: 6
28
+ total number of tokens: 1.32M
29
+ total number of sentence fragments: 0.15M
30
+ """
31
+ _HOMEPAGE_URL = "http://opus.nlpl.eu/SPC.php"
32
+ _CITATION = """\
33
+ @InProceedings{TIEDEMANN12.463,
34
+ author = {J{\"o}rg Tiedemann},
35
+ title = {Parallel Data, Tools and Interfaces in OPUS},
36
+ booktitle = {Proceedings of the Eight International Conference on Language Resources and Evaluation (LREC'12)},
37
+ year = {2012},
38
+ month = {may},
39
+ date = {23-25},
40
+ address = {Istanbul, Turkey},
41
+ 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},
42
+ publisher = {European Language Resources Association (ELRA)},
43
+ isbn = {978-2-9517408-7-7},
44
+ language = {english}
45
+ }
46
+ """
47
+
48
+ _VERSION = "1.0.0"
49
+ _BASE_NAME = "SPC.{}.{}"
50
+ _BASE_URL = "https://object.pouta.csc.fi/OPUS-SPC/v1/moses/{}-{}.txt.zip"
51
+
52
+ _LANGUAGE_PAIRS = [
53
+ ("af", "en"),
54
+ ("el", "en"),
55
+ ("en", "zh"),
56
+ ]
57
+
58
+
59
+ class SpcConfig(datasets.BuilderConfig):
60
+ def __init__(self, *args, lang1=None, lang2=None, **kwargs):
61
+ super().__init__(
62
+ *args,
63
+ name=f"{lang1}-{lang2}",
64
+ **kwargs,
65
+ )
66
+ self.lang1 = lang1
67
+ self.lang2 = lang2
68
+
69
+
70
+ class Spc(datasets.GeneratorBasedBuilder):
71
+ BUILDER_CONFIGS = [
72
+ SpcConfig(
73
+ lang1=lang1,
74
+ lang2=lang2,
75
+ description=f"Translating {lang1} to {lang2} or vice versa",
76
+ version=datasets.Version(_VERSION),
77
+ )
78
+ for lang1, lang2 in _LANGUAGE_PAIRS
79
+ ]
80
+ BUILDER_CONFIG_CLASS = SpcConfig
81
+
82
+ def _info(self):
83
+ return datasets.DatasetInfo(
84
+ description=_DESCRIPTION,
85
+ features=datasets.Features(
86
+ {
87
+ "id": datasets.Value("string"),
88
+ "translation": datasets.Translation(languages=(self.config.lang1, self.config.lang2)),
89
+ },
90
+ ),
91
+ supervised_keys=None,
92
+ homepage=_HOMEPAGE_URL,
93
+ citation=_CITATION,
94
+ )
95
+
96
+ def _split_generators(self, dl_manager):
97
+ def _base_url(lang1, lang2):
98
+ return _BASE_URL.format(lang1, lang2)
99
+
100
+ download_url = _base_url(self.config.lang1, self.config.lang2)
101
+ path = dl_manager.download_and_extract(download_url)
102
+ return [
103
+ datasets.SplitGenerator(
104
+ name=datasets.Split.TRAIN,
105
+ gen_kwargs={"datapath": path},
106
+ )
107
+ ]
108
+
109
+ def _generate_examples(self, datapath):
110
+ l1, l2 = self.config.lang1, self.config.lang2
111
+ folder = l1 + "-" + l2
112
+ l1_file = _BASE_NAME.format(folder, l1)
113
+ l2_file = _BASE_NAME.format(folder, l2)
114
+ l1_path = os.path.join(datapath, l1_file)
115
+ l2_path = os.path.join(datapath, l2_file)
116
+ with open(l1_path, encoding="utf-8") as f1, open(l2_path, encoding="utf-8") as f2:
117
+ for sentence_counter, (x, y) in enumerate(zip(f1, f2)):
118
+ x = x.strip()
119
+ y = y.strip()
120
+ result = (
121
+ sentence_counter,
122
+ {
123
+ "id": str(sentence_counter),
124
+ "translation": {l1: x, l2: y},
125
+ },
126
+ )
127
+ yield result