Skip to content

About

WebAssembly bindings for jpreprocess with bundled NAIST-JDIC.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

jpreprocess-wasm

WebAssembly bindings for jpreprocess with bundled NAIST-JDIC.

Build

wasm-pack build --release --target web

Usage

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

API

  • new JPreprocess()
  • analyze(text, preprocess?)
  • inspect(text)
  • normalize(text)
  • fullContext(text)

This project is a thin WebAssembly wrapper around jpreprocess.

License

See LICENSE and THIRD_PARTY_LICENSES.md.

About

WebAssembly bindings for jpreprocess with bundled NAIST-JDIC.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages