jbaiter / kenlm-java

Java SWIG Wrapper around kenlm
GNU Lesser General Public License v3.0
0 stars 2 forks source link

To build this project you need the following prerequisites:

the order to build this project is:

  1. run ./build.sh. This will generate the required Java JNI classes and the C++ interface using swig.
  2. put the output libkenlm-jni into your java library path (optinal for running the tests in phase 3)
  3. run mvn package

The following system environment variables need to be set when running build:

The library can be renamed. If that is the case com-github-jbaiter-kenlm.properties needs to be provided pointing directly to the file. An example can be found in test resources. If the properties are not set the library is loaded from java.library.path.