Wednesday 2 February 2011

nltk corpora/ xx cannot be found

You may have just installed nltk and want to try a demo such as:[python]

>>> import nltk
>>> nltk.stem.porter.demo()


you may receive the error: "resource corpora/ not found"
this can be fixed by using the dltk package downloader

open your shell
start python
then type the following:[python]
>>>import nltk
>>>nltk.download()

this will open the nltk downloader where you can download everything you need.
fixed!