我佛了 一个文件下半个小时还下不下来?
解压到固定的目录,比如在我的服务器上是root/nltk_data下...
参考自:https://medium.com/@satorulogic/how-to-manually-download-a-nltk-corpus-f01569861da9
How to manually download a nltk corpus?
- Go to http://www.nltk.org/nltk_data/ and download whichever data file you want
- Now in a Python shell check the value of `nltk.data.path`
- Choose one of the path that exists on your machine, and unzip the data files into the `corpora` subdirectory inside.
- Now you can import the data `from nltk.corpus import stopwords`