name. It also houses my Social Security Number, 687-35-1170.         What's more, I had my polish identity card there, with the number <POLISH_ID>.        I would like this data to be secured and protected in all possible ways. I believe It was stolen at <TIME>.        In case any information arises regarding my wallet, please reach out to me on my phone number, 7344131647, or through my personal email, jamesmichael@example.com.        Please consider this information to be highly confidential and respect my privacy.         The bank has been informed about the stolen credit card and necessary actions have been taken from their end. They will be reachable at their official email, blakeerik@example.com.    My representative there is Cristian Santos (her business phone: 2812140441).        Thank you for your assistance,        Brian Cox DVMAs you can see, almost all values have been replaced with synthetic ones. The only exception is the Polish ID number and time, which are not supported by the default faker operators. We can add new operators to the anonymizer, which will generate random data. You can read more about custom operators here.from faker import Fakerfake = Faker()def fake_polish_id(_=None):    return fake.bothify(text="???######").upper()fake_polish_id()    'VTC592627'def fake_time(_=None):    return fake.time(pattern="%I:%M %p")fake_time()    '03:14 PM'Let's add newly created operators to the anonymizer:from presidio_anonymizer.entities import OperatorConfignew_operators = {    "POLISH_ID": OperatorConfig("custom", {"lambda": fake_polish_id}),    "TIME": OperatorConfig("custom", {"lambda": fake_time}),}anonymizer.add_operators(new_operators)And anonymize everything once again:anonymizer.reset_deanonymizer_mapping()print_colored_pii(anonymizer.anonymize(document_content))    Date: 1974-12-26    Witness: Jimmy Murillo    Subject: Testimony Regarding the Loss of Wallet        Testimony Content:        Hello Officer,        My name is Jimmy Murillo and on
Open In Colab
Open In Colab ->: name. It also houses my Social Security Number, 687-35-1170.         What's more, I had my polish identity card there, with the number <POLISH_ID>.        I would like this data to be secured and protected in all possible ways. I believe It was stolen at <TIME>.        In case any information arises regarding my wallet, please reach out to me on my phone number, 7344131647, or through my personal email, jamesmichael@example.com.        Please consider this information to be highly confidential and respect my privacy.         The bank has been informed about the stolen credit card and necessary actions have been taken from their end. They will be reachable at their official email, blakeerik@example.com.    My representative there is Cristian Santos (her business phone: 2812140441).        Thank you for your assistance,        Brian Cox DVMAs you can see, almost all values have been replaced with synthetic ones. The only exception is the Polish ID number and time, which are not supported by the default faker operators. We can add new operators to the anonymizer, which will generate random data. You can read more about custom operators here.from faker import Fakerfake = Faker()def fake_polish_id(_=None):    return fake.bothify(text="???######").upper()fake_polish_id()    'VTC592627'def fake_time(_=None):    return fake.time(pattern="%I:%M %p")fake_time()    '03:14 PM'Let's add newly created operators to the anonymizer:from presidio_anonymizer.entities import OperatorConfignew_operators = {    "POLISH_ID": OperatorConfig("custom", {"lambda": fake_polish_id}),    "TIME": OperatorConfig("custom", {"lambda": fake_time}),}anonymizer.add_operators(new_operators)And anonymize everything once again:anonymizer.reset_deanonymizer_mapping()print_colored_pii(anonymizer.anonymize(document_content))    Date: 1974-12-26    Witness: Jimmy Murillo    Subject: Testimony Regarding the Loss of Wallet        Testimony Content:        Hello Officer,        My name is Jimmy Murillo and on