python nltk

Download - Natural Language Toolkit

Linux/Unix

NLTK is included in Ubuntu 10.4 (Lucid Lynx).  Get it with: sudo apt-get install python-nltk

NLTK requires Python 2.4.*, 2.5.*, or 2.6.* (check with python -V).  In the unlikely event that you need to install Python, you can do this using your favorite package manager, or find a suitable RPM, or download and build Python from source.

The following optional packages are used by some NLTK modules, you can install them later if you find that you need them.  Use your package manager to install numpy, pyyaml, and matplotlib, or download them:

Install Numpy and Matplotlib by unpacking the source distribution and running sudo python setup.py install

Install Prover9 following the instructions in the Macintosh section above.

OpenSUSE: install the python-nltk package in the "devel:languages:python" repository (more info).

Now proceed with NLTK Source Installation (below).

原文地址:https://www.cnblogs.com/lexus/p/2370047.html