langchain_experimental.data_anonymizer.deanonymizer_mapping.DeanonymizerMapping¶
- class langchain_experimental.data_anonymizer.deanonymizer_mapping.DeanonymizerMapping(mapping: Dict[str, Dict[str, str]] = <factory>)[source]¶
Attributes
dataReturn the deanonymizer mapping
mappingMethods
__init__([mapping])update(new_mapping)Update the deanonymizer mapping with new values Duplicated values will not be added If there are multiple entities of the same type, the mapping will include a count to differentiate them.
- __init__(mapping: ~typing.Dict[str, ~typing.Dict[str, str]] = <factory>) None¶
- update(new_mapping: Dict[str, Dict[str, str]]) None[source]¶
Update the deanonymizer mapping with new values Duplicated values will not be added If there are multiple entities of the same type, the mapping will include a count to differentiate them. For example, if there are two names in the input text, the mapping will include NAME_1 and NAME_2.