Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 2.49 KB

README.md

File metadata and controls

54 lines (33 loc) · 2.49 KB

Gmail Extraction and Classification

📧 Gmail Extractor

Extracts emails from Gmail from 'Inbox' and 'Spam' folders in .txt format. Then converts each folder to Excel files. Adds 'spam' and 'non-spam' Labels and 1/0 Label_Numbers. Merges both Excel files into one and shuffles them.

Working of Code


NOTE: enable 'Less Secure App' access for the code to work https://myaccount.google.com/lesssecureapps

📬 Gmail Classification

Main steps to build a classifier -

🛠️ Machine Learning Models Used -

  • Logistic Regression
  • Support Vector Machine (Linear)
  • Support Vector Machine (RBF)
  • K Nearest Neighbor
  • Decision Tree Classifier
  • Random Forest Classifier
  • Multinomial Naïve Bayes

  Python Libraries

NumPy  Pandas  Matplotlib  Seaborn  NLTK  Scikit-Learn
BeautifulSoup  imaplib  OS  RE  codecs  getpass  email