首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >下载allennlp预训练的模型出错ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.如何解决呢?

下载allennlp预训练的模型出错ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.如何解决呢?

提问于 2024-05-08 16:56:29
回答 0关注 0查看 40

想要使用allennlp工具对句子单词词性进行标注,需要下载预训练的模型使用

代码语言:javascript
复制
predictor = Predictor.from_path("https://storage.googleapis.com/allennlp-public-models/bert-base-srl-2020.03.24.tar.gz")

但是总是下载不下来,出现该错误

ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.

手动点击该path的网址下载了bert-base-srl-2020.03.24.tar.gz这个文件,但是本地导入仍旧出现一样的报错,应该怎么解决呢?

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档