赞
踩
在使用magpie加载模型时报下面错误,
但是之前已经手工下载nltk_data放在指定目录了, 为啥还报错.
后来发现原来代码里最开始那里还是写了download的代码, 需要去掉即可
# nltk.download('punkt', quiet=True) # make sure it's downloaded before using
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 ...
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。