المشاريع
عرض على GitHub
messense/jieba-rs
حول
تجزئة الكلمات الصينية Jieba مُنفَّذة بلغة Rust.
الذكاء الاصطناعي وتعلّم الآلةما يمكنك فعله
- default-dict feature enables embedded dictionary, this features is enabled by default
- tfidf feature enables TF-IDF keywords extractor
- textrank feature enables TextRank keywords extractor
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +٣
- خلال 15 يومًا
- +٤
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلjieba-rs
🚀 Help me to become a full-time open-source developer by sponsoring me on GitHub
The Jieba Chinese Word Segmentation Implemented in Rust
Installation
Add it to your Cargo.toml:
[dependencies]
jieba-rs = "0.11"
then you are good to go. If you are using Rust 2015 you have to extern crate jieba_rs to your crate root as well.
Example
use jieba_rs::Jieba;
fn main() {
let jieba = Jieba::new();
let words = jieba.cut("我们中出了一个叛徒", false);
assert_eq!(words, vec!["我们", "中", "出", "了", "一个", "叛徒"]);
}
Enabling Additional Features
default-dictfeature enables embedded dictionary, this features is enabled by defaulttfidffeature enables TF-IDF keywords extractortextrankfeature enables TextRank keywords extractor
[dependencies]
jieba-rs = { version = "0.11", features = ["tfidf", "textrank"] }
Run benchmark
cargo bench --all-features
Benchmark: Compare with cppjieba
- jieba-rs 分词性能优化记录:提升 2.4 倍
- Making jieba-rs 2.4x faster
- Optimizing jieba-rs to be 33% faster than cppjieba
- 优化 jieba-rs 中文分词性能评测
- 最佳化 jieba-rs 中文斷詞性能測試
jieba-rs bindings
@node-rs/jiebaNodeJS bindingjieba-phpPHP bindingrjieba-pyPython bindingcang-jieChinese tokenizer for tantivytantivy-jiebaAn adapter that bridges between tantivy and jieba-rsjieba-wasmthe WebAssembly bindingWasmJiebaWebAssembly bindings for Web and Node.jsjiebaRSR bindingemacs-jieba-rsbinding and minor mode extension
License
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…