1 instantiation of NgramBufferBuilder
Microsoft.ML.Transforms (1)
Text\NgramHashingTransformer.cs (1)
569
var bldr = new
NgramBufferBuilder
(_parent._columns[iinfo].NgramLength, _parent._columns[iinfo].SkipLength,
23 references to NgramBufferBuilder
Microsoft.ML.Transforms (23)
Text\NgramHashingTransformer.cs (12)
569
var
bldr = new NgramBufferBuilder(_parent._columns[iinfo].NgramLength, _parent._columns[iinfo].SkipLength,
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 (11)
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);
223
var helpers = new
NgramBufferBuilder
[columns.Length];
678
var
bldr = new NgramBufferBuilder(_parent._transformInfos[iinfo].NgramLength, _parent._transformInfos[iinfo].SkipLength,
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));