This is an applied application of machine learning. It is a chrome extension to detect spam messages.
Naive Bayes classifiers are a popular statistical technique of e-mail filtering. They typically use bag of words
features to identify spam e-mail, an approach commonly used in text classification.
Naive Bayes classifiers work by correlating the use of tokens (typically words, or sometimes other things), with spam and non-spam e-mails and then using Bayes' theorem to calculate a probability that an email is or is not spam. More
For Python app:
- skleran
- flask
- skleran
- textblob
- numpy
- pandas
For Extension:
- jquery
- Download clone or download this repository.
- Extract to some location
- First, run
app.py
fromscript
folder
Now flask server will start on localhost(http://127.0.0.1:5000/)
- Now load extension in chrome.
For this you need to load complete folder(SpamFilter-ChromeExtension) using
Load unpacked extension
in chrome extension manager - Now you can check messages.
If you are not getting the result then check your browser console. If it is showing Access-Control-Allow-Origin
error then,
You can find a Chrome extension(https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi) that will modify CORS headers on the fly in your application. Obviously, this is Chrome only, but I like that it works with zero changes anywhere at all.
You can use it for debugging your app on a local machine (if everything works in production).