Struct vaporetto::Predictor[][src]

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

Predictor.

Implementations

Creates a new predictor.

Arguments

  • model - A model data.

Returns

A new predictor.

Predicts word boundaries of the specified range of a sentence.

Arguments

  • sentence - A sentence.
  • range - The range of the sentence.

Returns

A sentence with predicted boundary information.

Predicts word boundaries of the specified range of a sentence. This function inserts scores.

Arguments

  • sentence - A sentence.
  • range - The range of the sentence.

Returns

A sentence with predicted boundary information.

Predicts word boundaries.

Arguments

  • sentence - A sentence.

Returns

A sentence with predicted boundary information.

Predicts word boundaries. This function inserts scores.

Arguments

  • sentence - A sentence.

Returns

A sentence with predicted boundary information.

Sets the window size of words in the dictionary.

Arguments

  • size - The window size.

Returns

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().

Arguments

  • n_threads - The number of threads.
  • chunk_size - The chunk size of each thread.

Returns

A multithread predictor.

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 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.