langchain_experimental.data_anonymizer.deanonymizer_matching_strategies.exact_matching_strategy

langchain_experimental.data_anonymizer.deanonymizer_matching_strategies.exact_matching_strategy(text: str, deanonymizer_mapping: Dict[str, Dict[str, str]]) str[source]

Exact matching strategy for deanonymization.

It replaces all the anonymized entities with the original ones.

Parameters
  • text (str) – text to deanonymize

  • deanonymizer_mapping (Dict[str, Dict[str, str]]) – mapping between anonymized entities and original ones

Return type

str