albertvillanova HF staff commited on
Commit
519975e
1 Parent(s): 8e3dc35

Delete loading script

Browse files
Files changed (1) hide show
  1. wmt18.py +0 -86
wmt18.py DELETED
@@ -1,86 +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
- """WMT18: 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/wmt18/translation-task.html"
25
- _CITATION = """\
26
- @InProceedings{bojar-EtAl:2018:WMT1,
27
- author = {Bojar, Ond\v{r}ej and Federmann, Christian and Fishel, Mark
28
- and Graham, Yvette and Haddow, Barry and Huck, Matthias and
29
- Koehn, Philipp and Monz, Christof},
30
- title = {Findings of the 2018 Conference on Machine Translation (WMT18)},
31
- booktitle = {Proceedings of the Third Conference on Machine Translation,
32
- Volume 2: Shared Task Papers},
33
- month = {October},
34
- year = {2018},
35
- address = {Belgium, Brussels},
36
- publisher = {Association for Computational Linguistics},
37
- pages = {272--307},
38
- url = {http://www.aclweb.org/anthology/W18-6401}
39
- }
40
- """
41
-
42
- _LANGUAGE_PAIRS = [(lang, "en") for lang in ["cs", "de", "et", "fi", "kk", "ru", "tr", "zh"]]
43
-
44
-
45
- class Wmt18(Wmt):
46
- """WMT 18 translation datasets for all {xx, "en"} language pairs."""
47
-
48
- # Version history:
49
- # 1.0.0: S3 (new shuffling, sharding and slicing mechanism).
50
- BUILDER_CONFIGS = [
51
- WmtConfig( # pylint:disable=g-complex-comprehension
52
- description="WMT 2018 %s-%s translation task dataset." % (l1, l2),
53
- url=_URL,
54
- citation=_CITATION,
55
- language_pair=(l1, l2),
56
- version=datasets.Version("1.0.0"),
57
- )
58
- for l1, l2 in _LANGUAGE_PAIRS
59
- ]
60
-
61
- @property
62
- def manual_download_instructions(self):
63
- if self.config.language_pair[1] in ["cs", "hi", "ru"]:
64
- return "Please download the data manually as explained. TODO(PVP)"
65
-
66
- @property
67
- def _subsets(self):
68
- return {
69
- datasets.Split.TRAIN: [
70
- "europarl_v7",
71
- "europarl_v8_18",
72
- "paracrawl_v1",
73
- "commoncrawl",
74
- "newscommentary_v13",
75
- "czeng_17",
76
- "yandexcorpus",
77
- "wikiheadlines_fi",
78
- "wikiheadlines_ru",
79
- "setimes_2",
80
- "uncorpus_v1",
81
- "rapid_2016",
82
- ]
83
- + CWMT_SUBSET_NAMES,
84
- datasets.Split.VALIDATION: ["newsdev2018", "newstest2017", "newstestB2017"],
85
- datasets.Split.TEST: ["newstest2018"],
86
- }