Comments (4)
I add a size check to avoid JVM crash here #29, now it will throw an exception that you can catch.
from sentencepiece-jni.
This is caused by the sentence piece native code const std::string &piece = spp->IdToPiece(id);
. Please check their issues track.
from sentencepiece-jni.
I think there is a clear warning that id should be valid.
// Returns the string representation of vocab with `id`.
// id must be 0 <= id < GetPieceSize().
virtual const std::string &IdToPiece(int id) const {
return model_proto_->pieces(id).piece();
}
from sentencepiece-jni.
thank you very much, @levyfan !
from sentencepiece-jni.
Related Issues (16)
- Repo doesn't work on Windows
- Publish artifacts HOT 6
- Support in Mac systems HOT 3
- Build failed on Mac 12.4 (Monterey) HOT 2
- Same model and same input, But getting different output in Linux (Ubuntu) and Windows. HOT 23
- /libsentencepiece_jni.dylib was not found inside JAR HOT 5
- Jar created on Ubuntu is not working in CentOS HOT 2
- Is it possible to use this on Android device? HOT 19
- What are the dependencies need to be satisfied
- Build fail on Windows 11
- Sentencepiece version upgrade
- sentencepiece_jni.dll was not found inside JAR HOT 2
- Issues for the file 'sentencepiece/src/sentencepiece-build/src/libsentencepiece.a' HOT 3
- Support sentencepiece 0.1.92
- How to use sentencepiece in java HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentencepiece-jni.