0.3.1 • Published 11 months ago

@rafaelkallis/fasttext v0.3.1

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
11 months ago

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);
}