{ "info": { "author": "Anthony Johnson", "author_email": "aj@ohess.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "django-textclassifier\n=====================\n\nValidators and some utility functions for validating fields using a naive\nbayesian text classifier, provided by `TextBlob`_\n\n.. _TextBlob: http://textblob.readthedocs.org/\n\nUsage\n-----\n\nAdd this application to your Django project::\n\n INSTALLED_APPS = [\n ...\n 'textclassifier',\n ...\n ]\n\nYou'll also need to set the data file source in your settings::\n\n TEXTCLASSIFIER_DATA_FILE = '/tmp/test.json'\n\n.. note::\n The current implementation is very basic, only allowing for one data file.\n This will eventually be more configurable, but is just a POC for now.\n\nData file\n---------\n\nThe data file needs to be written by hand for now as well. It is read using the\n`TextBlob JSON formatter`_\n\n.. _`TextBlob JSON formatter`: http://textblob.readthedocs.org/en/dev/api_reference.html#textblob.formats.JSON\n\nThe file should use the labels ``spam`` and ``valid``::\n\n [\n {\"text\": \"This is spam\", \"label\": \"spam\"},\n {\"text\": \"This is valid\", \"label\": \"valid\"}\n ]", "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/agjohnson/django-textclassifier/", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-textclassifier", "package_url": "https://pypi.org/project/django-textclassifier/", "platform": "any", "project_url": "https://pypi.org/project/django-textclassifier/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/agjohnson/django-textclassifier/" }, "release_url": "https://pypi.org/project/django-textclassifier/1.0/", "requires_dist": null, "requires_python": null, "summary": "Django text classifier validation", "version": "1.0" }, "last_serial": 1828034, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "dba7e0ec2d4a9ae246021875b1c85994", "sha256": "9d89f98e9c0677db150c4971d6f6e4ff4d7d7ef5665e4b35a74fc1bfd224648c" }, "downloads": -1, "filename": "django_textclassifier-1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "dba7e0ec2d4a9ae246021875b1c85994", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5674, "upload_time": "2015-11-22T11:12:25", "url": "https://files.pythonhosted.org/packages/b1/7e/b86a5b15d6508ade4e77274253270416ee227cbd7be9f14d0f5f83107b53/django_textclassifier-1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c749952f195be66a27565b9907b6989", "sha256": "0286f572ef59bbb29374b190fd78bb6a75415a0c62b6fed47b62d23f688b0018" }, "downloads": -1, "filename": "django-textclassifier-1.0.tar.gz", "has_sig": false, "md5_digest": "4c749952f195be66a27565b9907b6989", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3384, "upload_time": "2015-11-22T11:12:02", "url": "https://files.pythonhosted.org/packages/ed/94/f8df423db8e9582617b5b4fbce72b42e69965d6823dec60e34709a8d0e82/django-textclassifier-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dba7e0ec2d4a9ae246021875b1c85994", "sha256": "9d89f98e9c0677db150c4971d6f6e4ff4d7d7ef5665e4b35a74fc1bfd224648c" }, "downloads": -1, "filename": "django_textclassifier-1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "dba7e0ec2d4a9ae246021875b1c85994", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5674, "upload_time": "2015-11-22T11:12:25", "url": "https://files.pythonhosted.org/packages/b1/7e/b86a5b15d6508ade4e77274253270416ee227cbd7be9f14d0f5f83107b53/django_textclassifier-1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c749952f195be66a27565b9907b6989", "sha256": "0286f572ef59bbb29374b190fd78bb6a75415a0c62b6fed47b62d23f688b0018" }, "downloads": -1, "filename": "django-textclassifier-1.0.tar.gz", "has_sig": false, "md5_digest": "4c749952f195be66a27565b9907b6989", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3384, "upload_time": "2015-11-22T11:12:02", "url": "https://files.pythonhosted.org/packages/ed/94/f8df423db8e9582617b5b4fbce72b42e69965d6823dec60e34709a8d0e82/django-textclassifier-1.0.tar.gz" } ] }