1 write to _queue
Microsoft.ML.Transforms (1)
Text\NgramUtils.cs (1)
59
_queue
= new FixedSizeQueue<uint>(_ngramLength + _skipLength);
19 references to _queue
Microsoft.ML.Transforms (19)
Text\NgramUtils.cs (19)
67
_queue
.Clear();
85
_queue
.AddLast(curKey);
88
if (
_queue
.IsFull && !ProcessNgrams(icol))
94
var queueSize =
_queue
.Capacity;
110
_queue
.AddLast(curKey);
111
if (!
_queue
.IsFull)
120
if (
_queue
.IsFull)
121
_queue
.RemoveFirst();
124
while (
_queue
.Count > 0)
128
_queue
.RemoveFirst();
141
Contracts.Assert(
_queue
.Count > 0);
143
_ngram[0] =
_queue
[0];
153
if (
_queue
.Count == 1 || !more)
159
for (int i = 1; i <
_queue
.Count; i++)
161
_ngram[i] =
_queue
[i];
183
Contracts.Assert(i + skips <
_queue
.Count);
188
for (int k = skips; k <= _skipLength && k + i <
_queue
.Count; k++)
190
_ngram[i] =
_queue
[k + i];
198
if (!more || (i + 1 < _ngramLength && i + k + 1 <
_queue
.Count && !ProcessSkipNgrams(icol, i + 1, k)))