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