<br />

> [!WARNING]
> **Warning:** Manual download required. See instructions below.

- **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)

- **Config description**: WMT T2T EnDe translation task dataset.

- **Homepage** :
  <https://github.com/tensorflow/tensor2tensor/blob/master/tensor2tensor/data_generators/translate_ende.py>

- **Source code** :
  [`tfds.translate.WmtT2tTranslate`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/translate/wmt_t2t.py)

- **Versions**:

  - **`1.0.0`** (default): No release notes.
- **Download size** : `1.61 GiB`

- **Dataset size** : `1.39 GiB`

- **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.

- **Auto-cached**
  ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
  No

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 3,003 |
| `'train'` | 4,592,289 |
| `'validation'` | 3,000 |

- **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 |   |

- **Supervised keys** (See
  [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)):
  `('de', 'en')`

- **Figure**
  ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):
  Not supported.

- **Examples**
  ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):

<iframe src="https:///frame/datasets/catalog/wmt_t2t_translate_91283e43918c4c9a7c98d949d803fdddd782bd63073d10fe34f325577aa19aa4.frame" class="framebox inherit-locale " allow="clipboard-write https://" allowfullscreen is-upgraded></iframe>

- **Citation**:

    @InProceedings{bojar-EtAl:2014:W14-33,
      author    = {Bojar, Ondrej  and  Buck, Christian  and  Federmann, Christian  and  Haddow, Barry  and  Koehn, Philipp  and  Leveling, Johannes  and  Monz, Christof  and  Pecina, Pavel  and  Post, Matt  and  Saint-Amand, Herve  and  Soricut, Radu  and  Specia, Lucia  and  Tamchyna, Ale {s} },
      title     = {Findings of the 2014 Workshop on Statistical Machine Translation},
      booktitle = {Proceedings of the Ninth Workshop on Statistical Machine Translation},
      month     = {June},
      year      = {2014},
      address   = {Baltimore, Maryland, USA},
      publisher = {Association for Computational Linguistics},
      pages     = {12--58},
      url       = {http://www.aclweb.org/anthology/W/W14/W14-3302}
    }

## wmt_t2t_translate/de-en (default config)