PiiEntityReplace

class oci.ai_language.models.PiiEntityReplace(**kwargs)

Bases: oci.ai_language.models.pii_entity_masking.PiiEntityMasking

Replace PII entities with a given sequence of characters.

Attributes

MODE_MASK str(object=’’) -> str
MODE_REMOVE str(object=’’) -> str
MODE_REPLACE str(object=’’) -> str
mode [Required] Gets the mode of this PiiEntityMasking.
replace_with Gets the replace_with of this PiiEntityReplace.

Methods

__init__(**kwargs) Initializes a new PiiEntityReplace 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_REMOVE = 'REMOVE'
MODE_REPLACE = 'REPLACE'
__init__(**kwargs)

Initializes a new PiiEntityReplace object with values from keyword arguments. The default value of the mode attribute of this class is REPLACE and 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 PiiEntityReplace. Allowed values for this property are: “REPLACE”, “MASK”, “REMOVE”
  • replace_with (str) – The value to assign to the replace_with property of this PiiEntityReplace.
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”

Returns:The mode of this PiiEntityMasking.
Return type:str
replace_with

Gets the replace_with of this PiiEntityReplace. Replace entities with given sequence of characters. By default PII entity will be replaced with <ENTITY_TYPE>.

Returns:The replace_with of this PiiEntityReplace.
Return type:str