>>> import nltk
>>> nltk.stem.porter.demo()
you may receive the error: "resource corpora/ not found"
>>> 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]
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.
>>>nltk.download()
this will open the nltk downloader where you can download everything you need.
fixed!
No comments:
Post a Comment