nltk_data Error loading punkt: urlopen error

在使用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 ...
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值