__init__ constructor
Leave feedback
On this page
Initializes a new instance of RedactionDescription class without replacement information.
def __init__(self, redaction_type, action_type, original_text):
...
| Parameter | Type | Description |
|---|---|---|
| redaction_type | RedactionType |
Type of data being redacted. |
| action_type | RedactionActionType |
Action to be performed on these data. |
| original_text | str |
Matched text, comment or annotation body. |
Initializes a new instance of RedactionDescription class with replacement information.
def __init__(self, redaction_type, action_type, original_text, replacement):
...
| Parameter | Type | Description |
|---|---|---|
| redaction_type | RedactionType |
Type of data being redacted. |
| action_type | RedactionActionType |
Action to be performed on these data. |
| original_text | str |
Matched text, comment or annotation body. |
| replacement | TextReplacement |
Replacement text, matched text and its position within original string. |
Initializes a new RedactionDescription with image area replacement information.
def __init__(self, redaction_type, action_type, image_area_replacement, image_details):
...
| Parameter | Type | Description |
|---|---|---|
| redaction_type | RedactionType |
Type of data being redacted. |
| action_type | RedactionActionType |
Action to be performed on these data. |
| image_area_replacement | RegionReplacementOptions |
Image area replacement information. |
| image_details | str |
Image textual description, by default it is an empty string. |
- class
RedactionDescription
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.