Machine learning NLTK Download installation Test Package

Source: Internet
Author: User
Tags nltk
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

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.