10 references to EncodeToTokens
Microsoft.ML.Tokenizers.Tests (10)
BpeTests.cs (1)
430IReadOnlyList<EncodedToken> encoding1 = tokenizer.EncodeToTokens(text.AsSpan(), out _);
CodeGenTests.cs (5)
255encoding = tokenizer.EncodeToTokens(text.AsSpan(), out _); 350encoding = tokenizer.EncodeToTokens(text.AsSpan(), out _); 560encoding = codeGenTokenizer.EncodeToTokens(text.AsSpan(), out _); 693encoding = codeGenTokenizer.EncodeToTokens(text.AsSpan(), out _); 829encoding = codeGenTokenizer.EncodeToTokens(text.AsSpan(), out _);
EnglishRobertaTests.cs (1)
182IReadOnlyList<EncodedToken> encoding1 = tokenizer.EncodeToTokens(text.AsSpan(), out _);
LlamaTests.cs (2)
339Assert.Equal([], llamaTokenizer.EncodeToTokens(Span<char>.Empty, out _)); 501IReadOnlyList<EncodedToken> encoding1 = tokenizer.EncodeToTokens(text.AsSpan(), out _);
TiktokenTests.cs (1)
569IReadOnlyList<EncodedToken> encoding1 = tokenizer.EncodeToTokens(text.AsSpan(), out _);