2 writes to NgramLength
Microsoft.ML.Transforms (2)
Text\NgramTransform.cs (2)
135NgramLength = info.NgramLength; 152NgramLength = ctx.Reader.ReadInt32();
16 references to NgramLength
Microsoft.ML.Transforms (16)
Text\NgramTransform.cs (16)
139NonEmptyLevels = new bool[NgramLength]; 153Contracts.CheckDecode(0 < NgramLength && NgramLength <= NgramBufferBuilder.MaxSkipNgramLength); 156Contracts.CheckDecode(NgramLength <= NgramBufferBuilder.MaxSkipNgramLength - SkipLength); 161NonEmptyLevels = ctx.Reader.ReadBoolArray(NgramLength); 174Contracts.Assert(0 < NgramLength && NgramLength <= NgramBufferBuilder.MaxSkipNgramLength); 175ctx.Writer.Write(NgramLength); 177Contracts.Assert(NgramLength + SkipLength <= NgramBufferBuilder.MaxSkipNgramLength); 181Contracts.Assert(Utils.Size(NonEmptyLevels) == NgramLength); 313int ngramLength = transformInfos[iinfo].NgramLength; 543uint[] ngram = new uint[_parent._transformInfos[iinfo].NgramLength]; 568var maxNGramLength = transformInfo.NgramLength; 678var bldr = new NgramBufferBuilder(_parent._transformInfos[iinfo].NgramLength, _parent._transformInfos[iinfo].SkipLength, 804node.AddAttribute("max_gram_length", transformInfo.NgramLength); 806node.AddAttribute("min_gram_length", transformInfo.UseAllLengths ? 1 : transformInfo.NgramLength);