DeanonymizerMapping#
- class langchain_experimental.data_anonymizer.deanonymizer_mapping.DeanonymizerMapping(
- mapping: ~typing.Dict[str,
- ~typing.Dict[str,
- str]] = <factory>,
Deanonymizer mapping.
Attributes
data
Return the deanonymizer mapping.
Methods
- Parameters:
mapping (Dict[str, Dict[str, str]])
- __init__(
- mapping: ~typing.Dict[str,
- ~typing.Dict[str,
- str]] = <factory>,
- Parameters:
mapping (Dict[str, Dict[str, str]])
- Return type:
None
- update(
- new_mapping: Dict[str, Dict[str, str]],
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.
- Parameters:
new_mapping (Dict[str, Dict[str, str]])
- Return type:
None