2 releases

Uses old Rust 2015

0.1.1 Sep 15, 2020
0.1.0 Jan 25, 2018

#2199 in Text processing

Download history 3/week @ 2023-11-01 6/week @ 2023-11-08 8/week @ 2023-11-15 7/week @ 2023-11-22 14/week @ 2023-11-29 3/week @ 2023-12-06 8/week @ 2023-12-13 7/week @ 2023-12-20 7/week @ 2023-12-27 3/week @ 2024-01-03 4/week @ 2024-01-10 4/week @ 2024-01-17 8/week @ 2024-01-24 6/week @ 2024-01-31 7/week @ 2024-02-07 29/week @ 2024-02-14

51 downloads per month
Used in rust-jieba

MIT license

8.5MB
6.5K SLoC

C++ 6K SLoC // 0.3% comments ReScript 201 SLoC Rust 134 SLoC C 60 SLoC // 0.0% comments Bitbake 8 SLoC // 0.3% comments

rust-jieba

Build Status codecov Crates.io docs.rs

cppjieba Rust binding

Installation

Add it to your Cargo.toml:

[dependencies]
rust-jieba = "0.1"

Example

extern crate rust_jieba;

use rust_jieba::Jieba;

fn main() {
    let jieba = Jieba::from_dir("cjieba-sys/cppjieba-cabi/cppjieba/dict");
    let words = jieba.cut("南京市长江大桥", true);
    assert_eq!(vec!["南京市", "长江大桥"], words);
}

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

No runtime deps