{"id":21305849,"url":"https://github.com/lyuchenyang/personalized-sentiment-analysis","last_synced_at":"2025-03-15T19:41:01.024Z","repository":{"id":177257809,"uuid":"660159815","full_name":"lyuchenyang/Personalized-Sentiment-Analysis","owner":"lyuchenyang","description":"Code for Findings of ACL 2023 paper \"Exploiting Rich Textual User-Product Context for Improving Personalized Sentiment Analysis\"","archived":false,"fork":false,"pushed_at":"2023-07-04T11:10:38.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T08:45:04.864Z","etag":null,"topics":["deep-learning","machine-learning","natural-language-processing","natural-language-understanding","sentiment-analysis","sentiment-classification"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lyuchenyang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-06-29T11:26:36.000Z","updated_at":"2023-10-13T08:06:15.000Z","dependencies_parsed_at":"2023-07-20T02:00:07.247Z","dependency_job_id":null,"html_url":"https://github.com/lyuchenyang/Personalized-Sentiment-Analysis","commit_stats":null,"previous_names":["lyuchenyang/personalized-sentiment-analysis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyuchenyang%2FPersonalized-Sentiment-Analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyuchenyang%2FPersonalized-Sentiment-Analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyuchenyang%2FPersonalized-Sentiment-Analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyuchenyang%2FPersonalized-Sentiment-Analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyuchenyang","download_url":"https://codeload.github.com/lyuchenyang/Personalized-Sentiment-Analysis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243784099,"owners_count":20347409,"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":["deep-learning","machine-learning","natural-language-processing","natural-language-understanding","sentiment-analysis","sentiment-classification"],"created_at":"2024-11-21T16:19:41.522Z","updated_at":"2025-03-15T19:41:01.002Z","avatar_url":"https://github.com/lyuchenyang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Exploiting Rich Textual User-Product Context for Improving Personalized Sentiment Analysis\n\n\n**[Chenyang Lyu](https://lyuchenyang.github.io), [Linyi Yang](mailto:yanglinyi@westlake.edu.cn), [Yue Zhang](mailto:zhangyue@westlake.edu.cn), [Yvette Graham](mailto:ygraham@tcd.ie), [Jennifer Foster](mailto:jennifer.foster@dcu.ie)**\n\nSchool of Computing, Dublin City University, Dublin, Ireland \u0026#x1F3E0;\n\nSchool of Engineering, Westlake University, China;\n\nSchool of Computer Science and Statistics, Trinity College Dublin, Dublin, Ireland\n\n\u003c/div\u003e\n\n## Introduction 📝\nThis repository contains the code and resources for our Findings of ACL 2023 paper titled \"Exploiting Rich Textual User-Product Context for Improving Personalized Sentiment Analysis\". In this paper, we propose a novel approach to improve personalized sentiment analysis by leveraging rich textual user-product context.\n\n## Installation 📋\nTo get started, please install the required libraries by running the following command:\n\n```angular2\npip install -r requirements.txt\n```\n\n## Download datasets 📥\nNext, download the datasets from the following URL: [dataset](https://drive.google.com/file/d/1Bdt_jw-kiZCt7vJyfXe1hYmPKMinbtFu/view?usp=sharing).\n\nUnzip the downloaded zip file and move all dataset files to the \"data/personalized-sa/\" directory.\n\n## Training 🚀\nTo train the model, use the following code:\n\n```\npython run_cross_context_sa.py --task_name yelp-2013 \\\n    --model_type bert \\\n    --model_size base \\\n    --epochs 5 \\\n    --do_train \\\n    --weight_decay 0.0 \\\n    --learning_rate 5e-5 \\\n    --warmup_steps 0.2 \\\n    --max_seq_length 512 \\                            \n```\n\n## Evaluation 📊\nTo evaluate a trained model with the specified parameters, use the following code:\n\n```\npython run_cross_context_sa.py --task_name yelp-2013 \\\n    --model_type bert \\\n    --model_size base \\\n    --epochs 5 \\\n    --do_eval \\\n    --weight_decay 0.0 \\\n    --learning_rate 5e-5 \\\n    --warmup_steps 0.2 \\\n    --max_seq_length 512 \\                            \n```\n\n## License 📄\nThis work is licensed under a [Creative Commons Attribution 4.0 International Licence](http://creativecommons.org/licenses/by/4.0/).\n\n## Citation 📄\n\nPlease cite our paper using the bibtex below if you found that our paper is useful to you:\n\n```bibtex\n@article{lyu2022exploiting,\n  title={Exploiting Rich Textual User-Product Context for Improving Sentiment Analysis},\n  author={Lyu, Chenyang and Yang, Linyi and Zhang, Yue and Graham, Yvette and Foster, Jennifer},\n  journal={arXiv preprint arXiv:2212.08888},\n  year={2022}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyuchenyang%2Fpersonalized-sentiment-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyuchenyang%2Fpersonalized-sentiment-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyuchenyang%2Fpersonalized-sentiment-analysis/lists"}