16 references to Count
Microsoft.ML.Tokenizers (16)
Model\BPETokenizer.cs (1)
268for (int i = 0; i < merges.Count; i++)
Model\Word.cs (15)
30public int SymbolsCount => _symbols.Count; 37int len = _symbols.Count; 56if (i >= _symbols.Count) 62if (_symbols[i].C == c1 && i + 1 < _symbols.Count && _symbols[i + 1].C == c2) 87if (i < _symbols.Count - 1) 102priorityQueue ??= new PriorityQueue<Merge>(_symbols.Count); 107for (int i = 0; i < _symbols.Count - 1; i++) 125for (int i = 0; i < skip.Count; i++) 132if (_symbols.Count == 0 || _symbols[top.Pos].Len == 0 || _symbols[top.Pos].Next == -1) 154if (right.Next > -1 && right.Next < _symbols.Count) 175if ((uint)next < (uint)_symbols.Count) 188for (int i = _symbols.Count - 1; i >= 0; i--) 266for (int i = 0; i < _symbols.Count; i++) 276if (_symbols.Count == 0) 284for (int i = 1; i < _symbols.Count; i++)