tmilovanov / wisecreator

Utility for adding word wise information to non amazon books
322 stars 53 forks source link

Error: Resource averaged_perceptron_tagger not found #40

Closed amitguptagwl closed 3 years ago

amitguptagwl commented 3 years ago

I'm facing following error when I'm running the utility through the source code;

  File "~/.local/lib/python3.8/site-packages/nltk/data.py", line 585, in find
    raise LookupError(resource_not_found)
LookupError: 
**********************************************************************
  Resource averaged_perceptron_tagger not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('averaged_perceptron_tagger')

  For more information see: https://www.nltk.org/data.html

  Attempted to load taggers/averaged_perceptron_tagger/averaged_perceptron_tagger.pickle

Though It is generating the Language layer file (ie .kll) But getting no word wise hint when opening the ebook on Kindle.

tmilovanov commented 3 years ago

Did you follow instruction? You should run python3 -m pip install . right after you clone repository. NLTK has it's own data that it needs to download. Or you can run python3 interactive console and write those lines:

import nltk nltk.download('averaged_perceptron_tagger')

amitguptagwl commented 3 years ago

My bad i missed the suggested step. It is working fine. I have tried with two books