I donβt think you could use NLTK from Jython, as it depends on Numpy, which does not migrate to the JVM. If you need NLTK or any other native CPython extension, you might consider using some IPC mechanism for communication between CPython and the JVM. However, there is a project that allows you to call CPython with Java, called Jepp:
http://jepp.sourceforge.net/
The callback (calling Java code from CPython) is the goal of JPype and javaclass:
sourceforge.net/projects/jpype/
pypi.python.org/pypi/javaclass/0.1
I have never used any of these projects, so I cannot swear on their quality.
Carlos Santos Jul 22 '09 at 15:21 2009-07-22 15:21
source share