Skip to content
A Java JNI wrapper for KenLM: Faster and Smaller Language Model Queries
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.travis.yml
LICENSE
README.md
pom.xml
test.arpa

README.md

kenlm-jni

Build Status

Java JNI wrapper for kenlm.

Installation

  • maven
  • cmake
  • boost
mvn clean install

Basic Usage

Model model = new Model("test.arpa", new Config());
System.out.println(model.score("this is a sentence .", true, true));
model.close();

See ModelTest for more, including stateful APIs.

You can’t perform that action at this time.