Struct vaporetto::MultithreadPredictor[][src]

pub struct MultithreadPredictor { /* fields omitted */ }
This is supported on crate feature multithreading only.
Expand description

Predictor for multithreading.

Implementations

Creates a multithreading predictor.

Arguments

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

Returns

A multithread predictor.

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.

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.