kenlm-jni 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.