美文网首页
[nltk_data] Error loading reuter

[nltk_data] Error loading reuter

作者: 在努力的Jie | 来源:发表于2019-07-17 00:16 被阅读0次

[nltk_data] Error loading reuters: <urlopen error [SSL:
[nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed
[nltk_data] (_ssl.c:749)>

import nltk
import ssl
try:
    _create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
    pass
else:
    ssl._create_default_https_context = _create_unverified_https_context

nltk.download()

相关文章

网友评论

      本文标题:[nltk_data] Error loading reuter

      本文链接:https://www.haomeiwen.com/subject/kxqflctx.html