- 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)
Source code:
tfds.translate.Wmt13Translate
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.Auto-cached (documentation): No
Figure (tfds.show_examples): Not supported.
Citation:
@InProceedings{bojar-EtAl:2013:WMT,
author = {Bojar, Ondrej and Buck, Christian and Callison-Burch, Chris and Federmann, Christian and Haddow, Barry and Koehn, Philipp and Monz, Christof and Post, Matt and Soricut, Radu and Specia, Lucia},
title = {Findings of the 2013 {Workshop on Statistical Machine Translation} },
booktitle = {Proceedings of the Eighth Workshop on Statistical Machine Translation},
month = {August},
year = {2013},
address = {Sofia, Bulgaria},
publisher = {Association for Computational Linguistics},
pages = {1--44},
url = {http://www.aclweb.org/anthology/W13-2201}
}
wmt13_translate/cs-en (default config)
Config description: WMT 2013 cs-en translation task dataset.
Download size:
1.59 GiB
Dataset size:
2.89 GiB
Splits:
Split | Examples |
---|---|
'test' |
3,000 |
'train' |
15,780,759 |
'validation' |
13,573 |
- 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):
wmt13_translate/de-en
Config description: WMT 2013 de-en translation task dataset.
Download size:
1.59 GiB
Dataset size:
1.36 GiB
Splits:
Split | Examples |
---|---|
'test' |
3,000 |
'train' |
4,485,758 |
'validation' |
13,573 |
- 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):
wmt13_translate/fr-en
Config description: WMT 2013 fr-en translation task dataset.
Download size:
6.21 GiB
Dataset size:
14.64 GiB
Splits:
Split | Examples |
---|---|
'test' |
3,000 |
'train' |
40,810,860 |
'validation' |
13,573 |
- Feature structure:
Translation({
'en': Text(shape=(), dtype=string),
'fr': Text(shape=(), dtype=string),
})
- Feature documentation:
Feature | Class | Shape | Dtype | Description |
---|---|---|---|---|
Translation | ||||
en | Text | string | ||
fr | Text | string |
Supervised keys (See
as_supervised
doc):('fr', 'en')
Examples (tfds.as_dataframe):
wmt13_translate/es-en
Config description: WMT 2013 es-en translation task dataset.
Download size:
3.79 GiB
Dataset size:
5.24 GiB
Splits:
Split | Examples |
---|---|
'test' |
3,000 |
'train' |
15,176,790 |
'validation' |
13,573 |
- Feature structure:
Translation({
'en': Text(shape=(), dtype=string),
'es': Text(shape=(), dtype=string),
})
- Feature documentation:
Feature | Class | Shape | Dtype | Description |
---|---|---|---|---|
Translation | ||||
en | Text | string | ||
es | Text | string |
Supervised keys (See
as_supervised
doc):('es', 'en')
Examples (tfds.as_dataframe):
wmt13_translate/ru-en
Config description: WMT 2013 ru-en translation task dataset.
Download size:
1010.20 MiB
Dataset size:
833.67 MiB
Splits:
Split | Examples |
---|---|
'test' |
3,000 |
'train' |
2,471,670 |
'validation' |
3,003 |
- 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):