Chatterbot: Issue with nltk_data

Created on 25 Jun 2017  路  10Comments  路  Source: gunthercox/ChatterBot

When i try to run chatterbot on the local server it shows this error:

[nltk_data] Error loading stopwords: [nltk_data] Error loading wordnet: [nltk_data] Error loading punkt: [nltk_data] Error loading vader_lexicon

Along with it, it also shows the correct response.

Most helpful comment

@sanyam8182 Remove the files it contains. They will be re-downloaded (hopefully without errors this time) automatically by ChatterBot.

All 10 comments

Hi @sanyam8182, have the required NLTK files been downloaded to your local server?

i have downloaded the files in my system but i dont know about the server.

have the required NLTK files been downloaded to your local server?

It means, the chatterbot running machine, in your case your NLTK downloaded machine.

yes i have all the files mentioned in the error

Try to do fallowing steps

>>> import nltk
>>> print(nltk.data.path)

Check the files are copied into specified above directory or not. If files are there then it should work, even after also you are getting same error, try to download all corpus files

$ python3
>>> import nltk
>>> nltk.download('all')

on running the above commands i get this output:
['/Users/yuvikakoul/nltk_data', '/usr/share/nltk_data', '/usr/local/share/nltk_data', '/usr/lib/nltk_data', '/usr/local/lib/nltk_data']

which directory am i supposed to check

your home dir i.e '/Users/yuvikakoul/nltk_data'

it contains all the files, still i'll try downloading all the corpora files

@sanyam8182 Remove the files it contains. They will be re-downloaded (hopefully without errors this time) automatically by ChatterBot.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thedp picture thedp  路  4Comments

decode007 picture decode007  路  3Comments

decode007 picture decode007  路  4Comments

hochochoc picture hochochoc  路  3Comments

proguy627 picture proguy627  路  3Comments