{"id":20536268,"url":"https://github.com/agn-7/emotion-detection-rnn","last_synced_at":"2026-05-06T00:07:02.283Z","repository":{"id":144127064,"uuid":"235054866","full_name":"agn-7/Emotion-Detection-RNN","owner":"agn-7","description":"A bidirectional GRU model to detect discrete emotions in tweets.","archived":false,"fork":false,"pushed_at":"2020-07-22T17:48:35.000Z","size":13607,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T03:32:52.760Z","etag":null,"topics":["colab","colaboratory","deep-learning","deep-reinforcement-learning","emotion-detection","google-colab","gru","jupyter-notebook","nlp","python","python3","rnn","sentimental-analysis","tensorflow","twitter"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":false,"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/agn-7.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-20T08:39:01.000Z","updated_at":"2022-11-12T16:46:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"5aaa0784-fdfd-4831-b571-9e8f423ff9d7","html_url":"https://github.com/agn-7/Emotion-Detection-RNN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agn-7/Emotion-Detection-RNN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agn-7%2FEmotion-Detection-RNN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agn-7%2FEmotion-Detection-RNN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agn-7%2FEmotion-Detection-RNN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agn-7%2FEmotion-Detection-RNN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agn-7","download_url":"https://codeload.github.com/agn-7/Emotion-Detection-RNN/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agn-7%2FEmotion-Detection-RNN/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["colab","colaboratory","deep-learning","deep-reinforcement-learning","emotion-detection","google-colab","gru","jupyter-notebook","nlp","python","python3","rnn","sentimental-analysis","tensorflow","twitter"],"created_at":"2024-11-16T00:36:04.318Z","updated_at":"2026-05-06T00:07:02.269Z","avatar_url":"https://github.com/agn-7.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emotion Detection Model\n\nThis is the code for training an emotion detection model using GRU presented in:\n\n![GRU Model](model.png \"GRU Model\")\n\n___\n## Train your own model\n\nRequirements (tested with):\n- *Python 3.6*\n- *Numpy 1.14.5*\n- *Pandas 0.24.1*\n- *Sklearn 0.19.0*\n- *Tensorflow 2.0.0-beta1*\n\n### Installation:\n\n    pip install -r requirements.txt\n\n### To run:\n\nAfter downloading/cloning, put the dataset in the data folder. \n\nTo use the dataset in the paper you can download tweets based on their tweet ids available with their classes in `./data/` and remove the hashtags at the end of each tweets. The final dataset should have the following format: `id, text, emotion` with one record (tweet) per line.\n\nThe embedding file should be placed in `./vectorss/`\n\nUse the `configuration.cfg` to set the name of dataset and embedding file, maximun numer in the vocabulary (max_features), maximum length of terms in the text (maxlen), bactch size and number of epochs to run the training. \n\nThen run the `handler.py`:\n\n    python handler.py\n\n### Google-Colab\n\nYou can use `handler.ipynb` in order to use in google-colab or jupyter notebook.\n\n\u003ca href=\"https://colab.research.google.com/github/agn-7/Emotion-Detection-RNN/blob/master/handler.ipynb\"\u003e\u003cimg alt=\"Open In Colab\" src=\"https://colab.research.google.com/assets/colab-badge.svg?style=flat-square\"\u003e\u003c/a\u003e\n\n---\n## Testing\n\nYou can download the trained models used for the paper at: https://drive.google.com/open?id=1TXEbHMTA_AWPFC8bbt7WiBtfT3jVy8cG . \n\nTo run, put the test file into the data forlder. test file should be one tweet per line with no additional columns. set the name of the file in `test_configuration.cfg` and run `handler-test.py`. \n\n## Citation\nPlease use the following citation when using the code or the paper:\n\n@article{seyeditabari2019emotion,\n  title={Emotion Detection in Text: Focusing on Latent Representation},\n  author={Seyeditabari, Armin and Tabari, Narges and Gholizadeh, Shafie and Zadrozny, Wlodek},\n  journal={arXiv preprint arXiv:1907.09369},\n  year={2019}\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagn-7%2Femotion-detection-rnn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagn-7%2Femotion-detection-rnn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagn-7%2Femotion-detection-rnn/lists"}