WEKA in Jython or even C#
I was very excited to find out that Python scripts can access Java APIs if you run on them Jython interpreter. Jython is a Python interpretor written in Java which some people have put to good use for fast prototyping of WEKA applications. I built a simple classifier using Jython and weka classes and everything seemed to be going fine. However, complications arose when trying to use databases jython. My intention was to use a sqlite database, but while databases work really well in standard python (or ‘CPython’) via the DB-API2, this is lost in the move to Jython. The web points to zxJDBC which has now been integrated into Jython, but it suffers from being a wrapper for JDBC that feels like a DB-API2 object… meaning you have to install JDBC drivers and all sorts.
On the .NET side of things, apparently IKVM (part of the Mono project), allows programmers to use Java APIs into their .NET applications, so maybe there is some hope for using Weka and .NET. BTW don’t forget there are heaps of free great development tools around if you are taking the .NET path.
Update: Ok it turns out that although zxJDBC is a part of Jython now, it is still not included in the Gentoo package ![]()
April 3rd, 2006 at 12:27 pm
Heya, you may want to check out gcj & how PyLucene does it, if you want to call Java code from Python without having to port your code to a JVM.
cheers,
dalibor topic