数据集:
wmt17
警告:Common Crawl语料库数据存在问题( training-parallel-commoncrawl.tgz ):
我们已联系WMT组织者。
基于statmt.org的数据的翻译数据集。
存在不同年份的版本,使用不同的数据源组合。基本的wmt可以通过选择自己的数据/语言对来创建自定义数据集。操作方式如下:
from datasets import inspect_dataset, load_dataset_builder inspect_dataset("wmt17", "path/to/scripts") builder = load_dataset_builder( "path/to/scripts/wmt_utils.py", language_pair=("fr", "de"), subsets={ datasets.Split.TRAIN: ["commoncrawl_frde"], datasets.Split.VALIDATION: ["euelections_dev2019"], }, ) # Standard version builder.download_and_prepare() ds = builder.as_dataset() # Streamable version ds = builder.as_streaming_dataset()
'train'的示例如下所示。
所有拆分中的数据字段相同。
cs-enname | train | validation | test |
---|---|---|---|
cs-en | 1018291 | 2999 | 3005 |
@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} }
感谢 @patrickvonplaten 、 @thomwolf 添加了此数据集。