4 references to CountTokensFromEnd
Microsoft.ML.Tokenizers (4)
Model\SentencePieceTokenizer.cs (4)
1282tokenCount = CountTokensFromEnd(textToEncode, addBeginningOfSentence, addEndOfSentence, out textIndex, maxTokenCount); 1306return CountTokensFromEnd(text, addBeginOfSentence, addEndOfSentence, out textIndex, maxTokens); 1317idsCount += CountTokensFromEnd(splitText, addBeginOfSentence: false, addEndOfSentence: false, out splitTextIndex, maxTokens - idsCount); 1335idsCount += CountTokensFromEnd(splitText, addBeginOfSentence: false, addEndOfSentence: false, out splitTextIndex, maxTokens - idsCount);