0

我正在使用 facebook 拥抱脸转换器处理语音数据集,但无法从 commonvoice 论坛加载数据

from datasets import load_dataset, load_metric
common_voice_train = load_dataset("common_voice", "id", split="train+validation")
common_voice_test = load_dataset("common_voice", "id", split="test")

它给出以下错误

  Couldn't find file locally at common_voice/common_voice.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.4.1/datasets/common_voice/common_voice.py.
The file was picked from the master branch on github instead at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/common_voice/common_voice.py.
4

1 回答 1

0

您正在使用 Hugging Face 轻量级数据集库来加载 Common Voice 存储库数据集。该id参数必须替换为builder配置参数,例如,如果要从Common Voice语料库中加载英文数据集,builder配置参数为en

您可以在 Common Voice 存储库中查看参数。它在提到版本的地方加上前缀。

于 2022-02-13T08:44:11.580 回答