langchain_experimental.data_anonymizer.base
.ReversibleAnonymizerBase¶
- class langchain_experimental.data_anonymizer.base.ReversibleAnonymizerBase[source]¶
Base abstract class for reversible anonymizers.
Methods
__init__
()anonymize
(text[, language, allow_list])Anonymize text
deanonymize
(text_to_deanonymize[, ...])Deanonymize text
Abstract method to reset deanonymizer mapping
- __init__()¶
- anonymize(text: str, language: Optional[str] = None, allow_list: Optional[List[str]] = None) str ¶
Anonymize text