NLTK Lookup Error

前端 未结 8 1725
感动是毒
感动是毒 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:37

    First answer said the missing module is 'the Perceptron Tagger', actually its name in nltk.download is 'averaged_perceptron_tagger'

    You can use this to fix the error

    nltk.download('averaged_perceptron_tagger')

提交回复
热议问题