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 http://www.nltk.org. 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.