Skip to main content

Pseudonymize email content in Romance languages

Project description

mailcom

Tool to parse email body from email text (eml file), and retains only the text, with names removed, for French of Spanish emails.

Installation

Install using
python -m pip install mailcom

You will also need to download the French and Spanish models for spaCy and Stanza using the provided script - run this in the terminal:

./get-models.sh

For an overview over the available languages and models, check the spaCy website.

Usage

The package uses spaCy for sentencizing, based on the default language models, and transformers for NER recognition. Currently, you have to set the language and eml file directory manually at the top of parse.py; the default directory is data/in. Then run python parse.py. After the run, the output can be found in data/out.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mailcom-0.0.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

mailcom-0.0.1-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft Sir Raditya Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page