WebAssembly bindings for jpreprocess with bundled NAIST-JDIC.
wasm-pack build --release --target webimport init, { JPreprocess } from "./pkg/jpreprocess_wasm.js";
await init();
const jp = new JPreprocess();
const result = jp.analyze("例", true);
console.log(result.nodes[0].read);
console.log(result.nodes[0].pronunciation);new JPreprocess()analyze(text, preprocess?)inspect(text)normalize(text)fullContext(text)
This project is a thin WebAssembly wrapper around jpreprocess.
See LICENSE and THIRD_PARTY_LICENSES.md.