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

stopwords.words("English") raises OS Error #6

Open
piermarcobarbe opened this issue Jun 7, 2020 · 0 comments
Open

stopwords.words("English") raises OS Error #6

piermarcobarbe opened this issue Jun 7, 2020 · 0 comments

Comments

@piermarcobarbe
Copy link

piermarcobarbe commented Jun 7, 2020

When executing:
from nltk.corpus import stopwords
stopwords_verbs = ['say', 'get', 'go', 'know', 'may', 'need', 'like', 'make', 'see', 'want', 'come', 'take', 'use', 'would', 'can']
stopwords_other = ['one', 'mr', 'bbc', 'image', 'getty', 'de', 'en', 'caption', 'also', 'copyright', 'something']
my_stopwords = stopwords.words('English') + stopwords_verbs + stopwords_other
An error occurs:
OSError: No such file or directory: '/home/jovyan/nltk_data/corpora/stopwords/English'

Using, instead, stopwords.words("english") works fine.

The lines can be found in the notebook "LDA-BBC".

Running notebook from Jupyter on Docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant