@rafaelkallis/fasttext
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @rafaelkallis/fasttext

    Weekly Downloads

    9

    Version

    0.3.1

    License

    AGPL-3.0

    Unpacked Size

    489 kB

    Total Files

    6

    Last publish

    Collaborators

    • rafaelkallis