Anonymize Module
anonipy.anonymize
Module containing the anonymization modules and utility.
The anonymize
module provides a set of anonymization modules and utility,
including extractors
, generators
, and strategies
. In addition, it provides
methods for anonymizing text based on a list of replacements, as well as a
pipeline
class for automating the anonymization process.
Modules:
Name | Description |
---|---|
extractors |
The module containing the extractor classes. |
generators |
The module containing the generator classes. |
strategies |
The module containing the strategy classes. |
pipeline |
The module containing the pipeline class. |
Functions:
Name | Description |
---|---|
anonymize |
Anonymize the text based on the replacements. |
Functions
anonipy.anonymize.anonymize(text, replacements)
Anonymize a text based on a list of replacements.
Examples:
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text
|
str
|
The text to anonymize. |
required |
replacements
|
List[Replacement]
|
The list of replacements to apply. |
required |
Returns:
Type | Description |
---|---|
str
|
The anonymized text. |