Apply the configured strategy to matches within content.
apply_strategy(
content: str,
matches: list[PIIMatch],
strategy: RedactionStrategy
) -> str| Name | Type | Description |
|---|---|---|
content* | str | The content to apply strategy to. |
matches* | list[PIIMatch] | List of detected PII matches. |
strategy* | RedactionStrategy | The redaction strategy to apply. |