1 write to UnkIndex
Microsoft.ML.Tokenizers (1)
Model\EnglishRobertaTokenizer.cs (1)
1124UnkIndex = ReserveStringSymbolSlot(unk);
4 references to UnkIndex
Microsoft.ML.Tokenizers (4)
Model\EnglishRobertaTokenizer.cs (4)
1140return _idToIndex.TryGetValue(id, out int rank) ? rank : UnkIndex; 1161return UnkIndex; 1213return idx < _symbols.Count ? _symbols[idx].Id : UnkIndex; 1226public int IndexOf(int id) => _idToIndex.ContainsKey(id) ? _idToIndex[id] : UnkIndex;