下载

https:///nltk/nltk_data
提供一个我在2019/5/10下载的一个百度网盘链接:

链接:https://pan.baidu.com/s/1VzVzIxMHD-xfqwvhiV1zmQ 密码:vz7y

Windows安装 Linux安装
sudo mv nltk_data-gh-pages.zip  /usr/lib/
cd /usr/lib/
sudo unzip nltk_data-gh-pages.zip
cd nltk_data-gh-pages/
sudo cp -r  packages/ ../nltk_data
cd ..
sudo rm -rf nltk_data-gh-pages
测试是否安装成功
tqc@tqc-Host:/usr/lib$ python
Python 3.7.1 (default, Dec 14 2018, 19:28:38) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> from nltk.book import *
*** Introductory Examples for the NLTK Book ***
Loading text1, ..., text9 and sent1, ..., sent9
Type the name of the text or sentence to view it.
Type: 'texts()' or 'sents()' to list the materials.
text1: Moby Dick by Herman Melville 1851
text2: Sense and Sensibility by Jane Austen 1811
text3: The Book of Genesis
text4: Inaugural Address Corpus
text5: Chat Corpus
text6: Monty Python and the Holy Grail
text7: Wall Street Journal
text8: Personals Corpus
text9: The Man Who Was Thursday by G . K . Chesterton 1908
>>>