2 writes to TreatWhitespaceAsSuffix
Microsoft.ML.Tokenizers (2)
SentencepieceModel.cs (2)
2316
TreatWhitespaceAsSuffix
= other.TreatWhitespaceAsSuffix;
2681
TreatWhitespaceAsSuffix
= input.ReadBool();
8 references to TreatWhitespaceAsSuffix
Microsoft.ML.Tokenizers (8)
Model\LlamaTokenizer.cs (1)
61
modelProto.TrainerSpec.
TreatWhitespaceAsSuffix
,
Model\SentencePieceTokenizer.cs (2)
72
TreatWhitespaceAsSuffix = modelProto.TrainerSpec.
TreatWhitespaceAsSuffix
;
76
_normalizer = new SentencePieceNormalizer(modelProto.NormalizerSpec.RemoveExtraWhitespaces, AddDummyPrefix, EscapeWhiteSpaces, modelProto.TrainerSpec.
TreatWhitespaceAsSuffix
, specialTokens);
SentencepieceModel.cs (5)
1633
if (
TreatWhitespaceAsSuffix
!= other.
TreatWhitespaceAsSuffix
) return false;
1689
if (HasTreatWhitespaceAsSuffix) hash ^=
TreatWhitespaceAsSuffix
.GetHashCode();
1997
output.WriteBool(
TreatWhitespaceAsSuffix
);
2316
TreatWhitespaceAsSuffix = other.
TreatWhitespaceAsSuffix
;