Tokenization divides text into discrete tokens that a machine-learning model can process. In a WebAssembly guest, the Rust tokenizers library supplies this capability. section 5.4.1
Enable tokenization by disabling tokenizers' default features and selecting its unstable_wasm feature in the guest project's Cargo.toml. The same project can combine tokenizers with ndarray and a WASI-NN interface for model execution. section 5.4.1
Configure tokenizers for Wasm
Add tokenizers = { version = "0.20.1", default-features = false, features = ["unstable_wasm"] } to the smartcms_ml_guest crate, alongside ndarray and the wasi:nn target dependency.
























