1 write to Pos
Microsoft.ML.Tokenizers (1)
Model\Merge.cs (1)
16Pos = pos;
13 references to Pos
Microsoft.ML.Tokenizers (13)
Model\Merge.cs (5)
32return Pos.CompareTo(other.Pos); 39hashcode = (hashcode * 37) + Pos.GetHashCode(); 43public bool Equals(Merge other) => Pos == other.Pos && Rank == other.Rank;
Model\Word.cs (8)
132if (_symbols.Count == 0 || _symbols[top.Pos].Len == 0 || _symbols[top.Pos].Next == -1) 137int nextPos = _symbols[top.Pos].Next; 141Pair<int> targetNewPair = Pair<int>.Create(_symbols[top.Pos].C, right.C); 148_symbols[top.Pos].MergeWith(ref right, top.NewId); 156_symbols[right.Next].Prev = top.Pos; 160Symbol current = _symbols[top.Pos]; 181priorityQueue.Enqueue(new Merge(top.Pos, value.m1, value.m2));