1 write to SpecialTokensReverse
Microsoft.ML.Tokenizers (1)
Model\WordPieceTokenizer.cs (1)
45
SpecialTokensReverse
= options.SpecialTokens is not null ? options.SpecialTokens.GroupBy(kvp => kvp.Value).ToDictionary(g => g.Key, g => g.First().Key) : null;
4 references to SpecialTokensReverse
Microsoft.ML.Tokenizers (4)
Model\WordPieceTokenizer.cs (4)
683
bool ignoreSpecialTokens = skipSpecialTokens &&
SpecialTokensReverse
is not null;
687
if (ignoreSpecialTokens &&
SpecialTokensReverse
!.TryGetValue(id, out _))
742
bool ignoreSpecialTokens =
SpecialTokensReverse
is not null && skipSpecialTokens;
746
if (ignoreSpecialTokens &&
SpecialTokensReverse
!.TryGetValue(id, out _))