About the author

admin

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')

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

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