Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
.. image:: https://github.com/abdullahselek/spampy/workflows/spampy%20ci/badge.svg :target: https://github.com/abdullahselek/spampy/actions
.. image:: https://img.shields.io/pypi/v/spampy.svg :target: https://pypi.python.org/pypi/spampy/
.. image:: https://img.shields.io/pypi/pyversions/spampy.svg :target: https://pypi.org/project/spampy
.. image:: https://pepy.tech/badge/spampy :target: https://pepy.tech/project/spampy
.. image:: https://img.shields.io/conda/vn/conda-forge/spampy?logo=conda-forge :target: https://anaconda.org/conda-forge/spampy
.. image:: https://anaconda.org/conda-forge/spampy/badges/latest_release_date.svg :target: https://anaconda.org/conda-forge/spampy
Spam filtering module with Machine Learning using SVM. spampy is a classifier that uses Support Vector Machines
which tries to classify given raw emails if they are spam or not.
Support vector machines (SVMs) are supervised learning models with associated learning algorithms that analyze data used for classification and regression analysis. Given a set of training examples, each marked as belonging to one or the other of two categories, an SVM training algorithm builds a model that assigns new examples to one category or the other, making it a non-probabilistic binary linear classifier.
Many email services today provide spam filters that are able to classify emails into spam and non-spam email with high accuracy. spampy is a learning project that you can use filtering spam mails.
spampy uses two different datasets for classification. One of the datasets is already imported inside the project under spampy/datasets/
folder.
Second dataset is enron-spam <http://www.aueb.gr/users/ion/data/enron-spam/>
_ dataset and inside the spampy
folder I created a shell script which
downloads and extract it for you.
Helper to collect features and labels from datasets.
Classifies given raw emails.
Enron dataset downloader which uses dataset_downloader.sh
Two main function of spam_classifier
classifies given raw email.
classify_email
classify_email_with_enron
For available commands python -m spampy -h
.. code-block::
Spam filtering module with Machine Learning using SVM.
Usage
$ python spampy [<options>]
Options
--help, -h Display help message
--download, -d Download enron dataset
--eclassify, -ec Classify given raw email with enron dataset, prompts for raw email
--classify, -c Classify given raw email, prompts for raw email
--version, -v Display installed version
Examples
$ python spampy --help
$ python spampy --download
$ python spampy --eclassify
$ python spampy --classify
FAQs
Spam filtering module with Machine Learning using SVM.
We found that spampy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.