[BangPypers] NLTK: Dispersion Plot problem

JAGANADH G jaganadhg at gmail.com
Wed Aug 18 17:57:01 CEST 2010


>
> gvkalra at gvkalra-laptop:~$ cd Desktop/srv/python-environments/
> gvkalra at gvkalra-laptop:~/Desktop/srv/python-environments$ source
> gotcha/bin/activate
> (gotcha)gvkalra at gvkalra-laptop:~/Desktop/srv/python-environments$ python
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from nltk import *
> >>> from nltk.book import *
> *** Introductory Examples for the NLTK Book ***
> Loading text1, ..., text9 and sent1, ..., sent9
> Type the name of the text or sentence to view it.
> Type: 'texts()' or 'sents()' to list the materials.
> text1: Moby Dick by Herman Melville 1851
> text2: Sense and Sensibility by Jane Austen 1811
> text3: The Book of Genesis
> text4: Inaugural Address Corpus
> text5: Chat Corpus
> text6: Monty Python and the Holy Grail
> text7: Wall Street Journal
> text8: Personals Corpus
> text9: The Man Who Was Thursday by G . K . Chesterton 1908
> >>>
>
> text4.dispersion_plot(["citizens","democracy","freedom","duties","America"])
> >>>
>
> Have you checked that the plot is being minimized.
Are you using virtual environment ?
I tried it in Fedora 12, 13 and Ubuntu 10.4 it works fine for me .
-- 
**********************************
JAGANADH G
http://jaganadhg.freeflux.net/blog


More information about the BangPypers mailing list