Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
/ chinese-ner-rs Public archive

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

License

Notifications You must be signed in to change notification settings

messense/chinese-ner-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages