1 write to AddEndOfSentence
Microsoft.ML.Tokenizers (1)
Model\CodeGenTokenizer.cs (1)
144
AddEndOfSentence
= addEndOfSentence;
7 references to AddEndOfSentence
Microsoft.ML.Tokenizers (6)
Model\CodeGenTokenizer.cs (6)
181
if (
AddEndOfSentence
&& string.IsNullOrEmpty(EndOfSentenceToken))
286
=> EncodeToTokens(text, textSpan, AddPrefixSpace, AddBeginningOfSentence,
AddEndOfSentence
, settings.ConsiderPreTokenization, settings.ConsiderNormalization);
492
Tokens = EncodeToIds(text, textSpan, AddPrefixSpace, AddBeginningOfSentence,
AddEndOfSentence
, settings.ConsiderPreTokenization, settings.ConsiderNormalization,
672
=> CountTokens(text, textSpan, AddPrefixSpace, AddBeginningOfSentence,
AddEndOfSentence
, settings.ConsiderPreTokenization, settings.ConsiderNormalization, out _, out _, settings.MaxTokenCount);
720
return LastIndexOf(text, textSpan, settings.MaxTokenCount, AddPrefixSpace, AddBeginningOfSentence,
AddEndOfSentence
, settings.ConsiderPreTokenization,
724
tokenCount = CountTokens(text, textSpan, AddPrefixSpace, AddBeginningOfSentence,
AddEndOfSentence
, settings.ConsiderPreTokenization, settings.ConsiderNormalization, out normalizedText, out int charsConsumed, settings.MaxTokenCount);
Microsoft.ML.Tokenizers.Tests (1)
CodeGenTests.cs (1)
972
Assert.False(codeGenTokenizer.
AddEndOfSentence
);