{"id":18318604,"url":"https://github.com/debugger22/sentiment-analyzer","last_synced_at":"2025-04-05T21:32:58.575Z","repository":{"id":10355639,"uuid":"12494124","full_name":"debugger22/sentiment-analyzer","owner":"debugger22","description":"Sentiment analysis on tweets and facebook comments","archived":false,"fork":false,"pushed_at":"2014-05-09T14:10:22.000Z","size":3237,"stargazers_count":42,"open_issues_count":1,"forks_count":27,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-21T12:13:07.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debugger22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-30T19:40:55.000Z","updated_at":"2024-06-09T19:37:32.000Z","dependencies_parsed_at":"2022-08-31T13:10:28.828Z","dependency_job_id":null,"html_url":"https://github.com/debugger22/sentiment-analyzer","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugger22%2Fsentiment-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugger22%2Fsentiment-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugger22%2Fsentiment-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugger22%2Fsentiment-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debugger22","download_url":"https://codeload.github.com/debugger22/sentiment-analyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406078,"owners_count":20933803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T18:10:48.942Z","updated_at":"2025-04-05T21:32:57.409Z","avatar_url":"https://github.com/debugger22.png","language":"Python","readme":"Sentiment Analyzer\n==================\n\nA Python module to do a set of operations on tweets. It uses a collection of stopwords to train a dataset for the sentiment analysis. It uses the basic principle of bag-of-words used for natural language processing.\n\nDependencies\n------------\n* numpy\n* matplotlib(To plot sentiments)\n\nHow to use\n----------\n```python\nfrom src import features, datalink, hashtags\nimport time\ndblink = datalink.DatabaseConnectionDown('perilipsi_tweets')\nemoTest = features.Emoticons()\ndictTest = features.DictionaryTest()\nhashtest = hashtags.hashtags()\ntestTweet, tweetTime = dblink.fetchTweet()['tweet'], dblink.fetchTweet()['time']\t#You can pass anything you want\nemo_test = emoTest.analyse(testTweet)\ndict_test = dictTest.analyse(testTweet)\nhash_test = hashtest.analyseHashtagTweet(testTweet)\nprint \"Emoticons:\", emo_test\nprint \"DictionaryTest:\", dict_test\nprint \"Hashtags: \", hash_test\n```\n\u003cstrong\u003eOutput\u003c/strong\u003e\n```python\nEmoticons: {'positive': 0.33, 'negative': 0.66}\nDictionaryTest: {'positive': 0.46153846153846156, 'negative': 0.5384615384615384}\nHashtags:  {'positive': 0.38, 'negative': 0.62}\n```\nProgress\n--------\n* \u003cspan style=\"color:green;\"\u003eEmoticons: This class uses emoticons detection to classify the passed string as positive or negative\u003c/span\u003e\n* \u003cspan style=\"color:green;\"\u003eDictionaryTest: This class uses a set of English words and their subjectivity to give a score to a string\u003c/span\u003e\n* \u003cspan style=\"color:green;\"\u003ehashtags: This class extracts hashtags from the string sent and calculates the sentiment based on a trained dataset\u003c/span\u003e\n* AllCaps\n* ElongatedWords\n* Negation\n* Punctuation\n\nSocial Network APIs\n---------------\n* Twitter Search API\n* Facebook Graph API\n\nComputation Engines\n-------------------\nWolfram Alpha\n\nTeam Members\n------------\n\u003ctable border=\"0\"\u003e\n\u003ctr\u003e\u003cth\u003eName\u003c/th\u003e\u003cth\u003eEmail\u003c/th\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eSudhanshu Mishra\u003c/td\u003e\u003ctd\u003e mrsud94@gmail.com\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eAmbar Mehrotra\u003c/td\u003e\u003ctd\u003eambar.prince@gmail.com\u003c/td\u003e\u003c/tr\u003e\n\u003c/table\u003e\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/mrsud/sentiment-analyzer/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebugger22%2Fsentiment-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebugger22%2Fsentiment-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebugger22%2Fsentiment-analyzer/lists"}