21 references to MaxSkipNgramLength
Microsoft.ML.Transforms (21)
Text\NgramHashingTransformer.cs (11)
966
if (ngramLength + skipLength > NgramBufferBuilder.
MaxSkipNgramLength
)
969
$"The sum of skipLength and ngramLength must be less than or equal to {NgramBufferBuilder.
MaxSkipNgramLength
}");
1006
Contracts.CheckDecode(0 < NgramLength && NgramLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
1008
Contracts.CheckDecode(0 <= SkipLength && SkipLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
1009
Contracts.CheckDecode(SkipLength <= NgramBufferBuilder.
MaxSkipNgramLength
- NgramLength);
1036
Contracts.CheckDecode(0 < NgramLength && NgramLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
1038
Contracts.CheckDecode(0 <= SkipLength && SkipLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
1039
Contracts.CheckDecode(SkipLength <= NgramBufferBuilder.
MaxSkipNgramLength
- NgramLength);
1069
Contracts.Assert(0 < NgramLength && NgramLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
1071
Contracts.Assert(0 <= SkipLength && SkipLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
1072
Contracts.Assert(NgramLength + SkipLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
Text\NgramTransform.cs (9)
153
Contracts.CheckDecode(0 < NgramLength && NgramLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
155
Contracts.CheckDecode(0 <= SkipLength && SkipLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
156
Contracts.CheckDecode(NgramLength <= NgramBufferBuilder.
MaxSkipNgramLength
- SkipLength);
174
Contracts.Assert(0 < NgramLength && NgramLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
176
Contracts.Assert(0 <= SkipLength && SkipLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
177
Contracts.Assert(NgramLength + SkipLength <= NgramBufferBuilder.
MaxSkipNgramLength
);
1043
if (ngramLength + skipLength > NgramBufferBuilder.
MaxSkipNgramLength
)
1045
$"The sum of skipLength and ngramLength must be less than or equal to {NgramBufferBuilder.
MaxSkipNgramLength
}");
1046
Contracts.CheckUserArg(0 < ngramLength && ngramLength <= NgramBufferBuilder.
MaxSkipNgramLength
, nameof(ngramLength));
Text\NgramUtils.cs (1)
51
Contracts.Assert(ngramLength <=
MaxSkipNgramLength
- skipLength);