jieba-rs
The Jieba Chinese Word Segmentation Implemented in Rust
Installation
Add it to your Cargo.toml
:
[]
= "0.5"
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;
Enabling Additional Features
default-dict
feature enables embedded dictionary, this features is enabled by defaulttfidf
feature enables TF-IDF keywords extractortextrank
feature enables TextRank keywords extractor
[]
= { = "0.5", = ["tfidf", "textrank"] }
Run benchmark
Benchmark: Compare with cppjieba
License
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.