pub struct Jieba { /* fields omitted */ }
Expand description
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 ""
Suggest word frequency to force the characters in a word to be joined or splitted.
Cut the input text
sentence
: input text
hmm
: enable HMM or not
Cut the input text, return all possible words
sentence
: input text
Cut the input text in search mode
sentence
: input text
hmm
: enable HMM or not
Tokenize
sentence
: input text
mode
: tokenize mode
hmm
: enable HMM or not
Tag the input text
sentence
: input text
hmm
: enable HMM or not
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
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.
The type returned in the event of a conversion error.