[BangPypers] NLTK: Dispersion Plot problem

Gaurav Kalra gvkalra at gmail.com
Thu Aug 19 08:11:39 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 .
>


The plot is not minimized either. (I tried again)
Yes, I am using virutalenv.
I am trying on Ubuntu 10.04


More information about the BangPypers mailing list