{
"info": {
"author": "Aditya Sengupta",
"author_email": "aditya@sengupta.me",
"bugtrack_url": null,
"classifiers": [],
"description": "TWSS\n====\n\nThis is an implementation of a simple double entendre classifier in Python. \n\nThis currently uses a Naive Bayes classifier (the NLTK implementation) as a\nPython package. This was inspired by the `bvandenvos Ruby TWSS project\n`_ and uses the same data corpus. \n\nThis was built on the eve of `Barcamp Mumbai `_ 8\nand presented during a session there. \n\nSuggestions welcome. Do file bugs. Fork away. Send us pull requests. \n\nSetup Instructions\n------------------\n\n.. code-block:: bash\n\n $ virtualenv --no-site-packages --distribute venv \n $ source venv/bin/activate \n $ pip install -r requirements.txt\n\nThis creates a virtual environment for this project and install all the\npackages necessary for the project to work. \n\nDemo\n----\n\nOnce this is installed, you can take it out for a spin: \n\n.. code-block:: python \n\n >>> from twss import TWSS \n >>> twss = TWSS() \n >>> twss(\"That was hard\") \n True\n >>> twss(\"Hello world\") \n False\n\nThe first call can take a while- the module needs to train the classifier\nagainst the pre-installed training dataset. \n\nGetting dirty\n-------------\n\nYou can supply your own training data using positive and negative corpus files: \n\n.. code-block:: python \n\n >>> twss = TWSS(positive_corpus_file=open('foo.txt'), negative_corpus_file=open('bar.txt'))\n\nor directly, as a list of tuples: \n\n.. code-block:: python \n\n >>> training_data = [\n ... (\"Sentence 1\", True),\n ... (\"Sentence 2\", False),\n ...\n ... ]\n >>> twss = TWSS(training_data)\n\nRoadmap\n-------\n\n- Making this pip-installable.\n- Writing a sample web app.\n- Writing a sample Twitter client.",
"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/sengupta/twss",
"keywords": null,
"license": "DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2004 Sam Hocevar \n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.",
"maintainer": null,
"maintainer_email": null,
"name": "twss",
"package_url": "https://pypi.org/project/twss/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/twss/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/sengupta/twss"
},
"release_url": "https://pypi.org/project/twss/0.1.8/",
"requires_dist": null,
"requires_python": null,
"summary": "TWSS: A Naive Bayes classifier that can identify double entendres.",
"version": "0.1.8"
},
"last_serial": 869073,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "9869a2ef864a48411f33a90b89fc22b2",
"sha256": "f080b1ac96f7cd164085d120957da64fce3055820f69df14b943f56ca9da8ad9"
},
"downloads": -1,
"filename": "twss-0.1.tar.gz",
"has_sig": false,
"md5_digest": "9869a2ef864a48411f33a90b89fc22b2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 168348,
"upload_time": "2013-09-10T12:19:43",
"url": "https://files.pythonhosted.org/packages/cd/27/30f884dc1b95b3ea841f695692392ebc5eef86745338c487abb273bd3527/twss-0.1.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "b9ffa8c6178f10e63842361441d01dbf",
"sha256": "e14413c613309605a88ba8af4e320a4e9ac675ea9d0ec9a087c5ae4c17a93742"
},
"downloads": -1,
"filename": "twss-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "b9ffa8c6178f10e63842361441d01dbf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 168385,
"upload_time": "2013-09-10T12:26:00",
"url": "https://files.pythonhosted.org/packages/7f/d8/539c09999d2fa928ab10bfa3bdb81b879921e56761acb5f64cfc56aa9e6b/twss-0.1.1.tar.gz"
}
],
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "f152c9388cf6c0d56e00b927814513d9",
"sha256": "dbd6657a0e81a20cb9584b5a77ac97af0ff051c692faa64054c192e8bfb05c7b"
},
"downloads": -1,
"filename": "twss-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "f152c9388cf6c0d56e00b927814513d9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 168388,
"upload_time": "2013-09-10T12:32:04",
"url": "https://files.pythonhosted.org/packages/31/5c/64e16d9325af03aeab1f675fb67315a8b1c7abc4cdb770d50ba6f300c609/twss-0.1.2.tar.gz"
}
],
"0.1.3": [
{
"comment_text": "",
"digests": {
"md5": "1472d42e0c9f112b02f26f79b678f309",
"sha256": "c00607e5fbfbf45ef72011f98ad6fe1319291b757aedc01a33356b0ab10fb4a8"
},
"downloads": -1,
"filename": "twss-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "1472d42e0c9f112b02f26f79b678f309",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 168360,
"upload_time": "2013-09-10T13:21:31",
"url": "https://files.pythonhosted.org/packages/3a/4b/44b082050b086429626e1f10a2d03ae9203b71f9da3701b3d6dedf82b91d/twss-0.1.3.tar.gz"
}
],
"0.1.4": [
{
"comment_text": "",
"digests": {
"md5": "5da461f63c5ce24040834e941c78e5c4",
"sha256": "d4fef93b5812bd3df513c6d733e5b4fedd34078d279a1d80d19c1cc65c8c7fc0"
},
"downloads": -1,
"filename": "twss-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "5da461f63c5ce24040834e941c78e5c4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 168323,
"upload_time": "2013-09-10T13:25:05",
"url": "https://files.pythonhosted.org/packages/a7/db/2b40ede11cd8da8f32eb0c55715a17bbe168e51b77cdf4ee23727344f9db/twss-0.1.4.tar.gz"
}
],
"0.1.5": [
{
"comment_text": "",
"digests": {
"md5": "494ee82a61ffc0fe86ffbad3bd775f1b",
"sha256": "2ba7b842277e9dadb45931046194f6f58c2ee64129a519cb3b5976868952bea0"
},
"downloads": -1,
"filename": "twss-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "494ee82a61ffc0fe86ffbad3bd775f1b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 168366,
"upload_time": "2013-09-10T14:06:40",
"url": "https://files.pythonhosted.org/packages/84/dc/2e760492b3503085ab3eb5b8beee1355fecdbc5ed89497d58bfe26dded5e/twss-0.1.5.tar.gz"
}
],
"0.1.6": [
{
"comment_text": "",
"digests": {
"md5": "49f5076a95ddb44b3ac707f111d273b5",
"sha256": "df338a576db6bd94ce05da67695c4497e2ee85dbee637f4fa18fc13190ded3c2"
},
"downloads": -1,
"filename": "twss-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "49f5076a95ddb44b3ac707f111d273b5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 169860,
"upload_time": "2013-09-11T13:18:49",
"url": "https://files.pythonhosted.org/packages/ee/c6/f8a34ca4daa2868062e4ab460ffd951947068d124ed04d4b7c4fdbbea0cd/twss-0.1.6.tar.gz"
}
],
"0.1.7": [
{
"comment_text": "",
"digests": {
"md5": "c3b04c3f0ef63ec914441ecfe26978be",
"sha256": "3bd6b2f7d19c8af9ba7d0577700babe8a97a346642656ab59596e4bfb642906d"
},
"downloads": -1,
"filename": "twss-0.1.7.tar.gz",
"has_sig": false,
"md5_digest": "c3b04c3f0ef63ec914441ecfe26978be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 169869,
"upload_time": "2013-09-11T14:10:04",
"url": "https://files.pythonhosted.org/packages/30/d1/307ab4ebbc538531b2f70a7e17f2e5c4c2e355a17bdd2ee0a097a33f2ce8/twss-0.1.7.tar.gz"
}
],
"0.1.8": [
{
"comment_text": "",
"digests": {
"md5": "96fec3e01721750a2c6fec3fd2fe14bd",
"sha256": "894903c067e089d3eb29c2ff0bd36c200e16267739795aad08d36751959374d0"
},
"downloads": -1,
"filename": "twss-0.1.8.tar.gz",
"has_sig": false,
"md5_digest": "96fec3e01721750a2c6fec3fd2fe14bd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 169920,
"upload_time": "2013-09-19T08:01:25",
"url": "https://files.pythonhosted.org/packages/5c/b2/202221d65dde15df4c31d7997ee1b020d2dec97ba14bd463a0fe565b2d7c/twss-0.1.8.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "96fec3e01721750a2c6fec3fd2fe14bd",
"sha256": "894903c067e089d3eb29c2ff0bd36c200e16267739795aad08d36751959374d0"
},
"downloads": -1,
"filename": "twss-0.1.8.tar.gz",
"has_sig": false,
"md5_digest": "96fec3e01721750a2c6fec3fd2fe14bd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 169920,
"upload_time": "2013-09-19T08:01:25",
"url": "https://files.pythonhosted.org/packages/5c/b2/202221d65dde15df4c31d7997ee1b020d2dec97ba14bd463a0fe565b2d7c/twss-0.1.8.tar.gz"
}
]
}