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); 88if (_queue.IsFull && !ProcessNgrams(icol)) 94var queueSize = _queue.Capacity; 110_queue.AddLast(curKey); 111if (!_queue.IsFull) 120if (_queue.IsFull) 121_queue.RemoveFirst(); 124while (_queue.Count > 0) 128_queue.RemoveFirst(); 141Contracts.Assert(_queue.Count > 0); 143_ngram[0] = _queue[0]; 153if (_queue.Count == 1 || !more) 159for (int i = 1; i < _queue.Count; i++) 161_ngram[i] = _queue[i]; 183Contracts.Assert(i + skips < _queue.Count); 188for (int k = skips; k <= _skipLength && k + i < _queue.Count; k++) 190_ngram[i] = _queue[k + i]; 198if (!more || (i + 1 < _ngramLength && i + k + 1 < _queue.Count && !ProcessSkipNgrams(icol, i + 1, k)))