1 write to _symbols
Microsoft.ML.Tokenizers (1)
Model\EnglishRobertaTokenizer.cs (1)
1114
_symbols
= new List<(int, int)>();
11 references to _symbols
Microsoft.ML.Tokenizers (11)
Model\EnglishRobertaTokenizer.cs (11)
1150
Debug.Assert(rank <
_symbols
.Count);
1151
return
_symbols
[rank].OccurrenceScore;
1159
if ((uint)rank >=
_symbols
.Count)
1164
return
_symbols
[rank].Id;
1176
idx =
_symbols
.Count;
1177
_symbols
.Add((-1, defaultOccurrence));
1188
idx =
_symbols
.Count;
1189
_symbols
.Add((id, highOccurrenceScore));
1213
return idx <
_symbols
.Count ?
_symbols
[idx].Id : UnkIndex;
1217
public int Count =>
_symbols
.Count;