0

anyone has a suggestion about using nltk wordnet in Anaconda? I get this error after running: "from nltk.corpus import wordnet as wn"

LookupError:


Resource 'corpora/wordnet' not found.  Please use the NLTK
Downloader to obtain the resource:  >>> nltk.download()
Searched in:
- 'C:\\Users\\hhuang/nltk_data'
- 'C:\\nltk_data'
- 'D:\\nltk_data'
- 'E:\\nltk_data'
- 'C:\\Users\\hhuang\\AppData\\Local\\Continuum\\Anaconda\\nltk_data'
- 'C:\\Users\\hhuang\\AppData\\Local\\Continuum\\Anaconda\\lib\\nltk_data'
- 'C:\\Users\\hhuang\\AppData\\Roaming\\nltk_data'
benka
  • 4,732
  • 35
  • 47
  • 58
Yue Harriet Huang
  • 3,969
  • 6
  • 17
  • 16
  • As the error message suggests, you need to download the corpus: `import nltk; nltk.download()` to get started. – Marius Sep 24 '14 at 00:02
  • anaconda don't play nice with NLTK... Nevertheless, please follow these instructions to get the data: http://www.nltk.org/data.html – alvas Sep 24 '14 at 05:16

0 Answers0