python - 无法从 HuggingFace 包加载数据集
问题描述
我正在尝试AMI
从HuggingFace 数据集包中加载数据集
from datasets import load_dataset, load_metric
dataset = load_dataset('ami','headset-single')
但是,我收到以下错误。我究竟做错了什么?
Couldn't find file locally at ami/ami.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.8.0/datasets/ami/ami.py.
The file was picked from the master branch on github instead at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/ami/ami.py.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-21-119884e81101> in <module>()
1 from datasets import load_dataset, load_metric
----> 2 dataset = load_dataset('ami','headset-single')
11 frames
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in task_template_from_dict(task_template_dict)
25 return None
26 template = NAME2TEMPLATE.get(task_name)
---> 27 return template.from_dict(task_template_dict)
AttributeError: 'NoneType' object has no attribute 'from_dict'
解决方案
推荐阅读
- r - 尝试从延迟加载的网站读取 html 时出错
- python - AWS Elastic Beanstalk Python (3.8) 平台:除了使用 `requirements.txt` 之外,为带有 `--no-deps` 标志的 Python 包运行额外的 pip 命令
- ajax - 购物车和结帐页面中增值税金额的 AJAX 更新 - Woocommerce
- julia - Julia REPL 中只允许有限输出的选项是什么?
- java - 我想创建一个方法来删除另一个给定堆栈中的堆栈中的所有元素
- javascript - 我的创建角色命令仅创建一个具有“新角色”名称的角色
- c# - C# 在 foreach 循环中调用函数
- java - 如何使用 Jooq 获取多个级别的一对多嵌套
- r - 直方图 ggplot2
- go - Go循环轮询案例分支中的并发未命中