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