WordBagEstimator.Options Class

Definition

Options for how the n-grams are extracted.

C#
public class WordBagEstimator.Options
Inheritance
WordBagEstimator.Options

Constructors

Fields

MaximumNgramsCount

The maximum number of grams to store in the dictionary, for each level of n-grams, from 1 (in position 0) up to ngramLength (in position ngramLength-1)

NgramLength

Maximum n-gram length.

SkipLength

Maximum number of tokens to skip when constructing an n-gram.

UseAllLengths

Whether to store all n-gram lengths up to ngramLength, or only ngramLength.

Weighting

The weighting criteria.

Applies to

Product Versions
ML.NET 1.0.0, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, Preview, 4.0.0