entity_labels
entity_labels
¶
Functions:
| Name | Description |
|---|---|
normalize_entity_label |
Return the canonical identity used for entity-label comparisons. |
normalize_entity_label(label)
¶
Return the canonical identity used for entity-label comparisons.
Source code in src/anonymizer/config/entity_labels.py
def normalize_entity_label(label: str) -> str:
"""Return the canonical identity used for entity-label comparisons."""
return label.strip().casefold()