当前位置:   article > 正文

【NLP】手动下载nltk相关数据/nltk punkt_手动下载 nltk punkt

手动下载 nltk punkt

我佛了 一个文件下半个小时还下不下来?

解压到固定的目录,比如在我的服务器上是root/nltk_data下...

参考自:https://medium.com/@satorulogic/how-to-manually-download-a-nltk-corpus-f01569861da9

How to manually download a nltk corpus?

  1. Go to http://www.nltk.org/nltk_data/ and download whichever data file you want
  2. Now in a Python shell check the value of `nltk.data.path`
  3. Choose one of the path that exists on your machine, and unzip the data files into the `corpora` subdirectory inside.
  4. Now you can import the data `from nltk.corpus import stopwords`
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/908507
推荐阅读
相关标签
  

闽ICP备14008679号