Transform: Character Redaction¶
-
class
gretel_client.transformers.transformers.redact_with_char.
RedactWithChar
(config: gretel_client.transformers.transformers.redact_with_char.RedactWithCharConfig)¶ -
config_class
¶ alias of
RedactWithCharConfig
-
-
class
gretel_client.transformers.transformers.redact_with_char.
RedactWithCharConfig
(labels: List[str] = None, minimum_score: Optional[float] = None, mask: List[gretel_client.transformers.string_mask.StringMask] = None, char: str = 'X')¶ Redact a string with a constant character. Alphanumeric characters will be redacted.
- Parameters
char – The character to redact with
mask – An optioan list of
StringMask
objects. If provided, only the parts of the string defined in the masks will be redacted.