wmt17_translate

  • Description:

Translate dataset based on the data from statmt.org.

Versions exists for the different years using a combination of multiple data sources. The base wmt_translate allows you to create your own config to choose your own data/language pair by creating a custom tfds.translate.wmt.WmtConfig.

config = tfds.translate.wmt.WmtConfig(
    version="0.0.1",
    language_pair=("fr", "de"),
    subsets={
        tfds.Split.TRAIN: ["commoncrawl_frde"],
        tfds.Split.VALIDATION: ["euelections_dev2019"],
    },
)
builder = tfds.builder("wmt_translate", config=config)
  • Homepage: http://www.statmt.org/wmt17/translation-task.html

  • Source code: tfds.translate.Wmt17Translate

  • Versions:

    • 1.0.0 (default): No release notes.
  • Manual download instructions: This dataset requires you to download the source data manually into download_config.manual_dir (defaults to ~/tensorflow_datasets/downloads/manual/):
    Some of the wmt configs here, require a manual download. Please look into wmt.py to see the exact path (and file name) that has to be downloaded.

  • Figure (tfds.show_examples): Not supported.

  • Citation:

@InProceedings{bojar-EtAl:2017:WMT1,
  author    = {Bojar, Ond
{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},
  title     = {Findings of the 2017 Conference on Machine Translation (WMT17)},
  booktitle = {Proceedings of the Second Conference on Machine Translation, Volume 2: Shared Task Papers},
  month     = {September},
  year      = {2017},
  address   = {Copenhagen, Denmark},
  publisher = {Association for Computational Linguistics},
  pages     = {169--214},
  url       = {http://www.aclweb.org/anthology/W17-4717}
}

wmt17_translate/cs-en (default config)

  • Config description: WMT 2017 cs-en translation task dataset.

  • Download size: 1.66 GiB

  • Dataset size: 2.91 GiB

  • Auto-cached (documentation): No

  • Splits:

Split Examples
'test' 3,005
'train' 15,851,649
'validation' 2,999
  • Feature structure:
Translation({
    'cs': Text(shape=(), dtype=string),
    'en': Text(shape=(), dtype=string),
})
  • Feature documentation:
Feature Class Shape Dtype Description
Translation
cs Text string
en Text string

wmt17_translate/de-en

  • Config description: WMT 2017 de-en translation task dataset.

  • Download size: 1.81 GiB

  • Dataset size: 1.73 GiB

  • Auto-cached (documentation): No

  • Splits:

Split Examples
'test' 3,004
'train' 5,906,184
'validation' 2,999
  • Feature structure:
Translation({
    'de': Text(shape=(), dtype=string),
    'en': Text(shape=(), dtype=string),
})
  • Feature documentation:
Feature Class Shape Dtype Description
Translation
de Text string
en Text string

wmt17_translate/fi-en

  • Config description: WMT 2017 fi-en translation task dataset.

  • Download size: 414.10 MiB

  • Dataset size: 769.87 MiB

  • Auto-cached (documentation): No

  • Splits:

Split Examples
'test' 6,004
'train' 2,656,542
'validation' 6,000
  • Feature structure:
Translation({
    'en': Text(shape=(), dtype=string),
    'fi': Text(shape=(), dtype=string),
})
  • Feature documentation:
Feature Class Shape Dtype Description
Translation
en Text string
fi Text string

wmt17_translate/lv-en

  • Config description: WMT 2017 lv-en translation task dataset.

  • Download size: 161.69 MiB

  • Dataset size: 562.26 MiB

  • Auto-cached (documentation): No

  • Splits:

Split Examples
'test' 2,001
'train' 3,567,528
'validation' 2,003
  • Feature structure:
Translation({
    'en': Text(shape=(), dtype=string),
    'lv': Text(shape=(), dtype=string),
})
  • Feature documentation:
Feature Class Shape Dtype Description
Translation
en Text string
lv Text string

wmt17_translate/ru-en

  • Config description: WMT 2017 ru-en translation task dataset.

  • Download size: 1.06 GiB

  • Dataset size: 11.18 GiB

  • Auto-cached (documentation): No

  • Splits:

Split Examples
'test' 3,001
'train' 25,782,720
'validation' 2,998
  • Feature structure:
Translation({
    'en': Text(shape=(), dtype=string),
    'ru': Text(shape=(), dtype=string),
})
  • Feature documentation:
Feature Class Shape Dtype Description
Translation
en Text string
ru Text string

wmt17_translate/tr-en

  • Config description: WMT 2017 tr-en translation task dataset.

  • Download size: 59.32 MiB

  • Dataset size: 63.74 MiB

  • Auto-cached (documentation): Yes

  • Splits:

Split Examples
'test' 3,007
'train' 205,756
'validation' 3,000
  • Feature structure:
Translation({
    'en': Text(shape=(), dtype=string),
    'tr': Text(shape=(), dtype=string),
})
  • Feature documentation:
Feature Class Shape Dtype Description
Translation
en Text string
tr Text string

wmt17_translate/zh-en

  • Config description: WMT 2017 zh-en translation task dataset.

  • Download size: 884.32 MiB

  • Dataset size: 6.43 GiB

  • Auto-cached (documentation): No

  • Splits:

Split Examples
'test' 2,001
'train' 25,136,609
'validation' 2,002
  • Feature structure:
Translation({
    'en': Text(shape=(), dtype=string),
    'zh': Text(shape=(), dtype=string),
})
  • Feature documentation:
Feature Class Shape Dtype Description
Translation
en Text string
zh Text string