albertvillanova HF staff commited on
Commit
3923157
1 Parent(s): 75bb1cf

Delete loading script

Browse files
Files changed (1) hide show
  1. wmt16.py +0 -72
wmt16.py DELETED
@@ -1,72 +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
- """WMT16: Translate dataset."""
18
-
19
- import datasets
20
-
21
- from .wmt_utils import Wmt, WmtConfig
22
-
23
-
24
- _URL = "http://www.statmt.org/wmt16/translation-task.html"
25
- _CITATION = """
26
- @InProceedings{bojar-EtAl:2016:WMT1,
27
- author = {Bojar, Ond\v{r}ej and Chatterjee, Rajen and Federmann, Christian and Graham, Yvette and Haddow, Barry and Huck, Matthias and Jimeno Yepes, Antonio and Koehn, Philipp and Logacheva, Varvara and Monz, Christof and Negri, Matteo and Neveol, Aurelie and Neves, Mariana and Popel, Martin and Post, Matt and Rubino, Raphael and Scarton, Carolina and Specia, Lucia and Turchi, Marco and Verspoor, Karin and Zampieri, Marcos},
28
- title = {Findings of the 2016 Conference on Machine Translation},
29
- booktitle = {Proceedings of the First Conference on Machine Translation},
30
- month = {August},
31
- year = {2016},
32
- address = {Berlin, Germany},
33
- publisher = {Association for Computational Linguistics},
34
- pages = {131--198},
35
- url = {http://www.aclweb.org/anthology/W/W16/W16-2301}
36
- }
37
- """
38
-
39
- _LANGUAGE_PAIRS = [(lang, "en") for lang in ["cs", "de", "fi", "ro", "ru", "tr"]]
40
-
41
-
42
- class Wmt16(Wmt):
43
- """WMT 16 translation datasets for all {xx, "en"} language pairs."""
44
-
45
- BUILDER_CONFIGS = [
46
- WmtConfig( # pylint:disable=g-complex-comprehension
47
- description="WMT 2016 %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 _subsets(self):
58
- return {
59
- datasets.Split.TRAIN: [
60
- "europarl_v7",
61
- "europarl_v8_16",
62
- "commoncrawl",
63
- "newscommentary_v11",
64
- "czeng_16pre",
65
- "yandexcorpus",
66
- "wikiheadlines_fi",
67
- "wikiheadlines_ru",
68
- "setimes_2",
69
- ],
70
- datasets.Split.VALIDATION: ["newsdev2016", "newstest2015"],
71
- datasets.Split.TEST: ["newstest2016", "newstestB2016"],
72
- }