PiiEntityRelexify¶
-
class
oci.ai_language.models.PiiEntityRelexify(**kwargs)¶ Bases:
oci.ai_language.models.pii_entity_masking.PiiEntityMaskingReplace with entity value with the same context
Attributes
MODE_MASKstr(object=’’) -> str MODE_RELEXIFYstr(object=’’) -> str MODE_REMOVEstr(object=’’) -> str MODE_REPLACEstr(object=’’) -> str excludeGets the exclude of this PiiEntityMasking. mode[Required] Gets the mode of this PiiEntityMasking. should_detectGets the should_detect of this PiiEntityMasking. Methods
__init__(**kwargs)Initializes a new PiiEntityRelexify object with values from keyword arguments. get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
MODE_MASK= 'MASK'¶
-
MODE_RELEXIFY= 'RELEXIFY'¶
-
MODE_REMOVE= 'REMOVE'¶
-
MODE_REPLACE= 'REPLACE'¶
-
__init__(**kwargs)¶ Initializes a new PiiEntityRelexify object with values from keyword arguments. The default value of the
modeattribute of this class isRELEXIFYand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - mode (str) – The value to assign to the mode property of this PiiEntityRelexify. Allowed values for this property are: “REPLACE”, “MASK”, “REMOVE”, “RELEXIFY”
- exclude (list[str]) – The value to assign to the exclude property of this PiiEntityRelexify.
- should_detect (bool) – The value to assign to the should_detect property of this PiiEntityRelexify.
-
exclude¶ Gets the exclude of this PiiEntityMasking. List of offsets/entities to be removed from anonymization.
Returns: The exclude of this PiiEntityMasking. Return type: list[str]
-
static
get_subtype(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
mode¶ [Required] Gets the mode of this PiiEntityMasking. The type of masking mode.
Allowed values for this property are: “REPLACE”, “MASK”, “REMOVE”, “RELEXIFY”
Returns: The mode of this PiiEntityMasking. Return type: str
-
should_detect¶ Gets the should_detect of this PiiEntityMasking. To include excluded entities from masking in detected entities or not.
Returns: The should_detect of this PiiEntityMasking. Return type: bool
-