{ "info": { "author": "Zhun Hung", "author_email": "yongzhunhung@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Python-SentiStrength\nPython 3 Wrapper for SentiStrength, reads a single or multiple input with options for binary class or scale output.\n\nEnsure that you have SentiStrength.jar file and SentiStrengthData Language folders, otherwise you can download them from http://sentistrength.wlv.ac.uk/.\n\n## Installation\n\nPip:\n\n```sh\npip install sentistrength\n```\n\n\n## Examples\n\nExample use (single string):\n\n```python\n>>> from sentistrength import PySentiStr\n>>> senti = PySentiStr()\n>>> result = senti.getSentiment('What a lovely day')\n>>> print(result)\n\n... [0.25]\n```\n\n\nExample use (list of strings or pandas Series):\n\n```python\n>>> from sentistrength import PySentiStr\n>>> senti = PySentiStr()\n>>> str_arr = ['What a lovely day', 'What a bad day']\n>>> result = senti.getSentiment(str_arr)\n>>> print(result)\n\n... [0.25,-0.25]\n# OR, if want binary scoring (a score each for positive rating and negativing rating) instead of scale\n>>> result = senti.getSentiment(str_arr, score='binary')\n>>> print(result)\n\n... [(2, -1), (1, -2)]\n```\n\n## Path Setup\n\nSpecify the paths as such:\n\n```python\n>>> senti = PySentiStr()\n>>> senti.setSentiStrengthPath = ... # e.g. 'C:\\Documents\\SentiStrength.jar'\n>>> senti.setSentiStrengthLanguageFolderPath = ... # e.g. 'C:\\Documents\\SentiStrengthData\\'\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* Big thanks to Dr. Mike Thelwall for access to SentiStrength.\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/zhunhung/pysentistrength", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "sentistrength", "package_url": "https://pypi.org/project/sentistrength/", "platform": "", "project_url": "https://pypi.org/project/sentistrength/", "project_urls": { "Homepage": "https://github.com/zhunhung/pysentistrength" }, "release_url": "https://pypi.org/project/sentistrength/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Python 3 Wrapper for SentiStrength, reads a single or multiple input with options for binary class or scale output.", "version": "0.0.4" }, "last_serial": 5283287, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "32029096633f5b3b7b10a91c48d50a2a", "sha256": "5b9299d112a733fdc828b5927c722ea1904960fb6994c35cd434ef71f138410c" }, "downloads": -1, "filename": "sentistrength-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "32029096633f5b3b7b10a91c48d50a2a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3614, "upload_time": "2019-03-13T15:27:53", "url": "https://files.pythonhosted.org/packages/eb/89/b130a8e9e2df35452684088fa062377c01c490868ec90c2da8744425743e/sentistrength-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5bc8e801472b21a7b06263c4742f0bc3", "sha256": "e97e926993053de7d814c215d198a80dbb7036a0c949ece6dd91eef07e792ee5" }, "downloads": -1, "filename": "sentistrength-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5bc8e801472b21a7b06263c4742f0bc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2501, "upload_time": "2019-03-13T15:27:55", "url": "https://files.pythonhosted.org/packages/06/83/05ec3bb7410effe12dcb441a35398351cd2b782276771aa2e17d4749ae12/sentistrength-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "00bb842a960fa1722c189339dfc6b5f3", "sha256": "c3f4fae3ead177c7985bbb4c9cc7b206588cf028ee9c1f9508c8946c5fe341f7" }, "downloads": -1, "filename": "sentistrength-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "00bb842a960fa1722c189339dfc6b5f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3596, "upload_time": "2019-04-05T04:53:54", "url": "https://files.pythonhosted.org/packages/06/24/f46b78091e3bfdd372d8ed084708d75a838a0ea16af4e3acccda6ffd7231/sentistrength-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bfa5701bb59a0d5effdd09ca0fd8fc40", "sha256": "695f37c021ec0ea90be78aa5fff59831789f14dcc95efb9e52f1a7c41337d3d2" }, "downloads": -1, "filename": "sentistrength-0.0.2.tar.gz", "has_sig": false, "md5_digest": "bfa5701bb59a0d5effdd09ca0fd8fc40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2497, "upload_time": "2019-04-05T04:53:56", "url": "https://files.pythonhosted.org/packages/b8/76/1feac5cf5170b9d1e32e1fa2c90909b9cfe0587707679c889099eb5037bd/sentistrength-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "1a619b2863014b8297b804e1ac07a671", "sha256": "b934160ff15199d4124ed387c95e7f8e3570087c7a22c1ab8758ef0558cc56e4" }, "downloads": -1, "filename": "sentistrength-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1a619b2863014b8297b804e1ac07a671", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3556, "upload_time": "2019-04-05T05:06:45", "url": "https://files.pythonhosted.org/packages/00/23/382dbec4b40617d4e481226a949d1f85b88216cc5a49c3b6263219299d69/sentistrength-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b02bcdf188ca9804fa6ee56a520c43d4", "sha256": "afaecc882b24c6d923001117da477289c3340630918ab84146a10351305946f7" }, "downloads": -1, "filename": "sentistrength-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b02bcdf188ca9804fa6ee56a520c43d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2468, "upload_time": "2019-04-05T05:06:47", "url": "https://files.pythonhosted.org/packages/2d/5d/c5a0d8e3f6aee100239eac4f7ee02c0a7de13a2186c7baeb2068fd824a59/sentistrength-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "36b34f925a258f8c30b8c9087dbcde12", "sha256": "3d25e8c8b6feb40b669e1bcfebd1ed5a1ad33606e5de1ba68ffa3ecc525d3d5a" }, "downloads": -1, "filename": "sentistrength-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "36b34f925a258f8c30b8c9087dbcde12", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3561, "upload_time": "2019-05-17T17:26:40", "url": "https://files.pythonhosted.org/packages/e9/4d/15dc3200c6cc2551610ac2b6fa1216ef81a5fe6fbe01e4c05f8a9d8cdb66/sentistrength-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "991bde3cefa5935940939b01af1b75ea", "sha256": "5b9bd1bfa230490a5650b6d15bef71c9f0cbdc0e7b7cd53e2b3fae201835a40e" }, "downloads": -1, "filename": "sentistrength-0.0.4.tar.gz", "has_sig": false, "md5_digest": "991bde3cefa5935940939b01af1b75ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2423, "upload_time": "2019-05-17T17:26:41", "url": "https://files.pythonhosted.org/packages/e6/2f/14d0b58288f0ec01f831084f6e896721faa22e146d83989a5363ec66034f/sentistrength-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "36b34f925a258f8c30b8c9087dbcde12", "sha256": "3d25e8c8b6feb40b669e1bcfebd1ed5a1ad33606e5de1ba68ffa3ecc525d3d5a" }, "downloads": -1, "filename": "sentistrength-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "36b34f925a258f8c30b8c9087dbcde12", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3561, "upload_time": "2019-05-17T17:26:40", "url": "https://files.pythonhosted.org/packages/e9/4d/15dc3200c6cc2551610ac2b6fa1216ef81a5fe6fbe01e4c05f8a9d8cdb66/sentistrength-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "991bde3cefa5935940939b01af1b75ea", "sha256": "5b9bd1bfa230490a5650b6d15bef71c9f0cbdc0e7b7cd53e2b3fae201835a40e" }, "downloads": -1, "filename": "sentistrength-0.0.4.tar.gz", "has_sig": false, "md5_digest": "991bde3cefa5935940939b01af1b75ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2423, "upload_time": "2019-05-17T17:26:41", "url": "https://files.pythonhosted.org/packages/e6/2f/14d0b58288f0ec01f831084f6e896721faa22e146d83989a5363ec66034f/sentistrength-0.0.4.tar.gz" } ] }