Redact individual strings
Redact a plain text string
redaction_response = textual.redact("""<text of the string>""")
redaction_response.describe()redaction_response = textual.redact("""Contact Tonic AI with questions""")
redaction_response.describe()
Contact ORGANIZATION_EPfC7XZUZ with questions
{"start": 8, "end": 16, "new_start": 8, "new_end": 30, "label": "ORGANIZATION", "text": "Tonic AI", "new_text": "[ORGANIZATION]", "score": 0.85, "language": "en"}Redact multiple plain text strings
Redact JSON content
Basic JSON redaction example
Specifying entity types for specific JSON paths
Redact XML content
Redact HTML content
Synthesis with Large Language Models
ReplacementSynthesis
GroupingSynthesis
Configuration
Format of the redaction and synthesis response
Last updated
Was this helpful?