NLTK下载数据的方法

NLTK ERROR LOADING 问题解决方法(使用nltk下载)

参考:https://blog.csdn.net/justlpf/article/details/121707223

https://www.nltk.org/data.html#

 

 

 

 

手动从这歌网站下载zip

https://github.com/nltk/nltk_data/tree/gh-pages

 

 

如果解压缩失败,使用这个网站下载github的链接,注意是复制zip的链接

https://d.serctl.com

输入下面这条

https://d.serctl.com/?url=https://github.com/nltk/nltk_data/archive/refs/heads/gh-pages.zip

 

参考官方文档的要求,需要新建nltk_data文件夹,同时新建相应的文件夹https://www.nltk.org/data.html#

Manual installation

Create a folder nltk_data, e.g. C:\nltk_data, or /usr/local/share/nltk_data, and subfolders chunkersgrammarsmiscsentimenttaggerscorporahelpmodelsstemmerstokenizers.

Download individual packages from https://www.nltk.org/nltk_data/ (see the “download” links). Unzip them to the appropriate subfolder. For example, the Brown Corpus, found at:https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/packages/corpora/brown.zip is to be unzipped to nltk_data/corpora/brown.

Set your NLTK_DATA environment variable to point to your top level nltk_data folder.

 

附上vader的相关链接(与本文下载无关https://www.jianshu.com/p/6d005a14d364)

 

posted @ 2022-04-09 14:52  星涅爱别离  阅读(453)  评论(0编辑  收藏  举报