NLTK is a Python API for the analysis of texts written in natural languages, such as English. NLTK was created in 2001 and was originally intended as a teaching tool. Install NLTK with the following command:
$ sudo pip install nltk $ pip freeze|grep nltk nltk==2.0.4
As usual, we will check the installation with a new version of the pkg_check.py
file. The following import statement is required:
import nltk
If everything works, we should get a result similar to the following:
nltk version 2.0.4 nltk.app DESCRIPTION chartparser: Chart Parser chunkparser: Regular-Expression Chunk Parser collocations: Find collocations in text concordance: Part nltk.ccg DESCRIPTION For more information see nltk/doc/contrib/ccg/ccg.pdf PACKAGE CONTENTS api chart combinator lexicon DATA BackwardApplication<n nltk.chat DESCRIPTION A class for simple chatbots. These perform simple pattern matching on sentences typed by users, and respond with automatically g nltk.chunk DESCRIPTION Classes and interfaces...