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

- **Additional Documentation** :
  [Explore on Papers With Code](https://paperswithcode.com/dataset/wmt-2018-news)

- **Homepage** :
  <http://www.statmt.org/wmt18/translation-task.html>

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

- **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](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):
  Not supported.

- **Citation**:

    @InProceedings{bojar-EtAl:2018:WMT1,
      author    = {Bojar, Ond {r}ej  and  Federmann, Christian  and  Fishel, Mark
        and Graham, Yvette  and  Haddow, Barry  and  Huck, Matthias  and
        Koehn, Philipp  and  Monz, Christof},
      title     = {Findings of the 2018 Conference on Machine Translation (WMT18)},
      booktitle = {Proceedings of the Third Conference on Machine Translation,
        Volume 2: Shared Task Papers},
      month     = {October},
      year      = {2018},
      address   = {Belgium, Brussels},
      publisher = {Association for Computational Linguistics},
      pages     = {272--307},
      url       = {http://www.aclweb.org/anthology/W18-6401}
    }

## wmt18_translate/cs-en (default config)

- **Config description**: WMT 2018 cs-en translation task dataset.

- **Download size** : `1.89 GiB`

- **Dataset size** : `3.84 GiB`

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

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 2,983 |
| `'train'` | 24,021,877 |
| `'validation'` | 3,005 |

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

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

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

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

## wmt18_translate/de-en

- **Config description**: WMT 2018 de-en translation task dataset.

- **Download size** : `3.55 GiB`

- **Dataset size** : `8.44 GiB`

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

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 2,998 |
| `'train'` | 42,271,874 |
| `'validation'` | 3,004 |

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

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

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

## wmt18_translate/et-en

- **Config description**: WMT 2018 et-en translation task dataset.

- **Download size** : `499.91 MiB`

- **Dataset size** : `663.80 MiB`

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

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 2,000 |
| `'train'` | 2,175,873 |
| `'validation'` | 2,000 |

- **Feature structure**:

    Translation({
        'en': Text(shape=(), dtype=string),
        'et': Text(shape=(), dtype=string),
    })

- **Feature documentation**:

| Feature | Class | Shape | Dtype | Description |
|---|---|---|---|---|
|   | Translation |   |   |   |
| en | Text |   | string |   |
| et | Text |   | string |   |

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

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

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

## wmt18_translate/fi-en

- **Config description**: WMT 2018 fi-en translation task dataset.

- **Download size** : `468.76 MiB`

- **Dataset size** : `889.40 MiB`

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

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 3,000 |
| `'train'` | 3,280,600 |
| `'validation'` | 6,004 |

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

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

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

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

## wmt18_translate/ru-en

- **Config description**: WMT 2018 ru-en translation task dataset.

- **Download size** : `1.63 GiB`

- **Dataset size** : `13.89 GiB`

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

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 3,000 |
| `'train'` | 37,858,512 |
| `'validation'` | 3,001 |

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

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

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

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

## wmt18_translate/tr-en

- **Config description**: WMT 2018 tr-en translation task dataset.

- **Download size** : `59.32 MiB`

- **Dataset size** : `63.78 MiB`

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

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 3,000 |
| `'train'` | 205,756 |
| `'validation'` | 3,007 |

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

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

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

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

## wmt18_translate/zh-en

- **Config description**: WMT 2018 zh-en translation task dataset.

- **Download size** : `831.45 MiB`

- **Dataset size** : `6.43 GiB`

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

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 3,981 |
| `'train'` | 25,162,209 |
| `'validation'` | 2,001 |

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

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

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

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