AnonymizerBase#

class langchain_experimental.data_anonymizer.base.AnonymizerBase[source]#

Base abstract class for anonymizers.

It is public and non-virtual because it allows

wrapping the behavior for all methods in a base class.

Methods

__init__()

anonymize(text[, language, allow_list])

Anonymize text.

__init__()#
anonymize(text: str, language: str | None = None, allow_list: List[str] | None = None) str[source]#

Anonymize text.

Parameters:
  • text (str)

  • language (str | None)

  • allow_list (List[str] | None)

Return type:

str