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.
- Python: http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz
- PyYAML: http://pyyaml.org/download/pyyaml/PyYAML-3.09.tar.gz
- NLTK: http://nltk.googlecode.com/files/nltk-2.0.1rc1.tar.gz
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:
- Numpy: http://prdownloads.sourceforge.net/numpy/numpy-1.5.1.tar.gz
- Matplotlib: http://prdownloads.sourceforge.net/matplotlib/matplotlib-1.0.1.tar.gz
- Prover9: http://www.cs.unm.edu/~mccune/mace4/download/LADR-2009-11A.tar.gz (rename folder to prover9 after unpacking)
- MaltParser: http://w3.msi.vxu.se/~jha/maltparser/dist/malt-1.2.tar.gz (uncompress the folder and move it to a central location, e.g. /usr/share, and set MALTPARSERHOME to point to this location)
- MegaM: http://hal3.name/megam/megam_src.tgz
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).