Issue 734 in nltk: Old references to numpy functions in ntlk/cluster/util.py

1 view
Skip to first unread message

nl...@googlecode.com

unread,
Apr 13, 2012, 8:32:19 AM4/13/12
to nltk-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 734 by lars.bun...@gmail.com: Old references to numpy functions
in ntlk/cluster/util.py
http://code.google.com/p/nltk/issues/detail?id=734

What version of NLTK are you using? (See nltk.__version__). Please only
submit bug reports for the current version.

Hi, I am using '2.0b9' from Ubuntu, but I checked that these errors were
also in the latest version for download (2.01rc1).

What steps will reproduce the problem? (e.g. include Python source code)

clusterer = cluster.KMeansClusterer(2, euclidean_distance,
repeats=10,svd_dimensions=3)
print clusterer.cluster(numpy.array(vectors), True)

What is the expected output? What do you see instead?

The problem is that util.py reports various errors. The first one is fixed
(explicit loading of numpy.array), but furthermore cluster/util.py refers
to the numpy.Float64 which should be numpy.float64 and numpy.matrixmultiply
which is gone (previously deprecated from numpy).


Reply all
Reply to author
Forward
0 new messages