{ "info": { "author": "Justine Tunney", "author_email": "jtunney@lobstertech.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Communications :: Email", "Topic :: Database" ], "description": ".. -*-rst-*-\n\n============\n redisbayes\n============\n\n:name: redisbayes\n:description: Na\u00efve Bayesian Text Classifier on Redis\n:copyright: \u00a9 2012 Justine Alexandra Roberts Tunney\n:license: MIT\n\n\nWhat Is This?\n=============\n\nIt's a spam filter. I wrote this to filter spammy comments from a high\ntraffic forum website and it worked pretty well. It can work for you too :)\nIt's not tied to any particular format like email, it just deals with the raw\ntext.\n\nThis is probably the only spam filtering library you'll find for Python that's\nsimple (170 lines of code), works (30 lines of test code), and doesn't suck.\n\n\nInstallation\n============\n\nFrom folder::\n\n sudo python setup.py install\n\nFrom cheeseshop::\n\n sudo pip install redisbayes\n\nFrom git::\n\n sudo pip install git+git://github.com/jart/redisbayes.git\n\n\nBasic Usage\n===========\n\n::\n\n import redis, redisbayes\n rb = redisbayes.RedisBayes(redis=redis.Redis())\n\n rb.train('good', 'sunshine drugs love sex lobster sloth')\n rb.train('bad', 'fear death horror government zombie god')\n\n assert rb.classify('sloths are so cute i love them') == 'good'\n assert rb.classify('i fear god and love the government') == 'bad'\n\n print rb.score('i fear god and love the government')\n\n rb.untrain('good', 'sunshine drugs love sex lobster sloth')\n rb.untrain('bad', 'fear death horror government zombie god')", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jart/redisbayes", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "redisbayes", "package_url": "https://pypi.org/project/redisbayes/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/redisbayes/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jart/redisbayes" }, "release_url": "https://pypi.org/project/redisbayes/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Na\u00efve Bayesian Text Classifier on Redis", "version": "0.1.3" }, "last_serial": 798668, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9468987a332a77eb7c167e26a69d92e6", "sha256": "5e9934ab3d89b336d1cf113c4776c89d340198a54aeea0aa7bc84874f1d19a89" }, "downloads": -1, "filename": "redisbayes-0.1.tar.gz", "has_sig": false, "md5_digest": "9468987a332a77eb7c167e26a69d92e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5799, "upload_time": "2012-01-28T03:03:07", "url": "https://files.pythonhosted.org/packages/ab/e1/3079d97dc957b0c348cd28c3ae097c3f25f29a03b2449a08ce5bc9514e7f/redisbayes-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b206b597c8e11609121daf741c3d8945", "sha256": "d9a64b38d825aa9af5c565171397de2157b8b25b41e3e2556a2239384a226f69" }, "downloads": -1, "filename": "redisbayes-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b206b597c8e11609121daf741c3d8945", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5996, "upload_time": "2012-01-28T03:30:23", "url": "https://files.pythonhosted.org/packages/f7/be/ee22fc00f9f59d20219949843a9688ed798b61b18453501d04374bc984b7/redisbayes-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "fee1bcd2b20dae23637f9b6705e20361", "sha256": "ba58586d8fd3dae69525113e0cd2d71f7114a3a555e5d1d1462dea70154216a4" }, "downloads": -1, "filename": "redisbayes-0.1.2.tar.gz", "has_sig": false, "md5_digest": "fee1bcd2b20dae23637f9b6705e20361", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6001, "upload_time": "2012-06-06T20:08:35", "url": "https://files.pythonhosted.org/packages/d4/f3/27df5fd51ed181b9a59e877673a3cc00c7154de056ce8c4224768463a71f/redisbayes-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "26d9c2a240156e1844e59406ce13dc45", "sha256": "3cda0a35bd5892a8215bf60eb1e8d49f80bc8571b83417a583092199f78e0fb1" }, "downloads": -1, "filename": "redisbayes-0.1.3.tar.gz", "has_sig": false, "md5_digest": "26d9c2a240156e1844e59406ce13dc45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9768, "upload_time": "2012-07-03T16:06:28", "url": "https://files.pythonhosted.org/packages/cc/67/744d4b8241acf42663e90421727874659814dc3e2e4b21cbf17f37f3cf67/redisbayes-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "26d9c2a240156e1844e59406ce13dc45", "sha256": "3cda0a35bd5892a8215bf60eb1e8d49f80bc8571b83417a583092199f78e0fb1" }, "downloads": -1, "filename": "redisbayes-0.1.3.tar.gz", "has_sig": false, "md5_digest": "26d9c2a240156e1844e59406ce13dc45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9768, "upload_time": "2012-07-03T16:06:28", "url": "https://files.pythonhosted.org/packages/cc/67/744d4b8241acf42663e90421727874659814dc3e2e4b21cbf17f37f3cf67/redisbayes-0.1.3.tar.gz" } ] }