6 overrides of Normalizer
Microsoft.ML.Tokenizers (6)
Model\BPETokenizer.cs (1)
305public override Normalizer? Normalizer => _normalizer;
Model\CodeGenTokenizer.cs (1)
254public override Normalizer? Normalizer => _normalizer;
Model\EnglishRobertaTokenizer.cs (1)
260public override Normalizer? Normalizer => _normalizer;
Model\SentencePieceTokenizer.cs (1)
164public override Normalizer? Normalizer => _normalizer;
Model\TiktokenTokenizer.cs (1)
132public override Normalizer? Normalizer => _normalizer;
Model\WordPieceTokenizer.cs (1)
248public override Normalizer? Normalizer => _normalizer;
6 references to Normalizer
Microsoft.ML.Tokenizers.Tests (6)
LlamaTests.cs (5)
261Assert.NotNull(llamaTokenizer.Normalizer); 262string normalizedInput = llamaTokenizer.Normalizer!.Normalize(input); 356Assert.NotNull(llamaTokenizer.Normalizer); 358Assert.Equal("▁Hello,▁World!", llamaTokenizer.Normalizer.Normalize("Hello, World!")); 497Assert.NotNull(tokenizer.Normalizer);
TokenizerTests.cs (1)
142Assert.True(tokenizer.Normalizer is not null || processedText is null);