Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with nltk_data #802

Closed
sanyam8182 opened this issue Jun 25, 2017 · 10 comments
Closed

Issue with nltk_data #802

sanyam8182 opened this issue Jun 25, 2017 · 10 comments

Comments

@sanyam8182
Copy link

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.

@gunthercox
Copy link
Owner

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

@sanyam8182
Copy link
Author

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

@vkosuri
Copy link
Collaborator

vkosuri commented Jun 27, 2017

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

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

@sanyam8182
Copy link
Author

yes i have all the files mentioned in the error

@vkosuri
Copy link
Collaborator

vkosuri commented Jun 27, 2017

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')

@sanyam8182
Copy link
Author

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

@vkosuri
Copy link
Collaborator

vkosuri commented Jun 27, 2017

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

@sanyam8182
Copy link
Author

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

@gunthercox
Copy link
Owner

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

@lock
Copy link

lock bot commented Mar 10, 2019

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.

@lock lock bot locked and limited conversation to collaborators Mar 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants