Giter Club home page Giter Club logo

spamfilter's Introduction

spamfilter

usage: spamfilter.py [-h] [--ham HAM] [--spam SPAM] [--mail MAIL] [-o OUTPUT] [-m MODEL] [-a {mi-logistic,mi-svm}] [-l LIMIT] [-d DICTLIMIT] [-r RAMLIMIT] {model,test}

Create a spamfilter model or apply a created filter. Create a model:

python spamfilter.py --ham ham.p --spam spam.p -o model.p model -a mi-logistic -l 5000 -d 5000

Test a model:

python spamfilter.py --mail mail.mbox -m model.p test -o tagged.mbox -l 10000

If the testing cmd takes MBOX as source then it separates the messages into two MBOXes. If the output is provided, then it creates tagged MBOX.

positional arguments: {model,test} Set program mode

optional arguments: -h, --help show this help message and exit --ham HAM A file containing HAM. --spam SPAM A file containing SPAM --mail MAIL A file containing unsorted mail -o OUTPUT, --output OUTPUT output file -m MODEL, --model MODEL model file -a {mi-logistic,mi-svm}, --algo {mi-logistic,mi-svm} Select training algorithms. -l LIMIT, --limit LIMIT Import set limit - memory limitation -d DICTLIMIT, --dictLimit DICTLIMIT Max dictionary size -r RAMLIMIT, --ramLimit RAMLIMIT Set RAM limit (MB) -- OOM prevent.

Tento projekt byl podpořen studentským fakultním grantem (SFG) Matematicko-fyzikální fakulty Univerzity Karlovy.

spamfilter's People

Contributors

stredaa avatar zpevma avatar

Watchers

James Cloos avatar  avatar

Forkers

zpevma

spamfilter's Issues

OOP transformation

Transform code snippets into more modular prices - with abstract classes to enforce a structure.

Email tagging

Every evaluated email should have a header containing evaluation results. Moreover the email's subject should be rewritten if the detection was positive.

ipynb -> py

Rewrite the code from IPython notebook to Python script, the input parameters should be given from the command line.

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.