You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> File "/home/aistudio/.cache/huggingface/modules/datasets_modules/datasets/squad_v2/dca5ba0e483a42ca20ec41a13e9fb630541d6fcb0ba646da3e8ff9a1f21fcb81/squad_v2.py", line 19, in <module>
230
+
> from datasets.tasks import QuestionAnsweringExtractive
231
+
> ModuleNotFoundError: No module named 'datasets.tasks'
232
+
233
+
那么需要对 datasets 进行版本更换。运行:
234
+
```shell
235
+
pip install -U "datasets>=2.14.6,<3.0.0"
236
+
```
237
+
安装 ```datasets-2.21.0```等版本可以正常运行。
238
+
239
+
240
+
#### Q2: 无法通过运行命令连接 huggingface 获取 SQuAD 数据集
241
+
1. 手动从[数据集官网](https://rajpurkar.github.io/SQuAD-explorer/)下载 training/dev set 并放在当前目录。
0 commit comments