chinese-ner

Crates.iochinese-ner
lib.rschinese-ner
version0.2.4
sourcesrc
created_at2018-06-04 16:27:56.790532
updated_at2021-01-23 07:29:53.936749
descriptionA CRF based Chinese Named-entity Recognition Library written in Rust
homepage
repositoryhttps://github.com/messense/chinese-ner-rs
max_upload_size
id68505
size661,905
messense (messense)

documentation

README

chinese-ner-rs

GitHub Actions 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.2"

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.

Commit count: 28

cargo fmt