8 releases
0.2.4 | Jan 23, 2021 |
---|---|
0.2.3 | Jul 30, 2020 |
0.2.2 | May 14, 2020 |
0.2.1 | Jun 12, 2019 |
0.0.0 | Jun 4, 2018 |
#1396 in Text processing
300KB
513 lines
chinese-ner-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.
Dependencies
~10MB
~111K SLoC