Java JNI wrapper for SentencePiece: unsupervised text tokenizer for Neural Network-based text generation.
Java wrapper for SentencePiece with JNI. This module wrapssentencepiece::SentencePieceProcessor
class with the following modifications:
To build and install the Java wrapper from source, please try the following commands:
% mvn clean install
Because the resulting JAR is platform-dependent, resolving this dependency is managed by the os-maven-plugin. Follow the instructions there to use this platform-dependent JAR.
Please note you need to have a C++ compiler and cmake installed.
See SentencePieceProcessorTest for more.