Skip to main content

Simple Bayesian Spamfilter

Project description

Spamfilter

A Naive Bayesian spam classifier in Python

This is a reimplementation of my previous spamfilter that I had written in Ruby.

Once again, I have included small training and testing directories to illustrate usage. To get reasonable accuracy, larger training sets must be used, although the accuracy was surprisngly high even with these miniscule datasets. The included emails have been preprocessed to remove the headers and footers. You can experiment and see what provides higher accuracy.

At the moment, the email directory is hardcoded and uses *nix pathnames.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spamfilter_avcourt-0.1.0.tar.gz (347.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spamfilter_avcourt-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file spamfilter_avcourt-0.1.0.tar.gz.

File metadata

  • Download URL: spamfilter_avcourt-0.1.0.tar.gz
  • Upload date:
  • Size: 347.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for spamfilter_avcourt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 45a52ef79cf75b269c309654e2a303e519812faa279654cf5c3da5cc89fc11e3
MD5 18439d59a19e594a76c10d466eac2fda
BLAKE2b-256 9a1c50f17944f418b783becc1f1f6c6ed4f53a9dc0ddbfdcb93e289b2eb3ede5

See more details on using hashes here.

File details

Details for the file spamfilter_avcourt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: spamfilter_avcourt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for spamfilter_avcourt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff13b19f71d14086bf65291a544e8ca4855544a56c943ad1db38dfb948876e73
MD5 cc31a2986cd01e55296b092d09ac9327
BLAKE2b-256 7a456e8f2038f360e98a0a6058b3b6eb11bb1e79d027807349f0d67de520c71b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page