1 write to AddEndOfSentence
Microsoft.ML.Tokenizers (1)
Model\SentencePieceTokenizer.cs (1)
43
AddEndOfSentence
= addEos;
5 references to AddEndOfSentence
Microsoft.ML.Tokenizers (5)
Model\SentencePieceTokenizer.cs (5)
200
Tokens = EncodeToTokens(text, textSpan, out string? normalizedText, AddBeginningOfSentence,
AddEndOfSentence
, settings.ConsiderPreTokenization, settings.ConsiderNormalization),
457
Tokens = EncodeToIds(text, textSpan, AddBeginningOfSentence,
AddEndOfSentence
, settings.ConsiderNormalization, out string? normalizedText, out int charsConsumed, settings.MaxTokenCount),
839
return CountTokens(text, textSpan, AddBeginningOfSentence,
AddEndOfSentence
, settings.ConsiderPreTokenization, settings.ConsiderNormalization, out _, out _, settings.MaxTokenCount);
1167
tokenCount = CountTokens(text, textSpan, AddBeginningOfSentence,
AddEndOfSentence
, settings.ConsiderPreTokenization, settings.ConsiderNormalization, out normalizedText, out int charsConsumed, settings.MaxTokenCount);
1216
=> GetIndexByTokenCountFromEnd(text is null ? textSpan : text.AsSpan(), AddBeginningOfSentence,
AddEndOfSentence
, maxTokenCount, considerNormalization, out normalizedText, out tokenCount);