Java API for Vowpal Wabbit?

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.

+4
source share
6 answers

This link can help in configuring the JNI wrapper.

0
source

I have not been able to find the Java API documentation anywhere, but the Java code looks well documented - maybe you tried to create Javadoc yourself from the code?

0
source

Java JNI- VW. . Python, , Java. VW- Java, .

:

  • vw-jni, maven, make all java. , , , OpenSuse ( )
  • . VWLearners:: create - factory, VW Java.
0

wowpal wabbit JNI-, . : https://github.com/indeedeng/vowpal-wabbit-java.

, , API. " " README.

, .

0

, , . @Macchiatow, Java, Vowpal Wabbit, :

  • ( ) make all java make java
  • cd java mvn test
  • mvn install Java API jarred maven. JNI , C/++ , C/++ make.
  • vowpal , (ant/maven/boot/leiningen/sbt/etc. ).

. Vowpal Wabbit Java readme. , , , , , , , , , , , , .

, Ubuntu 16.04 Java 8.

0

VW JNI. . java.library.path. README, , Java.

​​, Java API. . , , mvn install, API Java. , .

0

Source: https://habr.com/ru/post/1653448/