Crates.io | chinese-ner |
lib.rs | chinese-ner |
version | 0.2.4 |
source | src |
created_at | 2018-06-04 16:27:56.790532 |
updated_at | 2021-01-23 07:29:53.936749 |
description | A CRF based Chinese Named-entity Recognition Library written in Rust |
homepage | |
repository | https://github.com/messense/chinese-ner-rs |
max_upload_size | |
id | 68505 |
size | 661,905 |
A CRF based Chinese Named-entity Recognition Library written in Rust
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!
extern crate chinese_ner;
use chinese_ner::ChineseNER;
fn main() {
let ner = ChineseNER::new();
let result = ner.predict("今天上海天气很好").unwrap();
println!("{:?}", result);
}
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.