Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yzernik/spamfilter

Naive Bayes classifier for identifying spam
https://github.com/yzernik/spamfilter

Last synced: 9 days ago
JSON representation

Naive Bayes classifier for identifying spam

Awesome Lists containing this project

README

        

spamfilter
==========

Naive Bayes classifier for identifying spam

First, create the features file:
spamfilter.py -getfeatures

Then, create a boolean or ntf model:
spamfilter.py -makemodel [boolean or ntf]

Then, test the boolean or ntf model:
spamfilter.py -testmodel [boolean or ntf] [cost_ratio]

Then, filter a stripped email file with the boolean or ntf model and a cost ratio:
spamfilter.py -filteremail [boolean or ntf] [filename] [cost_ratio]