jieba-wasm jieba-rs 的wasm binding 编译成 WASM 摆脱编译 Node Addon 的烦恼 Usage Node.js const { cut, cut_all, cut_for_search, tokenize, add_word, } = require("jieba-wasm"); cut("中华人民共和国武汉市长江大桥", true); // [ '中华人民共和国', '武汉市', '长江大桥' ] cut_all(...
jieba-rs 的wasm binding jieba-wasm 编译成 WASM 摆脱编译 Node Addon 的烦恼 Usage const { cut, cut_all, cut_for_search, tokenize, add_word, } = require("jieba-wasm"); cut("中华人民共和国武汉市长江大桥", true); // [ '中华人民共和国', '武汉市', '长江大桥' ] cut_all("中华人民...
21 23 cargo install -f wasm-bindgen-cli wasm-opt @@ -33,7 +35,7 @@ jobs: 33 35 cd ${GITHUB_WORKSPACE}/demo/web 34 36 npm install 35 37 PUBLIC_URL='/jieba-wasm/' npm run build 36 - - name: Publish to pkg.pr.new 38 + - name: Publish to npm 37 39 run: | ...
WasmJieba A WASM binding to jieba-rs. Built with 🦀🕸 by The Rust and WebAssembly Working Group About This is a minimal usable WASM binding to jieba-rs. Both Simplified Chinese and Traditional Chinese are supported. 🎁 Implemented APIs All APIs from jieba-rs. Just read src/lib.rs. Yo...
bsearchBrief 简介WASM built RustJieba, make in browser Chinese search possible!使用了rust编译的jieba中文分词,使得可以在浏览器中实现中文分词以及最重要的是使用了中文的搜索Example 例子使用说明Makefile中
23 + jieba-wasm 浏览器端演示 24 + 25 + 26 + 原文 27 + <textarea value={message} onChange={e => { setMessage(e.target.value) }} id="message" rows={4} className="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-...
All APIs from jieba-rs. Just read src/lib.rs. You may also refer to jieba-rs' documentation. 🛠 Packages wasmjieba (Dummy package that depends on both targets. Pick the one you need below.) wasmjieba-nodejs wasmjieba-web 🚴 Usage See examples/web for an example. Readme Keywords ...
1 1 use jieba_rs::Jieba; 2 - use lazy_static::lazy_static; 3 2 use serde::{Deserialize, Serialize}; 4 - use std::sync::Mutex; 3 + use std::sync::{LazyLock, Mutex}; 5 4 use wasm_bindgen::prelude::*; 6 5 ...
2 + - Add tag function [#12](https://github.com/fengkx/jieba-wasm/pull/12) 3 + - Enable hmm by default in `cut`, `cut_for_search`, `tokenize` and `tag` function [13bcc7e](https://github.com/fengkx/jieba-wasm/commit/13bcc7e) 4 + 1 5 # v2.1.1 2 6 Fix wasm-opt...
WASM binding to jieba-rs. Contribute to slax-lab/jieba-wasm development by creating an account on GitHub.