{ "info": { "author": "Dinever", "author_email": "dingpeixuan911@gmail.com", "bugtrack_url": null, "classifiers": [ "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "# AntiSpam\n\n[![downloads](https://img.shields.io/pypi/dm/antispam.svg)](https://pypi.python.org/pypi/antispam/)\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\n# Installation\n\n```\npip install antispam\n```\n\n# Usage\n\nUse the built-in training model provided by antispam:\n\n```\nimport antispam\n\nantispam.score(\"Cheap shoes for sale at DSW shoe store!\")\n# => 0.9657724517163143\n\nantispam.isspam(\"Cheap shoes for sale at DSW shoe store!\")\n# => True\n\nantispam.score(\"Hi mark could you please send me a copy of your machine learning homework? thanks\")\n# => 0.0008064840568731558\n\nantispam.score(\"Hi mark could you please send me a copy of your machine learning homework? thanks\")\n# => False\n\n```\n\nTrain your own modle.\n\n```\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# => 0.9999947825633266\n\nd.is_spam(msg1)\n# => True\n\nmsg2 = \"Hi mark could you please send me a copy of your machine learning homework? thanks\"\nd.score(msg2)\n# => 4.021280114849398e-08\n\nd.is_spam(msg2)\n# => False\n```\n\n##License\n\n[MIT Licenses](https://opensource.org/licenses/MIT)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/dinever/antispam", "keywords": "spam,filter,antispam", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "antispam", "package_url": "https://pypi.org/project/antispam/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/antispam/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/dinever/antispam" }, "release_url": "https://pypi.org/project/antispam/0.1/", "requires_dist": null, "requires_python": null, "summary": "Bayesian anti-spam classifier written in Python.", "version": "0.1" }, "last_serial": 1856757, "releases": { "0.0.10": [ { "comment_text": "", "digests": { "md5": "768fcc27d9b1390da7e7c3f0cc7ab1af", "sha256": "e188b424ea9b76c408a592a5ff60eb1280f45f26b404db4d5e96123f485de39b" }, "downloads": -1, "filename": "antispam-0.0.10.tar.gz", "has_sig": false, "md5_digest": "768fcc27d9b1390da7e7c3f0cc7ab1af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1508579, "upload_time": "2015-12-11T00:17:23", "url": "https://files.pythonhosted.org/packages/05/25/bf4cc50e85d2025c6a8562f04f14ed5f4adee699f52a934a724482ba5339/antispam-0.0.10.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "5ca1cf8ac12e28f46151447aaf71229d", "sha256": "e7a9bbc1e9f1d90ed473bf90a039d68eb06584f09dafb32d193acbaee02d84db" }, "downloads": -1, "filename": "antispam-0.0.2.tar.gz", "has_sig": false, "md5_digest": "5ca1cf8ac12e28f46151447aaf71229d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1507886, "upload_time": "2015-12-10T09:03:38", "url": "https://files.pythonhosted.org/packages/85/86/3fff9f6bebef8bf4d9a48490d97aeb91fb33833505d1ed6f48e80670e9ab/antispam-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "bd4253fa1827f93a8bbaf35a9851be9f", "sha256": "1e82525c6cc1d914c534b393913c13c13af6c4f3f8271fbfbf33d036dbf5a49b" }, "downloads": -1, "filename": "antispam-0.0.3.tar.gz", "has_sig": false, "md5_digest": "bd4253fa1827f93a8bbaf35a9851be9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1508011, "upload_time": "2015-12-10T09:06:34", "url": "https://files.pythonhosted.org/packages/36/df/2025e223d9d5d6d4ffed79b6c1320a295b27d619b8c0d13fd176b9316107/antispam-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "ece708f51d08f320ff3ee5a8efd9e888", "sha256": "dd2e7871fc453451a16c6bccd60fb6757b3fd61988f595523257b92aa3f49689" }, "downloads": -1, "filename": "antispam-0.0.4.tar.gz", "has_sig": false, "md5_digest": "ece708f51d08f320ff3ee5a8efd9e888", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1508054, "upload_time": "2015-12-10T09:08:41", "url": "https://files.pythonhosted.org/packages/d7/70/5a4274fda3d5a326b1bc032583a3355dde6657c189c9519308992c9080f4/antispam-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "9646d6fece5ee6959fda6fd8ecb34ea6", "sha256": "8ea1d935129bb5bfde72411d989904ac22e2d1f64c17589916879e2fbf528d59" }, "downloads": -1, "filename": "antispam-0.0.5.tar.gz", "has_sig": false, "md5_digest": "9646d6fece5ee6959fda6fd8ecb34ea6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3494, "upload_time": "2015-12-10T09:32:24", "url": "https://files.pythonhosted.org/packages/70/39/6b0482d60f5e60da7a939ad383371b24bd38597c0a4e403bff72cd5cbdf1/antispam-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "b30d7f407135bb413733a8e58380af02", "sha256": "edcb02e34fd49ff46ea054f4f894cf4606de9212198b7104194249b735336959" }, "downloads": -1, "filename": "antispam-0.0.6.tar.gz", "has_sig": false, "md5_digest": "b30d7f407135bb413733a8e58380af02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1507222, "upload_time": "2015-12-10T09:38:18", "url": "https://files.pythonhosted.org/packages/0f/bf/86b0e148a84349abf7b3096cc49ed4c1acb35b9daba1897a82696b50b89d/antispam-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "e41264a5010bfd4fd359b8c52da4341f", "sha256": "38950900aa3c521100743f806acc4eaae04896e492e864e3c0ad92bca06b7b90" }, "downloads": -1, "filename": "antispam-0.0.7.tar.gz", "has_sig": false, "md5_digest": "e41264a5010bfd4fd359b8c52da4341f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1507232, "upload_time": "2015-12-10T16:47:14", "url": "https://files.pythonhosted.org/packages/69/76/f10550d60aa4d02974d76d6582b9f62157b0ceeb27da00c842994038a88f/antispam-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "d1e2b0b9484a9e1126affa54c7ac31a1", "sha256": "bbeeff75cec2763bf59d80a38b75dcbc290c684d0351a0c70e8732cde420e16a" }, "downloads": -1, "filename": "antispam-0.0.8.tar.gz", "has_sig": false, "md5_digest": "d1e2b0b9484a9e1126affa54c7ac31a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1507160, "upload_time": "2015-12-10T16:50:33", "url": "https://files.pythonhosted.org/packages/b5/99/23deb3002304e90f914fe0edcc9fea967012a2809bb2f09ad15a247216be/antispam-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "8bab1cb84e79a6ff5382bcf7af91073a", "sha256": "4dc53662ebe515250acd35d7b8662ddc5f77f88a6d02994945ab9e025b6b747e" }, "downloads": -1, "filename": "antispam-0.0.9.tar.gz", "has_sig": false, "md5_digest": "8bab1cb84e79a6ff5382bcf7af91073a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1507283, "upload_time": "2015-12-10T16:52:51", "url": "https://files.pythonhosted.org/packages/55/c6/0fa37450e1d883463920b0c3a163bdc6b525f53439a07ac40d16e560f381/antispam-0.0.9.tar.gz" } ], "0.1": [] }, "urls": [] }