[BangPypers] NLTK: Dispersion Plot problem

Gaurav Kalra gvkalra at gmail.com
Tue Aug 17 11:34:39 CEST 2010


Hi.
I have been trying to learn NLTK (http://www.nltk.org/) following
instructions over:
http://nltk.googlecode.com/svn/trunk/doc/book/ch01.html

The point at which I am stuck is using the function dispersion_plot() (
http://nltk.googlecode.com/svn/trunk/doc/api/nltk.draw.dispersion-module.html#dispersion_plot
)

Here is the output of yolk:
PyYAML          - 3.09         - active
Python          - 2.6.5        - active development
(/usr/lib/python2.6/lib-dynload)
distribute      - 0.6.10       - active
matplotlib      - 1.0.0        - active
nltk            - 2.0b9        - active
numpy           - 1.4.1        - active
pip             - 0.7.2        - active
wsgiref         - 0.1.2        - active development (/usr/lib/python2.6)
yolk            - 0.4.1        - active


I guess that dispersion_plot() requires matplotlib and numpy, which are
already active but, running the function is not generating any dispersion
graph as showed over here:
http://nltk.googlecode.com/svn/trunk/doc/book/ch01.html

Any thoughts ?
--
Gaurav Kalra
+91-9878-649-294


More information about the BangPypers mailing list