{
"info": {
"author": "Kabilesh",
"author_email": "",
"bugtrack_url": null,
"classifiers": [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3"
],
"description": "**# bigram-spam-classifier
**\n**# A bigram approach for classifying Spam and Ham messages**
\n\n**# install with pip
**\npip install bigram-spam-classifier
\n\n**# import in your python file
**\nfrom bigram_spam_classifier import spamclassifier
\n\n**# create an object of the classifier and pass your message as the parameter
**\nclassifier = spamclassifier.classifier(\"Customer service annoncement. You have a New Years delivery waiting for you. Please call 07046744435 now to arrange delivery\")
\n\n**# classify the message
**\n\ncls = classifier.classify()
\nprint(cls)
\n\n**# If returns 1 message is a Spam, if returns 0 message is a Ham
**\n\n**# find the unigrams and bigrams in the message
**\nunigrams = classifier.inputUnigrams
\nprint(unigrams)
\nbigrams = classifier.inputBigrams
\nprint(bigrams)
\n\n**# find the bigram probabilities of Spam and Ham
**\nspam_probability = classifier.bigramPSpam
\nprint(spam_probability)
\nham_probability = classifier.bigramPHam
\nprint(ham_probability)
\n\n\n",
"description_content_type": "text/markdown",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/Kabilesh93/bigram-spam-classifier",
"keywords": "",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "bigram-spam-classifier",
"package_url": "https://pypi.org/project/bigram-spam-classifier/",
"platform": "",
"project_url": "https://pypi.org/project/bigram-spam-classifier/",
"project_urls": {
"Homepage": "https://github.com/Kabilesh93/bigram-spam-classifier"
},
"release_url": "https://pypi.org/project/bigram-spam-classifier/0.0.6/",
"requires_dist": [
"nltk",
"pandas"
],
"requires_python": "",
"summary": "A bigram approach for classifying Spam and Ham messages",
"version": "0.0.6"
},
"last_serial": 5480804,
"releases": {
"0.0.2": [
{
"comment_text": "",
"digests": {
"md5": "656e7979e2ea40424f0d88f848c129a5",
"sha256": "9e65280c19986ff7ce8bf471296bd08b8aa0e799ae1632cd0008467e9f316367"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "656e7979e2ea40424f0d88f848c129a5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 195953,
"upload_time": "2019-07-03T10:23:03",
"url": "https://files.pythonhosted.org/packages/a1/17/e73727260707de4e0dc0d1bf86fa3d36da92a4ba8ac10218c5644a6a8ce0/bigram_spam_classifier-0.0.2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "7f393d954876a993ecde1f2d5b4df735",
"sha256": "2cd3e93864fb8872423c73f27d1962889cf699ebb2865507f64a99357edf1131"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "7f393d954876a993ecde1f2d5b4df735",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 194889,
"upload_time": "2019-07-03T10:23:06",
"url": "https://files.pythonhosted.org/packages/cd/55/69366cc6e3bb20f26f4b3358241f66cd8e3f9bbbcf4a6de433f04c3faade/bigram_spam_classifier-0.0.2.tar.gz"
}
],
"0.0.3": [
{
"comment_text": "",
"digests": {
"md5": "ff311adc5dc113363a2a4ceab3061a7e",
"sha256": "14da8372cf55bc0bf875a2c9cdf4af642f8c88c2655e760fc4fbcde3e4e02761"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ff311adc5dc113363a2a4ceab3061a7e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 195941,
"upload_time": "2019-07-03T10:49:59",
"url": "https://files.pythonhosted.org/packages/63/bf/88dce02bdffc400f6a089824a4f057b553623b54f414c742ac1f862021fd/bigram_spam_classifier-0.0.3-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "f6c98dd90b8913f30840da1774e4ad3a",
"sha256": "3ccb66da28311591f49265dab4c74b92d498a9bb816deaa39fa0a168267b29d6"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "f6c98dd90b8913f30840da1774e4ad3a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 194862,
"upload_time": "2019-07-03T10:50:01",
"url": "https://files.pythonhosted.org/packages/38/cd/181fa269ee1844ee9fd692536f543f13bf1cb5c230cfec48b4110d70fc8f/bigram_spam_classifier-0.0.3.tar.gz"
}
],
"0.0.5": [
{
"comment_text": "",
"digests": {
"md5": "718cace47e947d0e5297b0522b85b623",
"sha256": "2eb7fd6e1b044b82870f9984399fdf8cbaa3ef48dad2f5d78b070b5b5608df01"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "718cace47e947d0e5297b0522b85b623",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 195953,
"upload_time": "2019-07-03T10:54:14",
"url": "https://files.pythonhosted.org/packages/54/9c/1e69231d8fcdb688c43f97737b6bec1761ab19bccb1b5a3fe226ffa2f303/bigram_spam_classifier-0.0.5-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "7be6553afde22929c6302dc50c7714c6",
"sha256": "0bd403f56914e0e7f2c1aa8e61d43c917fc969a937113a93a02aa6e38b211bbf"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "7be6553afde22929c6302dc50c7714c6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 194883,
"upload_time": "2019-07-03T10:54:17",
"url": "https://files.pythonhosted.org/packages/ed/7f/99c7ac08b04eca1f5a40e8283138c85a3f3adc4981a3d3ec6fedb5305e8a/bigram_spam_classifier-0.0.5.tar.gz"
}
],
"0.0.6": [
{
"comment_text": "",
"digests": {
"md5": "a532af1e4337e78e92262436467c964a",
"sha256": "780bd8cb8903e21406f9aeb71e49125cf10e89530cde97283f660f4447a63de4"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a532af1e4337e78e92262436467c964a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 196000,
"upload_time": "2019-07-03T11:09:04",
"url": "https://files.pythonhosted.org/packages/b6/8c/f49761e49e8c465294e529cf3bce15bb84102258bc698a35f447e3b74af7/bigram_spam_classifier-0.0.6-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "f2973414bc812095d21a3fdd62af4c88",
"sha256": "2f629c8a62bf3c3c9fc450c30777b94bf2d209efe0d9b4b542096ac2239e462f"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "f2973414bc812095d21a3fdd62af4c88",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 194980,
"upload_time": "2019-07-03T11:09:06",
"url": "https://files.pythonhosted.org/packages/87/9a/40d95e12e20d152f62b7e46c2bff850d0850c768620f2d8ef66476557228/bigram_spam_classifier-0.0.6.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "a532af1e4337e78e92262436467c964a",
"sha256": "780bd8cb8903e21406f9aeb71e49125cf10e89530cde97283f660f4447a63de4"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a532af1e4337e78e92262436467c964a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 196000,
"upload_time": "2019-07-03T11:09:04",
"url": "https://files.pythonhosted.org/packages/b6/8c/f49761e49e8c465294e529cf3bce15bb84102258bc698a35f447e3b74af7/bigram_spam_classifier-0.0.6-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "f2973414bc812095d21a3fdd62af4c88",
"sha256": "2f629c8a62bf3c3c9fc450c30777b94bf2d209efe0d9b4b542096ac2239e462f"
},
"downloads": -1,
"filename": "bigram_spam_classifier-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "f2973414bc812095d21a3fdd62af4c88",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 194980,
"upload_time": "2019-07-03T11:09:06",
"url": "https://files.pythonhosted.org/packages/87/9a/40d95e12e20d152f62b7e46c2bff850d0850c768620f2d8ef66476557228/bigram_spam_classifier-0.0.6.tar.gz"
}
]
}