Struct jieba_rs::Jieba[][src]

pub struct Jieba { /* fields omitted */ }
Expand description

Jieba segmentation

Implementations

Create a new instance with empty dict

Create a new instance with embed dict

Requires default-dict feature to be enabled.

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.

Cut the input text

Params

sentence: input text

hmm: enable HMM or not

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

Tokenize

Params

sentence: input text

mode: tokenize mode

hmm: enable HMM or not

Tag the input text

Params

sentence: input text

hmm: enable HMM or not

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.