Skip to content

a spam filter to distinguish between spam and ham emails effectively

Notifications You must be signed in to change notification settings

shwetgarg/spam_filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spam Filter

Descrition:

It is a spam filter to distinguish between spam and ham emails effectively

Distribution Structure:

  • conf.py : All the configuration related constants are defined here
  • stopwords_en.txt : List of english language stopwords
  • utils.py : Utility functions used by spam filter for reading data from file, writing data into file, dividing data into different folders as per label and generating KFold data
  • text_processing.py : Functions for preprocessing the data and give back list of tokens
  • spam_filter.py : Train, test, classify functions for spam filter

Usage:

  1. Define configuration related constants in conf.py

  2. Run the script as:

    python spam_filter.py

About

a spam filter to distinguish between spam and ham emails effectively

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages