- 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
Source code:
tfds.translate.Wmt18Translate
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: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): 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):('cs', 'en')
Examples (tfds.as_dataframe):
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): 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):('de', 'en')
Examples (tfds.as_dataframe):
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): 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):('et', 'en')
Examples (tfds.as_dataframe):
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): 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):('fi', 'en')
Examples (tfds.as_dataframe):
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): 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):('ru', 'en')
Examples (tfds.as_dataframe):
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): 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):('tr', 'en')
Examples (tfds.as_dataframe):
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): 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):('zh', 'en')
Examples (tfds.as_dataframe):