{"id":21374651,"url":"https://github.com/dinever/antispam","last_synced_at":"2026-03-08T04:32:25.498Z","repository":{"id":57410677,"uuid":"47750623","full_name":"dinever/antispam","owner":"dinever","description":"Dead simple bayesian anti-spam classifier written in Python.","archived":false,"fork":false,"pushed_at":"2018-03-21T20:46:34.000Z","size":2503,"stargazers_count":101,"open_issues_count":3,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-01T01:20:05.693Z","etag":null,"topics":["antispam","bayes-classifier","machine-learning","python","spam-filtering"],"latest_commit_sha":null,"homepage":"https://antispam.readthedocs.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dinever.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-10T09:12:49.000Z","updated_at":"2025-09-10T15:48:31.000Z","dependencies_parsed_at":"2022-08-27T22:01:05.729Z","dependency_job_id":null,"html_url":"https://github.com/dinever/antispam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dinever/antispam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinever%2Fantispam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinever%2Fantispam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinever%2Fantispam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinever%2Fantispam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinever","download_url":"https://codeload.github.com/dinever/antispam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinever%2Fantispam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30245233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antispam","bayes-classifier","machine-learning","python","spam-filtering"],"created_at":"2024-11-22T08:44:15.144Z","updated_at":"2026-03-08T04:32:25.471Z","avatar_url":"https://github.com/dinever.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AntiSpam\n\n[![version](https://img.shields.io/pypi/v/antispam.svg?label=version)](https://pypi.python.org/pypi/antispam/)\n[![supported](https://img.shields.io/pypi/pyversions/antispam.svg)](https://pypi.python.org/pypi/antispam/)\n[![license](https://img.shields.io/pypi/l/antispam.svg)](https://opensource.org/licenses/MIT)\n\nBayesian anti-spam classifier written in Python.\n\nPyPI: [pypi.python.org/pypi/antispam](https://pypi.python.org/pypi/antispam)\n\nDocs: [antispam.readthedocs.org](http://antispam.readthedocs.org)\n\n# Installation\n\n```\npip install antispam\n```\n\n# Usage\n\nUse the built-in model provided \u0026 trained by author:\n\n```python\nimport antispam\n\nantispam.score(\"Cheap shoes for sale at DSW shoe store!\")\n# =\u003e 0.9657724517163143\n\nantispam.is_spam(\"Cheap shoes for sale at DSW shoe store!\")\n# =\u003e True\n\nantispam.score(\"Hi mark could you please send me a copy of your machine learning homework? thanks\")\n# =\u003e 0.0008064840568731558\n\nantispam.is_spam(\"Hi mark could you please send me a copy of your machine learning homework? thanks\")\n# =\u003e False\n\n```\n\nTrain your own modle:\n\n```python\nimport antispam\n\nd = antispam.Detector(\"my_model.dat\")\n\nd.train(\"Super cheap octocats for sale at GitHub.\", True)\nd.train(\"Hi John, could you please come to my office by 3pm? Ding\", False)\n\nmsg1 = \"Cheap shoes for sale at DSW shoe store!\"\nd.score(msg1)\n# =\u003e 0.9999947825633266\n\nd.is_spam(msg1)\n# =\u003e True\n\nmsg2 = \"Hi mark could you please send me a copy of your machine learning homework? thanks\"\nd.score(msg2)\n# =\u003e 4.021280114849398e-08\n\nd.is_spam(msg2)\n# =\u003e False\n```\n\nSave your model:\n\n```python\nd.save()\n```\n\n# License\n\n[MIT Licenses](https://opensource.org/licenses/MIT)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinever%2Fantispam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinever%2Fantispam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinever%2Fantispam/lists"}