Irannas/Masked_Email_Classification
0
1---2title: Email Classifier Project3emoji: ๐4colorFrom: blue5colorTo: purple6sdk: docker7pinned: false8---9 10Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference11# ๐ง Email Classifier with PII Masking12 13An intelligent tool that classifies emails into categories like Work, Personal, Spam, etc., while protecting sensitive information through PII (Personally Identifiable Information) masking.14 15**๐ Live Demo:** [๐ Try it on Hugging Face Spaces](https://huggingface.co/spaces/Irannas/Masked_Email_Classification) 16**๐ GitHub Repo:** [GitHub Repository](https://github.com/IrannaSS/Masked_Email_Classification)17 18---19 20## ๐ Features21 22- ๐ **PII Masking**: Automatically detects and masks sensitive information such as names, phone numbers, email addresses, and more.23- ๐ง **Email Classification**: Uses a fine-tuned transformer model to classify email content into predefined categories.24- โก **Real-Time Inference**: Deployed with Streamlit for fast and user-friendly web interaction.25- ๐ **Batch Upload Support**: Upload multiple email files (TXT format) and process them in one go.26 27---28 29## ๐งฐ Tech Stack30 31- **Language:** Python 3.10+32- **NLP Libraries:** Transformers (Hugging Face), spaCy, scikit-learn33- **Model:** DistilBERT / Custom Transformer34- **Deployment:** Streamlit, Hugging Face Spaces35- **PII Detection:** Regex + spaCy NER36 37---38 39## ๐ Project Structure40 41Email_Classifier_Project/42โโโ app/ # Streamlit App43โ โโโ app.py44โโโ model/ # Trained model and tokenizer45โ โโโ classifier_model/46โโโ data/ # Sample email data47โ โโโ sample_emails/48โโโ utils/ # Helper functions (PII masking, preprocessing, etc.)49โ โโโ preprocess.py50โโโ requirements.txt51โโโ Dockerfile 52โโโ README.md53 54 55 56---57 58## โ๏ธ Installation59 60Clone the repository and install the requirements:61 62```bash63git clone https://github.com/IrannaSS/Masked_Email_Classification64cd your-repo-name65pip install -r requirements.txt66 67 68Run the Streamlit app locally:69 70 streamlit run app/app.py71 72 73 