dongjinleekr / beanpiece Goto Github PK
View Code? Open in Web Editor NEWA Java binding to Google SentencePiece
License: Apache License 2.0
A Java binding to Google SentencePiece
License: Apache License 2.0
I had some problems running a project using the beanpiece:
java.lang.UnsatisfiedLinkError: /tmp/libsentencepiece820278351167742621.so: libprotobuf.so.10: cannot open shared object file: No such file or directory
This missing file (libprotobuf.so.10) can be corrected by installing the protobuf-cpp-3.0.0, maybe in some new versions but not with the 3.6.1 available for my OS (Fedora 30).
I think that this dependecy should be on the readme or the project use the agnostic free lib libprotobuf.so.
On intel i7 2015 MacBook Pro running HighSierra 10.13.5
Mismatch between "os.arch" in sbt.build vs NativeUtils.java path
.
In sbt.build os.arch = x86_64.
Building beanpiece libsentencepiece.dylib
is placed in /osx/x86_64/libsentencepiece.dylib
.
However at runtime when NativeUtils.java
attempts to load the appropriate libary it searches in /osx/i386/libsentencepiece.dylib
in NativeUtils path returns i386 due to
private static Architecture architecture() {
String arch = System.getProperty("os.arch").toLowerCase(Locale.ENGLISH);
// arch = "x86_64"
if (arch.contains("ppc")) {
return Architecture.PPC;
} else if (arch.contains("i386") || arch.contains("x86")) {
return Architecture.I386;
} else if (arch.contains("amd64") || arch.contains("x86_64")) {
return Architecture.AMD64;
} else {
throw new IllegalArgumentException("Unsupported architecture: " + arch);
}
}
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.