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