Java JNI wrapper for kenlm.
- maven
- cmake
- boost
mvn clean install
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.
A Java JNI wrapper for KenLM: Faster and Smaller Language Model Queries
License: MIT License
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?
[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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.