1 write to AddEndOfSentence
Microsoft.ML.Tokenizers (1)
Model\CodeGenTokenizer.cs (1)
144AddEndOfSentence = addEndOfSentence;
7 references to AddEndOfSentence
Microsoft.ML.Tokenizers (6)
Model\CodeGenTokenizer.cs (6)
181if (AddEndOfSentence && string.IsNullOrEmpty(EndOfSentenceToken)) 286=> EncodeToTokens(text, textSpan, AddPrefixSpace, AddBeginningOfSentence, AddEndOfSentence, settings.ConsiderPreTokenization, settings.ConsiderNormalization); 492Tokens = 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); 720return LastIndexOf(text, textSpan, settings.MaxTokenCount, AddPrefixSpace, AddBeginningOfSentence, AddEndOfSentence, settings.ConsiderPreTokenization, 724tokenCount = 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)
972Assert.False(codeGenTokenizer.AddEndOfSentence);