数据集:
wmt18
警告:Common Crawl语料库数据存在问题( training-parallel-commoncrawl.tgz ):
我们已联系WMT组织者。
翻译数据集基于statmt.org的数据。
根据不同年份的版本,使用了多个数据源。基本数据集wmt允许您通过选择自己的数据/语言对来创建自定义数据集。操作如下:
from datasets import inspect_dataset, load_dataset_builder inspect_dataset("wmt18", "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()
'validation'的示例如下。
所有拆分之间的数据字段相同。
cs-enname | train | validation | test |
---|---|---|---|
cs-en | 11046024 | 3005 | 2983 |
@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} }
感谢 @thomwolf , @patrickvonplaten 添加了这个数据集。