1 write to _specialTokens
Microsoft.ML.Tokenizers (1)
Model\SentencePieceTokenizer.cs (1)
80
_specialTokens
= new Dictionary<StringSpanOrdinalKey, int>();
5 references to _specialTokens
Microsoft.ML.Tokenizers (5)
Model\SentencePieceTokenizer.cs (5)
85
_specialTokens
.Add(new StringSpanOrdinalKey(item.Key), item.Value);
288
if (
_specialTokens
!.TryGetValue(text.Slice(Offset, Length), out int id))
619
if (idsCount < maxTokens &&
_specialTokens
!.TryGetValue(text.Slice(Offset, Length), out int id))
952
if (idsCount < maxTokens &&
_specialTokens
!.TryGetValue(text.Slice(Offset, Length), out int id))
1325
if (
_specialTokens
!.TryGetValue(text.Slice(current.Offset, current.Length), out int id))