Skip to content

A Java JNI wrapper for KenLM: Faster and Smaller Language Model Queries

License

Notifications You must be signed in to change notification settings

levyfan/kenlm-jni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published