Python Natural Language Processing (1): NLP, nlp

Source: Internet
Author: User
Tags nltk

Python Natural Language Processing (1): NLP, nlp

Python Natural Language Processing (1): NLP first recognized

Natural Language Processing (NLP): an important direction in the field of computer science and artificial intelligence. It studies various theories and methods for effective communication between people and computers using natural languages, involving all operations performed on natural languages by computers.

NLP technology is widely used. For example, collecting and hand-held computer support for the input method of Lenovo prompts and handwriting recognition, the network search engine can search for information in unstructured text, and machine translation can translate Chinese text into Spanish. By providing a more natural human-machine interface and advanced means of obtaining storage information, language processing is playing a more core role in this multilingual information society.

Python Installation

The installation steps have been introduced before. Details stamp here: One of the Python learning summaries-Basics

NLTK Installation

NLTK: Natural Language Toolkit (Natural Language Toolkit ). We can download a version that fits your operating system free of charge from the After the download is complete, follow the steps to install it directly.



Python version requirements


Then we enter the code in the Python interpreter to download the data we need later.

First, when the import nltk is input successfully, it indicates that the nltk is successfully installed. However, unfortunately, this TM is a problem. I have been doing this for a long time in the afternoon. I have not succeeded in downloading it several times. I don't know what's going on. I found some resources on the Internet, you can find a place to download data in this blog. Decompress the compressed file in unzip.

When you enter the code to show the content from text1 to text9, it indicates that your nltk_data has been downloaded successfully.






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