Giter Site home page Giter Site logo

levyfan / kenlm-jni Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 4.0 20 KB

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

License: MIT License

Java 58.02% CMake 4.74% C++ 37.24%
jni java kenlm language-model nlp machine-learning natural-language-processing

kenlm-jni's Introduction

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.

kenlm-jni's People

Contributors

dependabot[bot] avatar levyfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kenlm-jni's Issues

CentOS issues

Following error appear when running kenlm wrapper on CentOS

/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found

I search for solution and found this, seem this build is not support CentOS?

mvn clean install error

[INFO] --- exec-maven-plugin:1.6.0:exec (cmake) @ kenlm-jni ---
[ERROR] Command execution failed.
java.io.IOException: Cannot run program "cmake" (in directory "/home/techengin/kenlm-jni/target"): error=2, 没有那个文件或目录
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)

have more install detail?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.