How to use nltk.download() and get rid of this error: ‘tokenizers/punkt/PY3/english.pickle’ not found

If you are getting this error: ‘tokenizers/punkt/PY3/english.pickle’

Most likely is because you haven’t downloaded necessary nltk packages, don’t worry is quite easy:

  • Open a terminal (cmd in Windows)
  • Run Python by typing in the terminal Window python then write everything belo
    • import nltk
    • nltk.download()
  • Look for a new program that will pop up and btw show available packages from here:
    • https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml
  • I installed the “popular” option and that got rid of the issue

Happy coding,

 

LookupError: 
**********************************************************************
  Resource 'tokenizers/punkt/PY3/english.pickle' not found.
  Please use the NLTK Downloader to obtain the resource:  >>>
  nltk.download()
  Searched in:
    - '/Users/josuegc/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
    - ''
**********************************************************************