#nlp #chinese #ner

bin+lib chinese-ner

A CRF based Chinese Named-entity Recognition Library written in Rust

5 unstable releases

✓ Uses Rust 2018 edition

0.2.1 Jun 12, 2019
0.2.0 May 20, 2019
0.1.1 Jun 7, 2018
0.1.0 Jun 6, 2018
0.0.0 Jun 4, 2018

#98 in Text processing

25 downloads per month

MIT license

299KB
339 lines

chinese-ner-rs

Build Status codecov Crates.io docs.rs

A CRF based Chinese Named-entity Recognition Library written in Rust

Installation

Add it to your Cargo.toml:

[dependencies]
chinese-ner = "0.1"

Add extern crate chinese_ner to your crate root and your're good to go!

Example

extern crate chinese_ner;

use chinese_ner::ChineseNER;

fn main() {
    let ner = ChineseNER::new();
    let result = ner.predict("今天上海天气很好").unwrap();
    println!("{:?}", result);
}

License

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

Dependencies

~8MB
~77K SLoC