@rafaelkallis/fasttext
v0.3.1
Published
Node wrapper for Facebook's fastText
Downloads
20
Readme
fastText is a library for efficient learning of word representations and sentence classification.
In this document we present how to use fastText in Nodejs with WebAssembly.
npm install @rafaelkallis/fasttext
const FastText = require("@rafaelkallis/fasttext");
main();
async function main() {
const fastText = await FastText.from("model.bin");
const [[label, prob]] = fastText.predict("hello world");
console.log(label, prob);
}