cppjieba Rust binding
Add it to your Cargo.toml
:
toml
[dependencies]
rust-jieba = "0.1"
```rust extern crate rust_jieba;
use rust_jieba::Jieba;
fn main() { let jieba = Jieba::fromdir("cjieba-sys/cppjieba-cabi/cppjieba/dict"); let words = jieba.cut("南京市长江大桥", true); asserteq!(vec!["南京市", "长江大桥"], words); } ```
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.