|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""WMT15: Translate dataset.""" |
|
|
|
import datasets |
|
|
|
from .wmt_utils import Wmt, WmtConfig |
|
|
|
|
|
_URL = "http://www.statmt.org/wmt15/translation-task.html" |
|
_CITATION = """ |
|
@InProceedings{bojar-EtAl:2015:WMT, |
|
author = {Bojar, Ond\v{r}ej and Chatterjee, Rajen and Federmann, Christian and Haddow, Barry and Huck, Matthias and Hokamp, Chris and Koehn, Philipp and Logacheva, Varvara and Monz, Christof and Negri, Matteo and Post, Matt and Scarton, Carolina and Specia, Lucia and Turchi, Marco}, |
|
title = {Findings of the 2015 Workshop on Statistical Machine Translation}, |
|
booktitle = {Proceedings of the Tenth Workshop on Statistical Machine Translation}, |
|
month = {September}, |
|
year = {2015}, |
|
address = {Lisbon, Portugal}, |
|
publisher = {Association for Computational Linguistics}, |
|
pages = {1--46}, |
|
url = {http://aclweb.org/anthology/W15-3001} |
|
} |
|
""" |
|
|
|
_LANGUAGE_PAIRS = [(lang, "en") for lang in ["cs", "de", "fi", "fr", "ru"]] |
|
|
|
|
|
class Wmt15(Wmt): |
|
"""WMT 15 translation datasets for all {xx, "en"} language pairs.""" |
|
|
|
BUILDER_CONFIGS = [ |
|
WmtConfig( |
|
description="WMT 2015 %s-%s translation task dataset." % (l1, l2), |
|
url=_URL, |
|
citation=_CITATION, |
|
language_pair=(l1, l2), |
|
version=datasets.Version("1.0.0"), |
|
) |
|
for l1, l2 in _LANGUAGE_PAIRS |
|
] |
|
|
|
@property |
|
def manual_download_instructions(self): |
|
if self.config.language_pair[1] in ["cs", "hi", "ru"]: |
|
return "Please download the data manually as explained. TODO(PVP)" |
|
|
|
@property |
|
def _subsets(self): |
|
return { |
|
datasets.Split.TRAIN: [ |
|
"europarl_v7", |
|
"europarl_v8_16", |
|
"commoncrawl", |
|
"multiun", |
|
"newscommentary_v10", |
|
"gigafren", |
|
"czeng_10", |
|
"yandexcorpus", |
|
"wikiheadlines_fi", |
|
"wikiheadlines_ru", |
|
], |
|
datasets.Split.VALIDATION: ["newsdev2015", "newsdiscussdev2015", "newstest2014"], |
|
datasets.Split.TEST: ["newstest2015", "newsdiscusstest2015"], |
|
} |
|
|