2 references to GetIndexByTokenCountFromEnd
Microsoft.ML.Tokenizers.Tests (2)
LlamaTests.cs (1)
699
index = tokenizer.
GetIndexByTokenCountFromEnd
(s, addBeginningOfSentence: false, addEndOfSentence: false, maxTokenCount: i, considerNormalization: true, out normalizedText, out tokenCount);
UnigramTests.cs (1)
509
index = _unigramTokenizer.
GetIndexByTokenCountFromEnd
(inputText, addBeginningOfSentence: false, addEndOfSentence: false, maxTokenCount: 1, considerNormalization: true, out normalized, out charConsumed);