sklearn word2vec 实践
源代码: https://blog.csdn.net/github_38705794/article/details/75452729
一、复现时报错:
Traceback (most recent call last):
File "D:\Program\python3\lib\site-packages\nltk\corpus\util.py", line 80, in __load
try: root = nltk.data.find('{}/{}'.format(self.subdir, zip_name))
File "D:\Program\python3\lib\site-packages\nltk\data.py", line 675, in find
raise LookupError(resource_not_found)
LookupError:
解决方法:
https://stackoverflow.com/questions/26693736/nltk-and-stopwords-fail-lookuperror
You don't seem to have the stopwords corpus on your computer.
You need to start the NLTK Downloader and download all the data you need.
Open a Python console and do the following:
>>> import nltk
>>> nltk.download()
showing info http://nltk.github.com/nltk_data/
In the GUI window that opens simply press the 'Download' button to download all corpora or go to the 'Corpora' tab and only download the ones you need/want.
相关文章
- PyTorch最佳实践,怎样才能写出一手风格优美的代码
- 干货:调度算法的价值与阿里的应用实践
- 泥瓦匠:秒杀架构设计实践思路(一)
- 重新整理 .net core 实践篇—————应用分层[二十四]
- 综合实践_猜数字小游戏
- Atitit.异常的设计原理与 策略处理 java 最佳实践 p93
- Paip.最佳实践-- Buildin variale 内建变量 ,魔术变量,预定义变量,系统常量,系统变量 1
- 动手实践丨使用华为云IoT边缘体验“边云协同”
- 解读分布式调度平台Airflow在华为云MRS中的实践
- 快速迁移数据中心:华为云数据库SQL Server实践案例技术解析
- 【架构实践】软件架构设计最佳实践
- 【编程实践】分布式锁的实现代码
- RK3399平台开发系列讲解(项目实践篇)1.10、如何完成软硬件的绑定,从而做到软件加密