system HF staff commited on
Commit
622e8c9
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,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - expert-generated
6
+ - machine-generated
7
+ languages:
8
+ - en
9
+ licenses:
10
+ - ms-pl
11
+ multilinguality:
12
+ - monolingual
13
+ - translation
14
+ size_categories:
15
+ - 1K<n<10K
16
+ source_datasets:
17
+ - extended|other-newstest2017
18
+ task_categories:
19
+ - conditional-text-generation
20
+ task_ids:
21
+ - machine-translation
22
+ ---
23
+
24
+ # Dataset Card for msr_zhen_translation_parity
25
+
26
+ ## Table of Contents
27
+ - [Dataset Description](#dataset-description)
28
+ - [Dataset Summary](#dataset-summary)
29
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
30
+ - [Languages](#languages)
31
+ - [Dataset Structure](#dataset-structure)
32
+ - [Data Instances](#data-instances)
33
+ - [Data Fields](#data-instances)
34
+ - [Data Splits](#data-instances)
35
+ - [Dataset Creation](#dataset-creation)
36
+ - [Curation Rationale](#curation-rationale)
37
+ - [Source Data](#source-data)
38
+ - [Annotations](#annotations)
39
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
40
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
41
+ - [Social Impact of Dataset](#social-impact-of-dataset)
42
+ - [Discussion of Biases](#discussion-of-biases)
43
+ - [Other Known Limitations](#other-known-limitations)
44
+ - [Additional Information](#additional-information)
45
+ - [Dataset Curators](#dataset-curators)
46
+ - [Licensing Information](#licensing-information)
47
+ - [Citation Information](#citation-information)
48
+
49
+ ## Dataset Description
50
+
51
+ - **Homepage:**
52
+
53
+ [Translator Human Parity Data](https://msropendata.com/datasets/93f9aa87-9491-45ac-81c1-6498b6be0d0b)
54
+
55
+ - **Repository:**
56
+ - **Paper:**
57
+
58
+ [Achieving Human Parity on Automatic Chinese to English News Translation](https://www.microsoft.com/en-us/research/publication/achieving-human-parity-on-automatic-chinese-to-english-news-translation/)
59
+
60
+ - **Leaderboard:**
61
+ - **Point of Contact:**
62
+
63
+ ### Dataset Summary
64
+
65
+ > Human evaluation results and translation output for the Translator Human Parity Data release,
66
+ > as described in https://blogs.microsoft.com/ai/machine-translation-news-test-set-human-parity/
67
+
68
+ > The Translator Human Parity Data release contains all human evaluation results and translations
69
+ > related to our paper "Achieving Human Parity on Automatic Chinese to English News Translation",
70
+ > published on March 14, 2018. We have released this data to
71
+
72
+ > 1) allow external validation of our claim of having achieved human parity
73
+ > 2) to foster future research by releasing two additional human references
74
+ > for the Reference-WMT test set.
75
+ >
76
+
77
+ The dataset includes:
78
+
79
+ 1) two new references for Chinese-English language pair of WMT17,
80
+ one based on human translation from scratch (Reference-HT),
81
+ the other based on human post-editing (Reference-PE);
82
+
83
+ 2) human parity translations generated by our research systems Combo-4, Combo-5, and Combo-6,
84
+ as well as translation output from online machine translation service Online-A-1710,
85
+ collected on October 16, 2017;
86
+
87
+ The data package provided with the study also includes (but not parsed and provided as
88
+ workable features of this dataset) all data points collected in human evaluation campaigns.
89
+
90
+ ### Supported Tasks and Leaderboards
91
+
92
+ [More Information Needed]
93
+
94
+ ### Languages
95
+
96
+ This dataset contains 6 extra English translations to Chinese-English language pair of WMT17.
97
+
98
+ ## Dataset Structure
99
+
100
+ ### Data Instances
101
+
102
+ [More Information Needed]
103
+
104
+ ### Data Fields
105
+
106
+ As mentioned in the summary, this dataset provides 6 extra English translations of
107
+ Chinese-English language pair of WMT17.
108
+
109
+ Data fields are named exactly like the associated paper for easier cross-referenceing.
110
+
111
+ - `Reference-HT`: human translation from scrach.
112
+ - `Reference-PE`: human post-editing.
113
+ - `Combo-4`, `Combo-5`, `Combo-6`: three translations by research systems.
114
+ - `Online-A-1710`: a translation from an anonymous online machine translation service.
115
+
116
+ All data fields of a record are translations for the same Chinese source sentence.
117
+
118
+ ### Data Splits
119
+
120
+ [More Information Needed]
121
+
122
+ ## Dataset Creation
123
+
124
+ ### Curation Rationale
125
+
126
+ [More Information Needed]
127
+
128
+ ### Source Data
129
+
130
+ #### Initial Data Collection and Normalization
131
+
132
+ [More Information Needed]
133
+
134
+ #### Who are the source language producers?
135
+
136
+ [More Information Needed]
137
+
138
+ ### Annotations
139
+
140
+ #### Annotation process
141
+
142
+ [More Information Needed]
143
+
144
+ #### Who are the annotators?
145
+
146
+ [More Information Needed]
147
+
148
+ ### Personal and Sensitive Information
149
+
150
+ [More Information Needed]
151
+
152
+ ## Considerations for Using the Data
153
+
154
+ ### Social Impact of Dataset
155
+
156
+ [More Information Needed]
157
+
158
+ ### Discussion of Biases
159
+
160
+ [More Information Needed]
161
+
162
+ ### Other Known Limitations
163
+
164
+ [More Information Needed]
165
+
166
+ ## Additional Information
167
+
168
+ ### Dataset Curators
169
+
170
+ [More Information Needed]
171
+
172
+ ### Licensing Information
173
+
174
+ [More Information Needed]
175
+
176
+ ### Citation Information
177
+
178
+ Citation information is available at this link [Achieving Human Parity on Automatic Chinese to English News Translation](https://www.microsoft.com/en-us/research/publication/achieving-human-parity-on-automatic-chinese-to-english-news-translation/)
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"default": {"description": "Translator Human Parity Data\n\nHuman evaluation results and translation output for the Translator Human Parity Data release, \nas described in https://blogs.microsoft.com/ai/machine-translation-news-test-set-human-parity/. \nThe Translator Human Parity Data release contains all human evaluation results and translations\nrelated to our paper \"Achieving Human Parity on Automatic Chinese to English News Translation\", \npublished on March 14, 2018.\n", "citation": "@misc{hassan2018achieving,\n title={Achieving Human Parity on Automatic Chinese to English News Translation}, \n author={ Hany Hassan and Anthony Aue and Chang Chen and Vishal Chowdhary and Jonathan Clark \n and Christian Federmann and Xuedong Huang and Marcin Junczys-Dowmunt and William Lewis \n and Mu Li and Shujie Liu and Tie-Yan Liu and Renqian Luo and Arul Menezes and Tao Qin \n and Frank Seide and Xu Tan and Fei Tian and Lijun Wu and Shuangzhi Wu and Yingce Xia \n and Dongdong Zhang and Zhirui Zhang and Ming Zhou},\n year={2018},\n eprint={1803.05567},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}", "homepage": "https://msropendata.com/datasets/93f9aa87-9491-45ac-81c1-6498b6be0d0b", "license": "", "features": {"Reference-HT": {"dtype": "string", "id": null, "_type": "Value"}, "Reference-PE": {"dtype": "string", "id": null, "_type": "Value"}, "Combo-4": {"dtype": "string", "id": null, "_type": "Value"}, "Combo-5": {"dtype": "string", "id": null, "_type": "Value"}, "Combo-6": {"dtype": "string", "id": null, "_type": "Value"}, "Online-A-1710": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "msr_zhen_translation_parity", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1797033, "num_examples": 2001, "dataset_name": "msr_zhen_translation_parity"}}, "download_checksums": {}, "download_size": 0, "post_processing_size": null, "dataset_size": 1797033, "size_in_bytes": 1797033}}
dummy/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60c71290ad3a9ed3ac7ebf7c7ab6222e2e493afab8fd98439d938d04bd4343c4
3
+ size 10458
msr_zhen_translation_parity.py ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """Microsoft Research: Translator Human Parity Data"""
16
+
17
+ from __future__ import absolute_import, division, print_function
18
+
19
+ import os
20
+
21
+ import datasets
22
+
23
+
24
+ _DESCRIPTION = """\
25
+ Translator Human Parity Data
26
+
27
+ Human evaluation results and translation output for the Translator Human Parity Data release,
28
+ as described in https://blogs.microsoft.com/ai/machine-translation-news-test-set-human-parity/.
29
+ The Translator Human Parity Data release contains all human evaluation results and translations
30
+ related to our paper "Achieving Human Parity on Automatic Chinese to English News Translation",
31
+ published on March 14, 2018.
32
+ """
33
+
34
+ _LICENSE = """\
35
+ See the Microsoft Research Data License Agreement.
36
+ """
37
+
38
+ _CITATION = """\
39
+ @misc{hassan2018achieving,
40
+ title={Achieving Human Parity on Automatic Chinese to English News Translation},
41
+ author={ Hany Hassan and Anthony Aue and Chang Chen and Vishal Chowdhary and Jonathan Clark
42
+ and Christian Federmann and Xuedong Huang and Marcin Junczys-Dowmunt and William Lewis
43
+ and Mu Li and Shujie Liu and Tie-Yan Liu and Renqian Luo and Arul Menezes and Tao Qin
44
+ and Frank Seide and Xu Tan and Fei Tian and Lijun Wu and Shuangzhi Wu and Yingce Xia
45
+ and Dongdong Zhang and Zhirui Zhang and Ming Zhou},
46
+ year={2018},
47
+ eprint={1803.05567},
48
+ archivePrefix={arXiv},
49
+ primaryClass={cs.CL}
50
+ }"""
51
+
52
+ _FILE_PATHS = [
53
+ ["References", "Translator-HumanParityData-Reference-HT.txt"],
54
+ ["References", "Translator-HumanParityData-Reference-PE.txt"],
55
+ ["Translations", "Translator-HumanParityData-Combo-4.txt"],
56
+ ["Translations", "Translator-HumanParityData-Combo-5.txt"],
57
+ ["Translations", "Translator-HumanParityData-Combo-6.txt"],
58
+ ["Translations", "Translator-HumanParityData-Online-A-1710.txt"],
59
+ ]
60
+
61
+ _FEATURE_NAMES = ["Reference-HT", "Reference-PE", "Combo-4", "Combo-5", "Combo-6", "Online-A-1710"]
62
+
63
+
64
+ class MsrZhenTranslationParity(datasets.GeneratorBasedBuilder):
65
+ """Microsoft Research: Translator Human Parity Data"""
66
+
67
+ VERSION = datasets.Version("1.0.0")
68
+
69
+ @property
70
+ def manual_download_instructions(self):
71
+ return """\
72
+ You need to go to https://msropendata.com/datasets/93f9aa87-9491-45ac-81c1-6498b6be0d0b,
73
+ and manually download translatorhumanparitydata2.zip (or translatorhumanparitydata2.tar.gz).
74
+ Once it is completed, extract its content into a directory, <path/to/folder>.
75
+ Within this directory, there are three subdirectories, Translations, References, and Evaluations.
76
+ The <path/to/folder> can e.g. be "~/Downloads/translatorhumanparitydata2", if you just double click the .zip file.
77
+ msr_zhen_translation_parity can then be loaded using the following command
78
+ `datasets.load_dataset("msr_zhen_translation_parity", data_dir="<path/to/folder>")`.
79
+ """
80
+
81
+ def _info(self):
82
+ feature_names = _FEATURE_NAMES
83
+ return datasets.DatasetInfo(
84
+ description=_DESCRIPTION,
85
+ features=datasets.Features({k: datasets.Value("string") for k in feature_names}),
86
+ supervised_keys=None,
87
+ homepage="https://msropendata.com/datasets/93f9aa87-9491-45ac-81c1-6498b6be0d0b",
88
+ citation=_CITATION,
89
+ )
90
+
91
+ def _split_generators(self, dl_manager):
92
+ """Returns SplitGenerators."""
93
+ path_to_manual_file = os.path.abspath(os.path.expanduser(dl_manager.manual_dir))
94
+
95
+ if not os.path.exists(path_to_manual_file):
96
+ raise FileNotFoundError(
97
+ "{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('msr_zhen_translation_parity', data_dir=...)`. Manual download instructions: {})".format(
98
+ path_to_manual_file, self.manual_download_instructions
99
+ )
100
+ )
101
+ return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
102
+
103
+ def _generate_examples(self, path=None, title_set=None):
104
+ data = []
105
+ for fp in _FILE_PATHS:
106
+ filepath = os.path.join(path, fp[0], fp[1])
107
+ with open(filepath, encoding="utf-8-sig") as f:
108
+ data.append(f.readlines())
109
+ examples = len(data[0])
110
+ for i in range(examples):
111
+ record = [x[i].rstrip("\r\n") for x in data]
112
+ yield i, dict(zip(_FEATURE_NAMES, record))