{"id":26664872,"url":"https://github.com/shahules786/twitter-emotions","last_synced_at":"2025-07-30T23:16:40.358Z","repository":{"id":46168164,"uuid":"345013833","full_name":"shahules786/twitter-emotions","owner":"shahules786","description":"NLP tool to extract emotional phrase from tweets 🤩","archived":false,"fork":false,"pushed_at":"2021-10-18T06:28:31.000Z","size":628,"stargazers_count":40,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T16:54:17.995Z","etag":null,"topics":["docker","extraction","huggingface","nlp","pytorch","sentiment"],"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/shahules786.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":"2021-03-06T05:29:18.000Z","updated_at":"2024-01-04T16:55:27.000Z","dependencies_parsed_at":"2022-09-22T02:02:28.430Z","dependency_job_id":null,"html_url":"https://github.com/shahules786/twitter-emotions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahules786%2Ftwitter-emotions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahules786%2Ftwitter-emotions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahules786%2Ftwitter-emotions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahules786%2Ftwitter-emotions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shahules786","download_url":"https://codeload.github.com/shahules786/twitter-emotions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480516,"owners_count":21110936,"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":["docker","extraction","huggingface","nlp","pytorch","sentiment"],"created_at":"2025-03-25T16:46:37.848Z","updated_at":"2025-04-11T20:52:04.211Z","avatar_url":"https://github.com/shahules786.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/github/issues/shahules786/twitter-emotions)]()\n[![](https://img.shields.io/github/license/shahules786/twitter-emotions)]()\n[![](https://img.shields.io/github/stars/shahules786/twitter-emotions)]()\n\n\n# Emotional phrase extractor\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/25312635/118586138-d4adf300-b7b7-11eb-9dcd-99b9cf9d4236.png\" /\u003e\n\u003c/p\u003e\n\n\nExtract phrase in the given text that is used to express the sentiment. Capturing sentiment in language is important in these times where decisions and reactions are created and updated in seconds. But, which words actually lead to the sentiment description? This project aims to solve this problem.\n\nPowered using Pytorch + hugggingface 🤗\n\n## Try it out.\n\n\n```bash\n\ngit clone https://github.com/shahules786/twitter-emotions.git\n\ncd twitter-emotions\n\nsudo docker build --tag twitter-emotions:api .\n\nsudo docker run -p 9999:9999  -it twitter-emotions:api python twitteremotions/app.py\n\n\n```\n\nServer will start running on port 9999 of localhost\n\n\n## Example\n\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/25312635/119235209-fa881e80-bb4e-11eb-8a2a-8d7ff4b5f439.gif\" /\u003e\n\u003c/p\u003e\n\n\n\n## Installation for development\n\n```bash\n\ngit clone https://github.com/shahules786/twitter-emotions.git\n\ncd twitter-emotions\n\npip install -r requirements.txt\n\n```\n\nTrain Model on your data\n\n```python\nfrom twitteremotions.emotions import TwitterEmotions\nemotions = TwitterEmotions()\nemotions.train(train_path=\"data/train.csv\", epochs=10, batch_size=32, max_len=168, test_size=0.25)\n```\n\n## Contributing\nAll contrbutions are welcome 👋\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahules786%2Ftwitter-emotions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahules786%2Ftwitter-emotions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahules786%2Ftwitter-emotions/lists"}