Struct vaporetto::Dataset[][src]

pub struct Dataset<'a> { /* fields omitted */ }
This is supported on crate feature train only.
Expand description

Dataset manager.

Implementations

Creates a new dataset manager.

Arguments

  • char_ngram_size - The character n-gram length.
  • char_window_size - The character window size.
  • type_ngram_size - The character type n-gram length.
  • type_window_size - The character type window size.
  • dictionary - A word dictionary (must be alphabetical ascending order).
  • dict_word_max_size - Dictionary words greater than this value will be grouped together.

Returns

A dataset manager.

Errors

If invalid parameters are given, an error variant will be returned.

Adds a sentence to the dataset.

Arguments

  • s - A sentence.

Gets the number of features.

Returns

The number of features.

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.