{"id":18719759,"url":"https://github.com/fahdseddik/company-sentiment-analysis","last_synced_at":"2026-05-15T12:33:26.962Z","repository":{"id":170717111,"uuid":"539207408","full_name":"FahdSeddik/Company-Sentiment-Analysis","owner":"FahdSeddik","description":"Streamlit app for company sentiment analysis based on tweets.","archived":false,"fork":false,"pushed_at":"2023-01-04T12:16:00.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T02:12:46.441Z","etag":null,"topics":["huggingface","nlp","sentiment-analysis","streamlit"],"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/FahdSeddik.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,"zenodo":null}},"created_at":"2022-09-20T22:04:29.000Z","updated_at":"2022-09-26T14:05:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"e814524a-d6b3-4ce3-a1c2-2d419664aaf3","html_url":"https://github.com/FahdSeddik/Company-Sentiment-Analysis","commit_stats":null,"previous_names":["fahdseddik/company-sentiment-analysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FahdSeddik/Company-Sentiment-Analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FahdSeddik%2FCompany-Sentiment-Analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FahdSeddik%2FCompany-Sentiment-Analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FahdSeddik%2FCompany-Sentiment-Analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FahdSeddik%2FCompany-Sentiment-Analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FahdSeddik","download_url":"https://codeload.github.com/FahdSeddik/Company-Sentiment-Analysis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FahdSeddik%2FCompany-Sentiment-Analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"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":["huggingface","nlp","sentiment-analysis","streamlit"],"created_at":"2024-11-07T13:27:46.500Z","updated_at":"2026-05-15T12:33:26.943Z","avatar_url":"https://github.com/FahdSeddik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\n  \u003cimg src=\"https://www.freecodecamp.org/news/content/images/2020/09/wall-5.jpeg\" alt=\"sentiments\" width=\"500\"/\u003e\n\n\u003c/p\u003e\n\n\u003chr\u003e\n\n# Company-Sentiment-Analysis\nThis is a Streamlit app for sentiment analysis that uses [XLM RoBERTa](https://huggingface.co/akhooli/xlm-r-large-arabic-sent) model on Hugging Face. The program scrapes twitter for tweets that are about a certain company.\nThe tweets are then fed into a model for sentiment analysis.  \n* You can find our CUSTOM MODEL in this repo [here](https://github.com/FahdSeddik/EgyptionCompaniesReviews_Sentiment_analysis)\n\n# Interface\nBelow is a video demo of the app.   \n\nhttps://user-images.githubusercontent.com/62207434/192290351-86ad659d-ffcf-4e9a-bcec-2c01dc6119a0.mp4\n\n# Installation\nTo be able to use this app, please follow the instructions below. First, you need to install requirements using the following command.\n```bash\npip install -r requirements.txt\n```\nAfter that, you need to download this model from [Hugging Face](https://huggingface.co/akhooli/xlm-r-large-arabic-sent). \n```python\nfrom transformers import pipeline\nimport tokenizers\n# this will download 2 GB\nnlp = pipeline(\"sentiment-analysis\", model='akhooli/xlm-r-large-arabic-sent')\n\n# Save it in the same app folder\n# .save_pretrained(path)\n# 'XLM-R-L-ARABIC-SENT' is the folder name of the model\nnlp.save_pretrained('XLM-R-L-ARABIC-SENT')\n```\nThis will produce a folder that has the model. ***Please include the folder in the same directory as 'app.py'.***  \nIn case you want to replace this model with another, you want to download your model and edit the `setup_model()` function. Implementation is shown below.\n```python\ndef setup_model():\n    \"\"\"\n    Setup Model\n    \"\"\"\n    #*************************************************\n    #  -==EDIT THE LINE BELOW WITH YOUR OWN MODEL==-\n    #*************************************************\n    nlp = pipeline(\"sentiment-analysis\", model='XLM-R-L-ARABIC-SENT')\n    return nlp\n```\nNow to run the app, just simply run the command below in a terminal.\n```bash\nstreamlit run app.py\n```\n# How to use?\nBelow you can find all the settings you can tweak that are related to your query.  \n\n\u003cimg src=\"https://user-images.githubusercontent.com/62207434/192295281-e7dd7b7e-685b-482b-90dd-6868ce5e8d92.png\" alt=\"sentiments\" width=\"500\"/\u003e  \n\nIf the program was unable to find enough tweets for a given query then the message below will show.  \n\n![image](https://user-images.githubusercontent.com/62207434/192296501-cc9cfafa-f680-4504-8ae7-8d4dc8eb6faa.png)\n\n**WordCloud is not available for Arabic due to the library not being compatable with Arabic.**\n\n\n# About \nThis Streamlit app was developed as part of my Data Scientist intern position at Banque Misr.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffahdseddik%2Fcompany-sentiment-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffahdseddik%2Fcompany-sentiment-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffahdseddik%2Fcompany-sentiment-analysis/lists"}