1 write to _stringSymbolToIndexMapping
Microsoft.ML.Tokenizers (1)
Model\EnglishRobertaTokenizer.cs (1)
1115_stringSymbolToIndexMapping = new Dictionary<string, int>();
3 references to _stringSymbolToIndexMapping
Microsoft.ML.Tokenizers (3)
Model\EnglishRobertaTokenizer.cs (3)
1174if (!_stringSymbolToIndexMapping.TryGetValue(symbol, out int idx)) 1178_stringSymbolToIndexMapping[symbol] = idx; 1221public bool Contains(string symbol) => symbol != null && _stringSymbolToIndexMapping.ContainsKey(symbol);