Transform: Custom String Redaction

class gretel_client.transformers.transformers.redact_with_string.RedactWithString(config: gretel_client.transformers.transformers.redact_with_string.RedactWithStringConfig)
config_class

alias of RedactWithStringConfig

class gretel_client.transformers.transformers.redact_with_string.RedactWithStringConfig(labels: List[str] = None, minimum_score: Optional[float] = None, string: str = None)

Redact a string with another custom string.

Parameters

string – The string to replace the entire matched span with.

Note

This will redact an entire field or entire matched entity, it does not go char by char