main_23.py 209 B

1234
  1. def english_pseudo(text):
  2. anon = AnonymizerChain(Anonymization('en_US'))
  3. anon.add_anonymizers(EmailAnonymizer, NamedEntitiesAnonymizer('en_core_web_lg'))
  4. clean_text, patch = anon.pseudonymize(text)