Skip to content

akshaybahadur21/Spam-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Spam Classifier πŸ“ˆ

This code helps you classify whether a message is spam or ham.

Code Requirements πŸ¦„

You can install Conda for python which resolves all the dependencies for machine learning.

Description πŸ—žοΈ

Naive Bayes classifiers work by correlating the use of tokens (typically words, or sometimes other things), with spam and non-spam e-mails and then using Bayes' theorem to calculate a probability that an email is or is not spam.

Naive Bayes spam filtering is a baseline technique for dealing with spam that can tailor itself to the email needs of individual users and give low false positive spam detection rates that are generally acceptable to users. It is one of the oldest ways of doing spam filtering, with roots in the 1990s.

18th March

  1. Extracted occurances of spam and ham.
  2. Stored the messages in a list
  3. Ignored some spam messages since there was an encoding issue. Used try/catch technique for that

Execution πŸ‰

To run the code, type python spam.py

python spam.py

About

Spam classifier using text analysis πŸ“ˆ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published