NLTK Lookup Error

前端 未结 8 1722
感动是毒
感动是毒 2020-12-14 00:53

While running a Python script using NLTK I got this:

Traceback (most recent call last):
  File \"cpicklesave.py\", line 56, in 
    pos = nltk.         


        
8条回答
  •  天命终不由人
    2020-12-14 01:40

    Install all nltk resources in one line:

    python3 -c "import nltk; nltk.download('all')"
    

    the data will be saved at ~/nltk_data


    You can also substitute "all" for "averaged_perceptron_tagger" to install only this module.

提交回复
热议问题