Struct jieba_rs::Jieba[][src]

pub struct Jieba { /* fields omitted */ }

Jieba segmentation

Methods

impl Jieba
[src]

Create a new instance with empty dict

Create a new instance with embed dict

Create a new instance with dict

Add word to dict, return freq

freq: if None, will be given by suggest_freq

tag: if None, will be given ""

Load dictionary

Suggest word frequency to force the characters in a word to be joined or splitted.

Important traits for Vec<u8>

Cut the input text

Params

sentence: input text

hmm: enable HMM or not

Important traits for Vec<u8>

Cut the input text, return all possible words

Params

sentence: input text

Cut the input text in search mode

Params

sentence: input text

hmm: enable HMM or not

Important traits for Vec<u8>

Tokenize

Params

sentence: input text

mode: tokenize mode

hmm: enable HMM or not

Important traits for Vec<u8>

Tag the input text

Params

sentence: input text

hmm: enable HMM or not

Trait Implementations

impl Debug for Jieba
[src]

Formats the value using the given formatter. Read more

impl Default for Jieba
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Jieba

impl Sync for Jieba