当前位置:   article > 正文

nltk_data Error loading punkt: urlopen error_[nltk_data] error loading .:

[nltk_data] error loading .:

在使用magpie加载模型时报下面错误,
但是之前已经手工下载nltk_data放在指定目录了, 为啥还报错.
后来发现原来代码里最开始那里还是写了download的代码, 需要去掉即可

# nltk.download('punkt', quiet=True)  # make sure it's downloaded before using
  • 1
Connected to pydev debugger (build 192.6817.19)
Using TensorFlow backend.
[nltk_data] Error loading punkt: <urlopen error [WinError 10060]
[nltk_data]     由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。>
2019-11-01 10:43:13.491199: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Building prefix dict from the default dictionary ...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/377605
推荐阅读
相关标签