当前位置:网站首页>Apprentissage automatique | nltk Erreur de téléchargement des données | solution d'erreur de téléchargement du corpus stopwords pour nltk
Apprentissage automatique | nltk Erreur de téléchargement des données | solution d'erreur de téléchargement du corpus stopwords pour nltk
2022-06-22 09:12:00 【Petite marque de déchirure Zhu】
Catalogue des articles
Code d'erreur
import nltk
nltk.download('stopwords')
#or
import nltk
from nltk.corpus import stopwords
stopword = stopwords.words('english')
print(len(stopword))
Message d'erreur
[nltk_data] Error loading stopwords: <urlopen error [Errno 11004]
[nltk_data] getaddrinfo failed>
False
# or
....
LookupError:
**********************************************************************
Resource stopwords not found.
Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('stopwords')
For more information see: https://www.nltk.org/data.html
Attempted to load corpora/stopwords
Searched in:
- 'C:\\Users\\lenovo/nltk_data'
- 'd:\\python3\\nltk_data'
- 'd:\\python3\\share\\nltk_data'
- 'd:\\python3\\lib\\nltk_data'
- 'C:\\Users\\lenovo\\AppData\\Roaming\\nltk_data'
- 'C:\\nltk_data'
- 'D:\\nltk_data'
- 'E:\\nltk_data'
**********************************************************************
Présentation de photos


Solutions
- Télécharger la langue ( Selon le code ci - dessus, il me suffit de télécharger stopwordDocumentation)
Adresse de téléchargement recommandée: Cliquez pour GitHubTélécharger le site Web

Trouvez les modules dont vous avez besoin(Corpus)
Mon code a besoin destopwords
- Créer un nouveau dossier localement( Attention à créer manuellement
corporaTable des matières)
Notez que c'est n'importe quel chemin vers l'information d'erreur

Voir le chemin de l'image

Encore une fois.,Succès!!!
import nltk
from nltk.corpus import stopwords
stopword = stopwords.words('english')
print(len(stopword))

边栏推荐
- MySQL field attribute list sends a document for future reference
- 求余弦的大小
- .a文件链接库的使用
- VMware installation Kali
- 循环队列超详细实现,小白秒懂
- Servlet的生命周期
- When easypoi imports the secondary header data of an excel file, the data in the first column of the @excelentity entity class is null
- C语言刷题 | 温度转换(11)
- XSS vulnerability attack
- C语言刷题 | 三目运算实现判断大写(16)
猜你喜欢

性能优化专题

Threejs implementation of simple panoramic view demo

Deeply analyze the usage of final keyword

项目优化+上线(掌握了么?)

文件小能手---multer

【目标检测】|检测错误机制 Why Object Detectors Fail: Investigating the Influence of the Dataset

希望越来越多的女性从事科技工作

Interview shock 59: can there be multiple auto increment columns in a table?

OpenCV每日函数 直方图相关(3)

pytorch OSError: DLL load failed: 问题解决方法
随机推荐
字符串与内存操作函数详解与模拟实现
CF1267G Game Relics
Volumedetect of ffmpeg
Report: in the technical field, men are more likely to get job interviews
The difference between scnprintf and snprintf
版本问题导致“无法定位程序输入点OPENSSL_sk_new_reserve于动态链接库C:\Users...\libssl-1_1-x64.dll”
Introduction to ten free and open source PHP online stores abroad
C语言刷题 | 输入一个数输出对应的值(13)
【目标检测】|检测错误机制 Why Object Detectors Fail: Investigating the Influence of the Dataset
What is defi and what mode is defi?
kali木马入侵win7系统
.a文件链接库的使用
景联文科技:机器学习AI数据集产品汇总(三)
Stream流创建_操作_收集_案例
It is hoped that more and more women will engage in scientific and technological work
IS_ ERR()
Spark yard memory resource calculation and analysis (Reference) -- optimized configuration of executor cores, nums and memory
STM32 crashes when upgrading bootloader to jump app Online
list_head
ffmpeg之volumedetect
