Home > Backend Development > Python Tutorial > Machine learning nltk download installation test package

Machine learning nltk download installation test package

高洛峰
Release: 2016-10-18 10:13:26
Original
1528 people have browsed it

Following the previous article nltk download error for machine learning: Error connecting to server: [Errno -2], let’s talk about the installation of nltk test package and matters needing attention

>>> 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: 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

                                                                                                               . 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:

View all packages and find the package you need, then you cannot follow the prompts to click, Instead, you should do this:

>>> nltk.download('brown_tei')

Note: This method may cause:

error. In this case, you can use the following method to solve it

or use:

python - m nltk.downloader spanish_grammars


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template