Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 518 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 518 Bytes

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.