diff --git a/src/Microsoft.ML.Transforms/Text/TextCatalog.cs b/src/Microsoft.ML.Transforms/Text/TextCatalog.cs index e2baf1578e..745cddcf58 100644 --- a/src/Microsoft.ML.Transforms/Text/TextCatalog.cs +++ b/src/Microsoft.ML.Transforms/Text/TextCatalog.cs @@ -283,7 +283,7 @@ public static WordBagEstimator ProduceWordBags(this TransformsCatalog.TextTransf int maximumNgramsCount = NgramExtractingEstimator.Defaults.MaximumNgramsCount, NgramExtractingEstimator.WeightingCriteria weighting = NgramExtractingEstimator.WeightingCriteria.Tf) => new WordBagEstimator(Contracts.CheckRef(catalog, nameof(catalog)).GetEnvironment(), - outputColumnName, inputColumnName, ngramLength, skipLength, useAllLengths, maximumNgramsCount); + outputColumnName, inputColumnName, ngramLength, skipLength, useAllLengths, maximumNgramsCount, weighting); /// /// Produces a bag of counts of ngrams (sequences of consecutive words) in