![]() ![]() "Professor Plum has a green plant in his study.", Green killed Colonel Mustard in the study with the candlestick. # Do this in your ipython notebook or analysis script This is what worked for me just now: # Do this in a separate python interpreter session, since you only have to do it once You can find that directory location from comments here. The above function saves packages to a specific directory. If you do not pass any argument to the download function, it downloads all packages i.e chunkers, grammars, misc, sentiment, taggers, corpora, help, models, stemmers, tokenizers. ![]() Please use the NLTK Downloader to obtain the resource: This is also recommended in the error message in more recent versions: LookupError: ![]() import nltkįrom nltk import word_tokenize,sent_tokenize You can download punkt package like this. Due to the size of nltk suite, all available packages are not downloaded by default when one installs it. The main reason why you see that error is nltk couldn't find punkt package. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |