## LookupError: ********************************************************************** Resource ‘tokenizers/punkt/english.pickle’ not found. Please use the NLTK Downloader to obtain the resource: >>> nltk.download()
最近【深度学习】课程作业是实现一个推荐系统,查了一下论文,有NAML与NRMS模型可以选择,我选择的前者进行实现
NAML论文源码git地址:https://github.com/wuch15/IJCAI2019-NAML
在复现的过程中,遇上上述报错,查了一下,要使用nltk.download()方法,查阅资料,采取了以下解决方法:
https://blog.csdn.net/shuihupo/article/details/79626612
该方法直接调用nltk.download()
https://blog.csdn.net/qq_33686272/article/details/80401569
import nltk
nltk.set_proxy("**.com:8080",“username”,“password”)
nltk.download()
该方法会设置一个代理进行通信
但是很不凑巧,网络均链接失败…
无奈,非常仔细的查看报错提示,发现是缺少相关文件,也就是说补充相关文件就可以运行,遂在这篇blog的帮助下顺利解决:
https://blog.csdn.net/qq_43140627/article/details/103895811