In this post, I will use the Python programming language, Natural Language Processing (NLP), Bag of Words model, and Multinomial Naive Bayes algorithm to classify if an email is spam or not.

Problem:

Spam emails are unsolicited or junk email that gets sent out in bulk. A classic example of spam emails are emails from so-called Nigerian princes that promise to send you huge amounts of money if you provide them your bank accout details. Spam are annoying because they take up a lot of storage space and communication bandwidth. According to (Awad 2011) “ 40% of all emails are spam…

Aref Zeitoun

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store