Git Product home page Git Product logo

glove-sms's Introduction


GloVe Embeddings to filter SMS Spam

CLICK HERE to see the notebook in Jupyter nbviewer

Uses GloVe embeddings to filter out spam in text messages

The specification is able to tag every legitimate sms message correctly, while filtering out over 99% of spam messages.

The dataset was downloaded from Kaggle, and can also be found at the UCI Machine Learning Repository. Acknowledgements to Tiago A. Almeida and José María Gómez Hidalgo, creators of the original dataset. More information can be found here.

The GloVe encodings used are the 50 dimensional, 400K vocabulary from the the glove.6B.zip. More information and download link can be found here.

Model Performance Metrics

               precision   recall   f1-score   
   not spam       1.00      1.00      1.00       
       spam       1.00      0.99      0.99       
        avg       1.00      1.00      1.00      

AUC  = 0.993
Train Accuracy = 0.998
Test Accuracy  = 0.998

Contents

  • glove_sms.ipynb: Jupyter Notebook containing the classification models.
  • glove_sms_utils.py: Python scrypt containing some auxiliary functions.
  • cm_heat_plots.py: Python scrypt containing functions to create confusion matrix plots.
  • spelling_v2.py: Python scrypt containing a spelling corrector.
  • data: Auxiliary data files used for the spelling corrector and the corrector's output. NOTE: it does not contain the data for the analysis, that data can be downloaled here direct link.
  • media: Output and auxiliary images.
  • README.md: this file.

Drawing


GitHub Pages



glove-sms's People

Contributors

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