2 writes to _keepPunctuations
Microsoft.ML.Transforms (2)
Text\TextNormalizing.cs (2)
111
_keepPunctuations
= keepPunctuations;
167
_keepPunctuations
= ctx.Reader.ReadBoolByte();
3 references to _keepPunctuations
Microsoft.ML.Transforms (3)
Text\TextNormalizing.cs (3)
139
ctx.Writer.WriteBoolByte(
_keepPunctuations
);
216
public bool CanSaveOnnx(OnnxContext ctx) => (_parent._keepDiacritics && _parent._keepNumbers && _parent.
_keepPunctuations
);
401
if (!_parent.
_keepPunctuations
&& char.IsPunctuation(ch) || !_parent._keepNumbers && char.IsNumber(ch))