{"id":15653260,"url":"https://github.com/avivace/reviews-sentiment","last_synced_at":"2025-04-30T21:35:23.770Z","repository":{"id":37228010,"uuid":"223274627","full_name":"avivace/reviews-sentiment","owner":"avivace","description":"Data analytics, exploration, sentiment analysis and topic analysis (LDA) on Amazon customer reviews. And cool interactive plots.","archived":false,"fork":false,"pushed_at":"2022-07-30T12:39:00.000Z","size":11852,"stargazers_count":31,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-30T20:05:49.876Z","etag":null,"topics":["amazon-reviews","analytics","customer-data","data-analytics","data-visualization","data-visualization-project","lda","plots","sentiment-analysis","topic-analysis","user-review"],"latest_commit_sha":null,"homepage":"https://avivace.github.io/reviews-sentiment","language":"Jupyter Notebook","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/avivace.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":"2019-11-21T22:11:11.000Z","updated_at":"2025-01-17T09:35:37.000Z","dependencies_parsed_at":"2022-06-22T01:55:28.496Z","dependency_job_id":null,"html_url":"https://github.com/avivace/reviews-sentiment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avivace%2Freviews-sentiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avivace%2Freviews-sentiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avivace%2Freviews-sentiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avivace%2Freviews-sentiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avivace","download_url":"https://codeload.github.com/avivace/reviews-sentiment/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251786140,"owners_count":21643636,"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":["amazon-reviews","analytics","customer-data","data-analytics","data-visualization","data-visualization-project","lda","plots","sentiment-analysis","topic-analysis","user-review"],"created_at":"2024-10-03T12:45:08.849Z","updated_at":"2025-04-30T21:35:23.745Z","avatar_url":"https://github.com/avivace.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analytics on Amazon Reviews\n\nData Analytics exam final project, [MSc in Computer Science](https://github.com/avivace/compsci).\n\nBy [Matteo Coppola](https://github.com/matteocoppola), [Luca Palazzi](https://github.com/lucapalazzi), [Antonio Vivace](https://github.com/avivace).\n\n\u003e Exploration, Sentiment Analysis, Topic Analysis (LDA) and a VueJS web application exposing the trained models.\n\n[GO. PLAY. WITH THE PLOTS.](https://avivace.github.io/reviews-sentiment) (web demo deployment)\n\n[Documentation](report.pdf)\n\n\n#### Exploration\n\n\u003cimg src=\"figures/1_rew_len_over_time.svg\" width=\"50%\"\u003e\u003cimg src=\"figures/1_avg_help_25_100_traffic.svg\"  width=\"50%\"\u003e\n\n\u003cimg src=\"figures/1_ver_unver_time_traffic.svg\"  width=\"50%\"\u003e\u003cimg src=\"figures/1_correlation_words_opinion.svg\"  width=\"50%\"\u003e\n\n#### Web demo\n\n\u003cimg src=\"https://github.com/avivace/reviews-sentiment/blob/develop/figures/ext/webapp1.png\"\u003e\n\n\u003cimg src=\"https://github.com/avivace/reviews-sentiment/blob/develop/figures/ext/webapp2.png\"\u003e\n\n\u003cimg src=\"https://github.com/avivace/reviews-sentiment/blob/develop/figures/ext/webapp3.png\"\u003e\n\n\u003cimg src=\"https://github.com/avivace/reviews-sentiment/blob/develop/figures/ext/webapp4.png\"\u003e\n\n\u003cimg src=\"https://github.com/avivace/reviews-sentiment/blob/develop/figures/ext/webapp_plot2.png\"\u003e\n\n\u003cimg src=\"https://github.com/avivace/reviews-sentiment/blob/develop/figures/ext/webapp_plot1.png\"\u003e\n\n\u003cimg src=\"https://github.com/avivace/reviews-sentiment/blob/develop/figures/ext/webapp_plot3.png\"\u003e\n\n\n\n## Run\n\nSet up the a Python virtual environment and install required packages\n\n```bash\ncd scripts\npython3 -m venv .\nsource bin/activate\npip3 install -r requirements.txt\npython3 -m spacy download en\n```\n\nOptionally, install a ipynb kernel to use the venv packages\n```bash\npip3 install --user ipykernel\npython -m ipykernel install --user --name=myenv\n# Check the installed kernels\njupyter kernelspec list\n# Run Jupyter\njupyter lab\n```\n\n\nNow, to run the full pipeline:\n```bash\npython3 main.py\n```\n\nA Flask application exposes a simple API (on port 5000) allowing the trained models to be used on demand via simple HTTP requests (in main.py). The VueJS application needs a recent version of NodeJS and npm.\n\n```bash\ncd webapp\nnpm install\n# serve the web application with hot reload at localhost:8080/reviews-sentiment\nnpm run serve\n# builds the web application for production\nnpm run build\n# deploys the build on the master branch, making github serve it on https://avivace.github.io/reviews-sentiment\nnpm run deploy\n```\n\n\n#### Antuz notes\n\nAccent is `#B71C1C`, typeface is *Barlow* 500. On the plots and graphs, typeface is *Inter* 600, palette is `#4DAF4A`, `#FF7F00`, `#C73E31`.\n\n#### Final notes from our supervisor, E.Fersini\n\nUnverified/Spam \"boom\" happens around the first-publishing of some product, aggregating data from a category will hardly show this (there are papers on this)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favivace%2Freviews-sentiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favivace%2Freviews-sentiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favivace%2Freviews-sentiment/lists"}