Natural Language Toolkit (NLTK) with Python

Installing NLTK for Python 2.6 on Ubuntu 9.10

Install Python Setup Tools

sudo apt-get install python-setuptools

Install NLTK Python egg

sudo easy_install http://nltk.googlecode.com/files/nltk-2.0b8-py2.6.egg

python
>>> import nltk
>>> nltk.download()

Donwload the needed resources and start coding:

>>> from nltk.book import *
>>> text1.concordance('Whale')

Website powered by lovely Drupal · Microformats · XML Feed · Valid XHTML, CSS · No www.