Base:
method
Normalize
Microsoft.ML.Tokenizers.Normalizer.Normalize(System.ReadOnlySpan<System.Char>)
10 references to Normalize
Microsoft.ML.Tokenizers (1)
Normalizer\SentencePieceNormalizer.cs (1)
68
return
Normalize
(original.AsSpan());
Microsoft.ML.Tokenizers.Tests (9)
LlamaTests.cs (9)
399
Assert.Equal("Hello, World!", normalizer.
Normalize
("Hello, World!".AsSpan()));
403
Assert.Equal("Hello, World!", normalizer.
Normalize
("Hello, World!".AsSpan()));
407
Assert.Equal(" Hello, World!", normalizer.
Normalize
("Hello, World!".AsSpan()));
411
Assert.Equal("▁Hello,▁World!", normalizer.
Normalize
("Hello, World!".AsSpan()));
415
Assert.Equal("▁Hello,▁▁▁▁▁▁World!", normalizer.
Normalize
("Hello, World!".AsSpan()));
419
Assert.Equal("Hello,▁World!▁", normalizer.
Normalize
("Hello, World!".AsSpan()));
423
Assert.Equal("Hello,▁World!", normalizer.
Normalize
("Hello, World!".AsSpan()));
427
Assert.Equal("Hello,▁▁▁▁▁▁World!▁", normalizer.
Normalize
("Hello, World!".AsSpan()));
431
Assert.Equal("Hello, World! ", normalizer.
Normalize
("Hello, World!".AsSpan()));