6 overrides of Normalize
Microsoft.ML.Tokenizers (4)
Normalizer\BertNormalizer.cs (1)
29
public override string
Normalize
(string original)
Normalizer\LowerCaseNormalizer.cs (1)
31
public override string
Normalize
(string original) => original.ToLowerInvariant();
Normalizer\SentencePieceNormalizer.cs (1)
61
public override string
Normalize
(string original)
Normalizer\UpperCaseNormalizer.cs (1)
31
public override string
Normalize
(string original) => original.ToUpperInvariant();
Microsoft.ML.Tokenizers.Tests (2)
NormalizerTests.cs (2)
71
public override string
Normalize
(string original)
141
public override string
Normalize
(string original)
6 references to Normalize
Microsoft.ML.Tokenizers (3)
Model\SentencePieceTokenizer.cs (1)
243
normalizedText = text is not null ? _normalizer.
Normalize
(text) : _normalizer.Normalize(textSpan);
Tokenizer.cs (2)
445
normalizedText = normalizer.
Normalize
(textSpan.ToString());
467
normalizedText = normalizer.
Normalize
(text);
Microsoft.ML.Tokenizers.Tests (3)
LlamaTests.cs (2)
262
string normalizedInput = llamaTokenizer.Normalizer!.
Normalize
(input);
358
Assert.Equal("▁Hello,▁World!", llamaTokenizer.Normalizer.
Normalize
("Hello, World!"));
NormalizerTests.cs (1)
61
string? normalizedText = normalizer.
Normalize
(text);