This is a minimal usable WASM binding to jieba-rs.
Both Simplified Chinese and Traditional Chinese are supported.
Thanks to js-jieba for the default.hant
dict file.
All APIs from jieba-rs. Just read src/lib.rs. You may also refer to jieba-rs' documentation.
- wasmjieba (Dummy package that depends on both targets. Pick the one you need below.)
See examples/web for an example.