nltk.download() and virtualenv

14 views
Skip to first unread message

Lachlan Musicman

unread,
May 16, 2015, 12:07:54 AM5/16/15
to nltk-...@googlegroups.com
As a follow up to the previous question, obv I don't just need the nltk.download() to put the data on a certain path, I also need the importing to then work from that path:

>>> ignored_words.extend(nltk.corpus.stopwords.words('justextenglish'))
IOError: No such file or directory: u'/home/datakid/nltk_data/corpora/stopwords/justextenglish'


That path will need to be the directory within the virtualenv as noted in previous email.

cheers
L.
Reply all
Reply to author
Forward
0 new messages