case_insensitive_matching_strategy#
- langchain_experimental.data_anonymizer.deanonymizer_matching_strategies.case_insensitive_matching_strategy(text: str, deanonymizer_mapping: Dict[str, Dict[str, str]]) str [source]#
Case insensitive matching strategy for deanonymization.
- It replaces all the anonymized entities with the original ones
irrespective of their letter case.
- Parameters:
text (str) – text to deanonymize
deanonymizer_mapping (Dict[str, Dict[str, str]]) – mapping between anonymized entities and original ones
- Return type:
str
- Examples of matching:
keanu reeves -> Keanu Reeves JOHN F. KENNEDY -> John F. Kennedy