pub struct Predictor { /* fields omitted */ }
Expand description
Creates a new predictor.
A new predictor.
Predicts word boundaries of the specified range of a sentence.
sentence
- A sentence.
range
- The range of the sentence.
A sentence with predicted boundary information.
Predicts word boundaries of the specified range of a sentence. This function inserts
scores.
sentence
- A sentence.
range
- The range of the sentence.
A sentence with predicted boundary information.
Predicts word boundaries.
A sentence with predicted boundary information.
Predicts word boundaries. This function inserts scores.
A sentence with predicted boundary information.
Sets the window size of words in the dictionary.
A predictor with the specified window size.
This is supported on crate feature multithreading
only.
Creates a multithreading predictor. This function is the alias of
MultithreadPredictor::new()
.
n_threads
- The number of threads.
chunk_size
- The chunk size of each thread.
A multithread predictor.
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 type returned in the event of a conversion error.
The type returned in the event of a conversion error.