Struct chinese_ner::ChineseNER [−][src]
pub struct ChineseNER { /* fields omitted */ }
Methods
impl ChineseNER
[src]
impl ChineseNER
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn from_model(model_path: &str) -> Result<Self, Error>
[src]
pub fn from_model(model_path: &str) -> Result<Self, Error>
pub fn predict<'a>(
&'a self,
sentence: &'a str
) -> Result<NamedEntity<'a>, Error>
[src]
pub fn predict<'a>(
&'a self,
sentence: &'a str
) -> Result<NamedEntity<'a>, Error>
Trait Implementations
impl Debug for ChineseNER
[src]
impl Debug for ChineseNER
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for ChineseNER
[src]
impl Default for ChineseNER
fn default() -> ChineseNER
[src]
fn default() -> ChineseNER
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for ChineseNER
impl Send for ChineseNER
impl Sync for ChineseNER
impl Sync for ChineseNER