Then the previous article machine learning NLTK download error: Error connecting to server: [Errno-2], below the NLTK test package installation and considerations
>>> Import NLTK
>>> Nltk.download ()
NLTK Downloader
---------------------------------------------------------------------------
d) Download L) List c) Config h) help Q) Quit
---------------------------------------------------------------------------
Downloader> D
Download which package (l=list; x=cancel)?
Identifier>
---------------------------------------------------------------------------
d) Download L) List c) Config h) help Q) Quit
---------------------------------------------------------------------------
Note here: To select L (list) at this step
Downloader> L
Packages:
[] Brown_tei ...... Brown Corpus (TEI XML Version)
[] Punkt ...... ..... Punkt Tokenizer Models
[] Maxent_treebank_pos_tagger Treebank part of Speech tagger (Maximum entropy)
[] Machado ....... Machado de Assis--obra Completa
[] movie_reviews ... Sentiment polarity Dataset Version 2.0
[] names ...... ..... Names Corpus, Version 1.3 (1994-03-29)
[] nombank.1.0 ..... Nombank Corpus 1.0
[] nps_chat ...... NPS Chat
[] paradigms ...... Paradigm Corpus
[] pe08 ..... ....... Cross-framework and Cross-domain Parser
Evaluation Shared Task
[] pil ..... ........ The Patient information leaflet (PIL) Corpus
[] pl196x ..... ..... Polish language of the XX century Sixties
[] Ppattach ...... prepositional Phrase Attachment Corpus
[] problem_reports ..... Problem Report Corpus
[] propbank ...... Proposition Bank Corpus 1.0
[] QC ........ ..... Experimental Data for Question classification
[] Reuters ....... The Reuters-21578 benchmark corpus, Aptemod
Version
[] Rte ........ ..... PASCAL RTE challenges 1, 2, and 3
Hit Enter to continue:
Look at all the packages and find the packages you need, and then not follow the prompts for revenue clicks, but should do so:
>>> nltk.download (' Brown_tei ')
Note: This method may appear: errors, which can be resolved by using the following method
or use:
Python-m Nltk.downloader Spanish_grammars