• + 2 comments

    Getting nltk download error! Could we have all nltk packages downloaded at the server? It's much needed for NLP problems.

    Traceback (most recent call last):
      File "solution.py", line 5, in <module>
        sentences = sent_tokenize(input)
      File "/var/ml/python/local/lib/python2.7/site-packages/nltk/tokenize/__init__.py", line 94, in sent_tokenize
        tokenizer = load('tokenizers/punkt/{0}.pickle'.format(language))
      File "/var/ml/python/local/lib/python2.7/site-packages/nltk/data.py", line 834, in load
        opened_resource = _open(resource_url)
      File "/var/ml/python/local/lib/python2.7/site-packages/nltk/data.py", line 952, in _open
        return find(path_, path + ['']).open()
      File "/var/ml/python/local/lib/python2.7/site-packages/nltk/data.py", line 673, in find
        raise LookupError(resource_not_found)
    LookupError: 
    **********************************************************************
      Resource punkt not found.
      Please use the NLTK Downloader to obtain the resource:
    
      >>> import nltk
      >>> nltk.download('punkt')
      
      Searched in:
        - '/var/ml/nltk_data'
        - 'nltk_data'
        - '/usr/share/nltk_data'
        - '/usr/local/share/nltk_data'
        - '/usr/lib/nltk_data'
        - '/usr/local/lib/nltk_data'
        - '/var/ml/python/nltk_data'
        - '/var/ml/python/lib/nltk_data'
        - u''
    **********************************************************************