I am trying to use Vowpal Wabbit through Java. I downloaded and successfully compiled code from GitHub. The command line tool works fine. After a quick look at the repository (especially here ), I can only assume that using it through Java is supposedly already possible, and I really don't want to reinvent the wheel.
A wrapper around Vowpal Wabbit that allows use through Java. This shell is intended for offline use. Because the use of JNI in this JAR is supported by a number of platforms.
I added the maven dependency (found here ) to my project, but without any document I really don't know when to start. I saw in another question that it is possible to use VW with Java, but the guy uses Runtime.getRuntime.exec()bash to call his command, and I can not find any documentation about any other way of working (and there are only 2 questions mixing VW and Java in SO, which doesn't help). I am new to JNI, so most likely there is something light that I don’t see. To be perfectly clear, my questions are:
- Should I just make a valid vw command and use it through
Runtime.getRuntime.exec()? This is not like the spirit of JNI, because there is no need for any wrapper / library for this. In addition, this does not make it very portable. - Where the hell is this documentation (Java API)?
Any help or guidance would be appreciated.
source
share