添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
深情的单杠  ·  Resource stopwords ...·  1 月前    · 
帅气的玉米  ·  Unable to download ...·  1 月前    · 
性感的灯泡  ·  Error while creating ...·  1 月前    · 
宽容的莲藕  ·  Implementing N-Grams ...·  1 月前    · 
爱健身的跑步鞋  ·  Paperless Error NLTK ...·  1 月前    · 
微笑的汉堡包  ·  Springboot Thymeleaf ...·  2 年前    · 
眼睛小的大葱  ·  OC ...·  2 年前    · 

Resource stopwords not found. #3063

@mycar98765

Description

I get the following error:

**********************************************************************
  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:
    - '/Users/name/nltk_data'
    - '/Library/Frameworks/Python.framework/Versions/3.7/nltk_data'
    - '/Library/Frameworks/Python.framework/Versions/3.7/share/nltk_data'
    - '/Library/Frameworks/Python.framework/Versions/3.7/lib/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
**********************************************************************

I get the above error when using the following code:
from nltk.corpus import stopwords

How to fix the error? Any help would be greatly appreciated. Thank you in advance!