Skip to content

diffbot/fastText-jni

Repository files navigation

Introduction

fastText-jni is a Java wrapper for fastText inference.

Usage

implementation group: 'com.diffbot', name: 'fasttext-jni', version: '0.9.2.8'

FastTextModel model;
try(InputStream inputStream = this.getClass().getResourceAsStream(MODEL)) {
    model = new FastTextModel(inputStream);
}
Prediction prediction = model.predictProba(TEXT);
System.out.println(prediction.label + " : " + prediction.probability);
model.close();

Development

Install git lfs

git submodule update --init

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages