1 write to _normalizer
Microsoft.ML.Tokenizers (1)
Model\SentencePieceTokenizer.cs (1)
76
_normalizer
= new SentencePieceNormalizer(modelProto.NormalizerSpec.RemoveExtraWhitespaces, AddDummyPrefix, EscapeWhiteSpaces, modelProto.TrainerSpec.TreatWhitespaceAsSuffix, specialTokens);
10 references to _normalizer
Microsoft.ML.Tokenizers (10)
Model\SentencePieceTokenizer.cs (10)
164
public override Normalizer? Normalizer =>
_normalizer
;
241
if (considerNormalization &&
_normalizer
is not null)
243
normalizedText = text is not null ?
_normalizer
.Normalize(text) :
_normalizer
.Normalize(textSpan);
563
if (considerNormalization &&
_normalizer
is not null)
565
normalizedText =
_normalizer
.Normalize(text);
911
if (considerNormalization &&
_normalizer
is not null)
913
normalizedText =
_normalizer
.Normalize(text);
1264
if (considerNormalization &&
_normalizer
is not null)
1266
normalizedText =
_normalizer
.Normalize(text);