在ktrain包中使用bert时出现sslcertverificationerror

mum43rcc  于 2021-09-08  发布在  Java
关注(0)|答案(0)|浏览(343)

我使用的是jupyter中的ktrain包,代码来自此笔记本。我在线路上出错了 qa = text.SimpleQA(INDEXDIR) . 错误很长,但缩短的版本如下所示:

HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-large-uncased-whole-word-masking-finetuned-squad/resolve/main/config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)')))
HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-large-uncased-whole-word-masking-finetuned-squad/resolve/main/config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)')))

OSError: Can't load config for 'bert-large-uncased-whole-word-masking-finetuned-squad'. Make sure that:

- 'bert-large-uncased-whole-word-masking-finetuned-squad' is a correct model identifier listed on 'https://huggingface.co/models'

- or 'bert-large-uncased-whole-word-masking-finetuned-squad' is the correct path to a directory containing a config.json file

我可以访问https://huggingface.co/bert-large-uncased-whole-word-masking-finetuned-squad/resolve/main/config.json 在我的浏览器上。我完全不知道该怎么做——我的编码技能充其量也只是最低限度的,所以任何和所有的建议都将不胜感激。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题