Giter VIP home page Giter VIP logo

spamector's Introduction

๐Ÿ“จ Spamector

Made_with_love_by Tristan Last_deployed November

๐Ÿ“ฎ A Spam Detector

  • Summary

Text mining is a wide field which has gained popularity with the huge text data being generated. Automation of several applications like sentiment analysis, document classification, topic classification, text summarization, and machine translation has been done using machine learning models.

Spam filtering is an example of document classification task which involves classifying an email as spam or non-spam (a.k.a. ham) mail.

In this project, I will go through the different steps on how to implement this kind of systems in a form of a tutorial using Python, and a publicly available mail corpus.

The output would be an API and a web application allowing the user to enter a message and get a response if it's a spam or ham.

  • Data Source

Enron Email Dataset

Link: https://www.cs.cmu.edu/~enron/

  • Python Libraries

For the Flask App:

nltk 3.2.4

flask 0.12.2

For the Jupyter Notebook:

scikitlearn 0.19.1

  • Structure
Spamector
โ”‚	README.md
โ”‚	requirements.txt
โ”‚	app.py 
โ”‚	engine.py
โ”‚	Spamector.ipynb 
โ”‚	Spamector.html
โ”‚	nb_model.sav
โ”‚	nb_model.joblib
โ””โ”€โ”€โ”€data
โ””โ”€โ”€โ”€jupyter_images
โ””โ”€โ”€โ”€static
โ”‚   โ””โ”€โ”€โ”€css
โ”‚   โ””โ”€โ”€โ”€img
โ”‚   โ””โ”€โ”€โ”€js  
โ””โ”€โ”€โ”€templates
  • Instructions - How to run Spamector
  1. Download the tarzip file.
  2. Extract the files.
  3. Start a terminal window and use cd to move to the Spamector folder.
  4. Run: python app.py
  5. Open a web browser and type 127.0.0.1:5000
  6. Enjoy ๐Ÿ˜Ž
  • Instructions - How to run the Jupyter Notebook
  1. From the Spamector folder in the terminal window, start a jupyter notebook session.
  2. From Jupyter notebook, run the Spamector notebook.
  3. Enjoy ๐Ÿ˜‰

Creative Commons License

spamector's People

Contributors

tristaneljed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.