langchain_experimental.data_anonymizer.deanonymizer_matching_strategies.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 – text to deanonymize
deanonymizer_mapping – mapping between anonymized entities and original ones
Examples of matching:keanu reeves -> Keanu Reeves
JOHN F. KENNEDY -> John F. Kennedy