nltk_data Error loading punkt: urlopen error

深藏阁楼爱情的钟 2023-05-29 03:56 120阅读 0赞

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

  1. # nltk.download('punkt', quiet=True) # make sure it's downloaded before using
  2. Connected to pydev debugger (build 192.6817.19)
  3. Using TensorFlow backend.
  4. [nltk_data] Error loading punkt: <urlopen error [WinError 10060]
  5. [nltk_data] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。>
  6. 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
  7. Building prefix dict from the default dictionary ...

发表评论

表情:
评论列表 (有 0 条评论,120人围观)

还没有评论,来说两句吧...

相关阅读