11 references to Instance
Microsoft.ML.Tokenizers (11)
Model\CodeGenTokenizer.cs (4)
1360ByteToUnicodeEncoding byteToUnicodeEncoding = ByteToUnicodeEncoding.Instance; 1522private static readonly char _transformedSpace = ByteToUnicodeEncoding.Instance.ByteToUnicode[' ']; 1566IReadOnlyDictionary<char, char> unicodeToByte = ByteToUnicodeEncoding.Instance.UnicodeToByte; 1626string[] charToString = ByteToUnicodeEncoding.Instance.CharToString;
Model\EnglishRobertaTokenizer.cs (6)
286IReadOnlyDictionary<char, char> unicodeToByte = ByteToUnicodeEncoding.Instance.UnicodeToByte; 367IReadOnlyDictionary<char, char> byteToUnicode = ByteToUnicodeEncoding.Instance.ByteToUnicode; 679IReadOnlyDictionary<char, char> byteToUnicode = ByteToUnicodeEncoding.Instance.ByteToUnicode; 724IReadOnlyDictionary<char, char> byteToUnicode = ByteToUnicodeEncoding.Instance.ByteToUnicode; 955string[] charToString = ByteToUnicodeEncoding.Instance.CharToString; 1083public bool IsSupportedChar(char ch) => ByteToUnicodeEncoding.Instance.ByteToUnicode.ContainsKey(ch);
Utils\Helpers.cs (1)
82ByteToUnicodeEncoding byteToUnicodeEncoder = ByteToUnicodeEncoding.Instance;