{ "info": { "author": "Valerij Fredriksen and Brage Ekroll Jahren and Mats Byrkjeland", "author_email": "matsbyr@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering :: Artificial Intelligence" ], "description": "Lexicon Classifier\n==================\n\nSource code: https://github.com/draperunner/fjlc\n\nThis package is a Python port of the Lexicon Creator and Classifier of\nValerij Fredriksen and Brage Ekroll Jahren (2016). It is compatible with\nPython version >= 3.\n\nThe original Java code is available here:\nhttps://github.com/freva/Masteroppgave\n\nIf using this package in your publications, please cite > Valerij\nFredriksen and Brage Ekroll Jahren. Twitter Sentiment Analysis:\nExploring Automatic Creation of Sentiment Lexica. Master's thesis, 2016.\n\nInstallation\n------------\n\n.. code:: bash\n\n pip install fjlc\n\nLexicon Classifier\n------------------\n\nThe ``LexiconClassifier`` uses the best performing lexicon of Fredriksen\nand Jahren. You can specify your own lexicon, see Options below.\n\nUsage\n~~~~~\n\n.. code:: python\n\n from fjlc import LexiconClassifier\n lc = LexiconClassifier()\n\nYou can classify a single tweet or a list of tweets:\n\n::\n\n >>> lc.classify(\"I am happy!\")\n 'POSITIVE'\n >>> lc.classify([\"I am happy!\", \"I hate rain\"])\n ['POSITIVE', 'NEGATIVE']\n\nYou can get the sentiment value of a single tweet or multiple tweets\n\n::\n\n >>> lc.classify(\"I am happy!\")\n 5.599244615570646\n >>> lc.classify([\"I am happy!\", \"I hate rain\"])\n [5.599244615570646, -2.767224666516315]\n\nOptions\n~~~~~~~\n\nThe ``LexiconClassifier`` takes three options: \\* ``lexicon``: Path to\nsentiment lexicon file \\* ``options``: Path to options file \\*\n``dictionary``: Path to canonical dictionary\n\nLexicon Creator\n---------------\n\nUsage\n~~~~~\n\n.. code:: python\n\n from fjlc import LexiconCreator\n lc = LexiconCreator()\n\nIncomplete, untested.", "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/draperunner/fjlc", "keywords": "twitter sentiment analysis lexicon", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "fjlc", "package_url": "https://pypi.org/project/fjlc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fjlc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/draperunner/fjlc" }, "release_url": "https://pypi.org/project/fjlc/1.0.3/", "requires_dist": null, "requires_python": null, "summary": "A Python port of the Fredriksen-Jahren Lexicon Classifier", "version": "1.0.3" }, "last_serial": 2808762, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d9a3b6264caed7c6c838f9d430298e45", "sha256": "95379b333cddd61c6a56fa87b0cbcbcfd620736e81cf151efecf782929dd2ece" }, "downloads": -1, "filename": "fjlc-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d9a3b6264caed7c6c838f9d430298e45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61864, "upload_time": "2017-04-12T21:59:32", "url": "https://files.pythonhosted.org/packages/0b/02/b10c54da1abbdadc2b9352060f35ee362771fc850fd29fe0170cbca5c11c/fjlc-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "2afe2e502cfe669b5693918c5badf4ed", "sha256": "215c20091d5c3b3533a0c04f04059a5a07c451eba33a4b425fd632db7dcaff3f" }, "downloads": -1, "filename": "fjlc-1.0.1.tar.gz", "has_sig": false, "md5_digest": "2afe2e502cfe669b5693918c5badf4ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61373, "upload_time": "2017-04-17T11:33:53", "url": "https://files.pythonhosted.org/packages/b8/6b/24320aef15ee1e039c2fa90b91b56846729d5466de7a2c7a9518a4bb6204/fjlc-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "2aa368a0dfe424c0ad96adb0e75ef218", "sha256": "f114b5db8dab1ef7a358d92ee1ca5635f6f8c412989105723d01bd4c6d13a337" }, "downloads": -1, "filename": "fjlc-1.0.2.tar.gz", "has_sig": false, "md5_digest": "2aa368a0dfe424c0ad96adb0e75ef218", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61398, "upload_time": "2017-04-17T12:55:15", "url": "https://files.pythonhosted.org/packages/60/ed/5979e8ef7dfbb6da477729cb1ced5620b7646cc4ba4a699d39e6f7a1f13b/fjlc-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "d61f845b2833e4e1656e7347e814f75e", "sha256": "e814e2180ab45a35cf5eb44f9932b7a835aa0c3629bb1f45d7845b7805845bff" }, "downloads": -1, "filename": "fjlc-1.0.3.tar.gz", "has_sig": false, "md5_digest": "d61f845b2833e4e1656e7347e814f75e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60015, "upload_time": "2017-04-17T14:23:03", "url": "https://files.pythonhosted.org/packages/df/79/419ed3bb473b7884eed30f734c7964493ba2e089511b6bbeb3b5f26bfabf/fjlc-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d61f845b2833e4e1656e7347e814f75e", "sha256": "e814e2180ab45a35cf5eb44f9932b7a835aa0c3629bb1f45d7845b7805845bff" }, "downloads": -1, "filename": "fjlc-1.0.3.tar.gz", "has_sig": false, "md5_digest": "d61f845b2833e4e1656e7347e814f75e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60015, "upload_time": "2017-04-17T14:23:03", "url": "https://files.pythonhosted.org/packages/df/79/419ed3bb473b7884eed30f734c7964493ba2e089511b6bbeb3b5f26bfabf/fjlc-1.0.3.tar.gz" } ] }