PIIDetection
¶
Source code in docs_src/capo_glue/types/pii_detection.py
detection_parameters
instance-attribute
¶
detection_parameters: NotRequired[EnclosedInStringProperty]
Additional parameters for configuring PII detection behavior and sensitivity settings.
detection_sensitivity
instance-attribute
¶
detection_sensitivity: NotRequired[EnclosedInStringProperty]
The sensitivity level for PII detection. Higher sensitivity levels detect more potential PII but may result in more false positives.
entity_types_to_detect
instance-attribute
¶
entity_types_to_detect: EnclosedInStringProperties
Indicates the types of entities the PIIDetection transform will identify as PII data.
PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER, BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE, USA_MEDICARE_BENEFICIARY_IDENTIFIER, USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE
mask_value
instance-attribute
¶
mask_value: NotRequired[MaskValue]
Indicates the value that will replace the detected entity.
match_pattern
instance-attribute
¶
match_pattern: NotRequired[EnclosedInStringProperty]
A regular expression pattern used to identify additional PII content beyond the standard detection algorithms.
num_left_chars_to_exclude
instance-attribute
¶
num_left_chars_to_exclude: NotRequired[BoxedPositiveInt]
The number of characters to exclude from redaction on the left side of detected PII content. This allows preserving context around the sensitive data.
num_right_chars_to_exclude
instance-attribute
¶
num_right_chars_to_exclude: NotRequired[BoxedPositiveInt]
The number of characters to exclude from redaction on the right side of detected PII content. This allows preserving context around the sensitive data.
output_column_name
instance-attribute
¶
output_column_name: NotRequired[EnclosedInStringProperty]
Indicates the output column name that will contain any entity type detected in that row.
redact_char
instance-attribute
¶
redact_char: NotRequired[EnclosedInStringProperty]
The character used to replace detected PII content when redaction is enabled. The default redaction character is *.
redact_text
instance-attribute
¶
redact_text: NotRequired[EnclosedInStringProperty]
Specifies whether to redact the detected PII text. When set to true, PII content is replaced with redaction characters.
sample_fraction
instance-attribute
¶
sample_fraction: NotRequired[BoxedDoubleFraction]
Indicates the fraction of the data to sample when scanning for PII entities.
threshold_fraction
instance-attribute
¶
threshold_fraction: NotRequired[BoxedDoubleFraction]
Indicates the fraction of the data that must be met in order for a column to be identified as PII data.