{ "info": { "author": "Yurii Shevchuk", "author_email": "mail@itdxer.com", "bugtrack_url": null, "classifiers": [], "description": "# Naive Bayes Text Classifier\r\n\r\nText classifier based on Naive Bayes.\r\n\r\n## Instalation\r\n\r\n```bash\r\n$ pip install naive-bayes\r\n```\r\n\r\n## Usage example\r\n\r\n```python\r\nfrom naivebayes import NaiveBayesTextClassifier\r\n\r\nclassifier = NaiveBayesTextClassifier(\r\n categories=categories_list,\r\n stop_words=stopwords_list\r\n)\r\nclassifier.train(train_docs, train_classes)\r\npredicted_classes = classifier.classify(test_docs)\r\n```\r\n\r\n`NaiveBayesTextClassifier` is a simple wrapper around `scikit-learn` class `CountVectorizer`. You can put all arguments which support this class. For more information please check `scikit-learn` official documentation.\r\n\r\n## More examples\r\n\r\nCheck examples at `examples` folder. Before run them, install requirements in this folder.\r\n\r\nClone repository from github\r\n\r\n```bash\r\n$ git clone git@github.com:itdxer/naive-bayes.git\r\n$ cd naive-bayes/examples\r\n$ pip install -r requirements.txt\r\n```\r\n\r\nAnd run some example\r\n\r\n### Usenet 20 newsgroup\r\n\r\n```bash\r\n$ python 20newsgroup\r\n```\r\n\r\n### Kaggle IMDB reviews competition\r\n\r\n```bash\r\n$ python imdb_reviews\r\n```", "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/itdxer/naive-bayes", "keywords": "naive bayes text classification classifier", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "naive-bayes", "package_url": "https://pypi.org/project/naive-bayes/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/naive-bayes/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/itdxer/naive-bayes" }, "release_url": "https://pypi.org/project/naive-bayes/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Naive Bayes Text Classification", "version": "0.1.1" }, "last_serial": 1521777, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2b0ab4385db1e6c444993deca327d089", "sha256": "ad033699c13c88af7067b21423d17b08b758f2f1b14a984e23ffa42db158c464" }, "downloads": -1, "filename": "naive-bayes-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2b0ab4385db1e6c444993deca327d089", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1787, "upload_time": "2015-04-25T16:35:26", "url": "https://files.pythonhosted.org/packages/3e/95/2251ee565f44132090ef631f4acbd4c519a617142e18a930e7c290923703/naive-bayes-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "42a1cabe2c316e79847a7460b10cdaab", "sha256": "896a93ffff733730fa9b2b5f2e6023cfba75c0c5ff18f2a3fb98c2841724d4ab" }, "downloads": -1, "filename": "naive-bayes-0.1.1.tar.gz", "has_sig": false, "md5_digest": "42a1cabe2c316e79847a7460b10cdaab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1752, "upload_time": "2015-04-25T16:53:56", "url": "https://files.pythonhosted.org/packages/ab/aa/75158e517a7678485e9a748b3117ce5edb750af643b2a916b061ee53ba4d/naive-bayes-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "42a1cabe2c316e79847a7460b10cdaab", "sha256": "896a93ffff733730fa9b2b5f2e6023cfba75c0c5ff18f2a3fb98c2841724d4ab" }, "downloads": -1, "filename": "naive-bayes-0.1.1.tar.gz", "has_sig": false, "md5_digest": "42a1cabe2c316e79847a7460b10cdaab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1752, "upload_time": "2015-04-25T16:53:56", "url": "https://files.pythonhosted.org/packages/ab/aa/75158e517a7678485e9a748b3117ce5edb750af643b2a916b061ee53ba4d/naive-bayes-0.1.1.tar.gz" } ] }