1 write to SpecialTokensReverse
Microsoft.ML.Tokenizers (1)
Model\WordPieceTokenizer.cs (1)
50
SpecialTokensReverse
= specialTokens is not null ? specialTokens.ToDictionary(kvp => kvp.Value, kvp => kvp.Key) : null;
4 references to SpecialTokensReverse
Microsoft.ML.Tokenizers (4)
Model\WordPieceTokenizer.cs (4)
738
bool ignoreSpecialTokens = skipSpecialTokens &&
SpecialTokensReverse
is not null;
742
if (ignoreSpecialTokens &&
SpecialTokensReverse
!.TryGetValue(id, out _))
797
bool ignoreSpecialTokens =
SpecialTokensReverse
is not null && skipSpecialTokens;
801
if (ignoreSpecialTokens &&
SpecialTokensReverse
!.TryGetValue(id, out _))