Skip to content

A spam filtering program that takes emails as input and returns if they are spam or ham.

Notifications You must be signed in to change notification settings

ali207715/Spam-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spam filter

A spam filtering program that takes emails as input and returns if they are SPAM or HAM.

Instructions

To use the filter, you need to utlize two datasets, a training and your main testing dataset. You may make your own or download from here.
Simply launch the main.py file and run it, and a list of emails from the testing dataset will be printed in the terminal, with the name of the file and its SPAM or HAM right next to it. It would look something like this -
img.

NOTE : IF USING YOUR OWN DATASET FOR TESTING, MAKE SURE TO HAVE FOLDERS NAMED "corpus" INSIDE WHICH YOU SHOULD HAVE TWO MORE NAMED "training" , "testing".
If using your own dataset, you may use the training dataset provided and simply place the email you want to be tested in the "testing" folder under "corpus".
Then proceed as instructed above.

About

A spam filtering program that takes emails as input and returns if they are spam or ham.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages