GithubHelp home page GithubHelp logo

email-spam-filtering's Introduction

Email-Spam-Filtering

Email spam filtering with scikit - learn

Text mining (deriving information from text) is a wide field which has gianed popularity with the huge text data being generated. Automation of a number of applications like sentiment analysis, document classification, topic classification, text summarization, machine translation, etc has been done using machine learning models.

Spam filtering is a beginner's example of document classification task which involves classifying an email as spam or non - spam (hum) mail. just like gmail.

I am providing data - set in above files you can use it.

We will walk through the following steps to build this application:

1. Preparing the text data.

2. Creating word dictionary.

3. Feature extraction process

4. Training the classifier

Preparing the text data

The data - set used here, is split into a training set and a test set containing 702 mails and 260 mails respectively, divided equally b/w spam and ham emials.

In any text mining problem, text cleaning is the first step where we remove those words from the document which may not contribute to the information we want to extract. Emails may contain a lot of undesirable characters like punctuation marks, stop words, digits, etc which may not be helpful in detecting the spam email. The emails in Ling - spam corpus have been already preprocessed in the following ways: a) Removal of Stop Words - stop words like "and", "the", "of", etc are very common in all english sentences and are not very meaningful in deciding spam or legitimate status, so these words have been removed from the emails.

B) Lemmatization - It is the process of grouping together the different inflected forms of a word so they can be analysed as a single item. For example, "include", "includes", and "included" would all be represented as "include".

email-spam-filtering's People

Contributors

shailesh74250 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.