1 write to _pool
Microsoft.ML.Data (1)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
107
_pool
= new NormStr.Pool();
10 references to _pool
Microsoft.ML.Data (10)
Transforms\ValueToKeyMappingTransformerImpl.cs (10)
101
get { return
_pool
.Count; }
115
int count =
_pool
.Count;
116
return
_pool
.Add(val).Id == count;
121
if (!_sorted ||
_pool
.Count <= 1)
122
return new TermMap.TextImpl(
_pool
);
124
var perm = Utils.GetIdentityPermutation(
_pool
.Count);
125
Comparison<int> comp = (i, j) =>
_pool
.GetNormStrById(i).Value.Span.CompareTo(
_pool
.GetNormStrById(j).Value.Span, StringComparison.Ordinal);
131
var nstr = sortedPool.Add(
_pool
.GetNormStrById(perm[i]).Value);
135
Contracts.Assert(sortedPool.Count ==
_pool
.Count);