Struct jieba_rs::Jieba
[−]
[src]
pub struct Jieba { /* fields omitted */ }
Jieba segmentation
Methods
impl Jieba
[src]
pub fn new() -> Self
[src]
Create a new instance with embed dict
pub fn cut<'a>(&self, sentence: &'a str, hmm: bool) -> Vec<&'a str>
[src]
pub fn cut_all<'a>(&self, sentence: &'a str) -> Vec<&'a str>
[src]
pub fn cut_for_search<'a>(&self, sentence: &'a str, hmm: bool) -> Vec<&'a str>
[src]
pub fn tokenize<'a>(
&self,
sentence: &'a str,
mode: TokenizeMode,
hmm: bool
) -> Vec<Token<'a>>
[src]
&self,
sentence: &'a str,
mode: TokenizeMode,
hmm: bool
) -> Vec<Token<'a>>
pub fn tag<'a>(&'a self, sentence: &'a str, hmm: bool) -> Vec<Tag<'a>>
[src]
Trait Implementations
impl Debug for Jieba
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more