albertvillanova HF staff commited on
Commit
7a35588
1 Parent(s): 0ad4e9b

Delete loading script

Browse files
Files changed (1) hide show
  1. wmt17.py +0 -83
wmt17.py DELETED
@@ -1,83 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The TensorFlow Datasets Authors and the 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
- """WMT17: Translate dataset."""
18
-
19
- import datasets
20
-
21
- from .wmt_utils import CWMT_SUBSET_NAMES, Wmt, WmtConfig
22
-
23
-
24
- _URL = "http://www.statmt.org/wmt17/translation-task.html"
25
- _CITATION = """
26
- @InProceedings{bojar-EtAl:2017:WMT1,
27
- author = {Bojar, Ond\v{r}ej and Chatterjee, Rajen and Federmann, Christian and Graham, Yvette and Haddow, Barry and Huang, Shujian and Huck, Matthias and Koehn, Philipp and Liu, Qun and Logacheva, Varvara and Monz, Christof and Negri, Matteo and Post, Matt and Rubino, Raphael and Specia, Lucia and Turchi, Marco},
28
- title = {Findings of the 2017 Conference on Machine Translation (WMT17)},
29
- booktitle = {Proceedings of the Second Conference on Machine Translation, Volume 2: Shared Task Papers},
30
- month = {September},
31
- year = {2017},
32
- address = {Copenhagen, Denmark},
33
- publisher = {Association for Computational Linguistics},
34
- pages = {169--214},
35
- url = {http://www.aclweb.org/anthology/W17-4717}
36
- }
37
- """
38
-
39
- _LANGUAGE_PAIRS = [(lang, "en") for lang in ["cs", "de", "fi", "lv", "ru", "tr", "zh"]]
40
-
41
-
42
- class Wmt17(Wmt):
43
- """WMT 17 translation datasets for all {xx, "en"} language pairs."""
44
-
45
- BUILDER_CONFIGS = [
46
- WmtConfig( # pylint:disable=g-complex-comprehension
47
- description="WMT 2017 %s-%s translation task dataset." % (l1, l2),
48
- url=_URL,
49
- citation=_CITATION,
50
- language_pair=(l1, l2),
51
- version=datasets.Version("1.0.0"),
52
- )
53
- for l1, l2 in _LANGUAGE_PAIRS
54
- ]
55
-
56
- @property
57
- def manual_download_instructions(self):
58
- if self.config.language_pair[1] in ["cs", "hi", "ru"]:
59
- return "Please download the data manually as explained. TODO(PVP)"
60
-
61
- @property
62
- def _subsets(self):
63
- return {
64
- datasets.Split.TRAIN: [
65
- "europarl_v7",
66
- "europarl_v8_16",
67
- "commoncrawl",
68
- "newscommentary_v12",
69
- "czeng_16",
70
- "yandexcorpus",
71
- "wikiheadlines_fi",
72
- "wikiheadlines_ru",
73
- "setimes_2",
74
- "uncorpus_v1",
75
- "rapid_2016",
76
- "leta_v1",
77
- "dcep_v1",
78
- "onlinebooks_v1",
79
- ]
80
- + CWMT_SUBSET_NAMES,
81
- datasets.Split.VALIDATION: ["newsdev2017", "newstest2016", "newstestB2016"],
82
- datasets.Split.TEST: ["newstest2017", "newstestB2017"],
83
- }