Understanding the comments, feedback, and opinions of users, clients, and customers has always been crucial in all fields of life. Unfortunately, manually handling the vast amount of textual content is now unachievable. This problem leads to the emergence of the research field sentiment analysis (SA), which helps automatically analyze the opinions of users. With an increase in the complexity of products, companies also need to recognize comments on smaller aspects of the products; therefore, the SA system has to analyze more detailed parts of users' feedback to recognize more fine-grained aspect-level opinions and sentiments. This field of study is named as Aspect-Based Sentiment Analysis (ABSA), which includes many a variety of helping tasks.
For more details, please read the report provided in folder ./docs
.
- Nguyễn Tống Minh (Email: minh.nt204885@sis.hust.edu.vn)
- Nguyễn Xuân Thái Hòa
- Ngô Thị Thu Huyền
- Nguyễn Nhật Quang
To reproduce the experiments in notebooks, we notice that the file paths should be added with the corresponding parent directories. Also, when re-running the code, providing a cell %cd
to vabsa
will eliminate the issues of importing source code. For more details, please follow the section below.
- Install required libraries:
Some methods will require more, specified libraries that are
!pip install -r requirements
requirements.txt
located invabsa/<method_name>
. Please install them as well if you need to re-run the programs. - Download the checkpoint directories for the methods from: CHECKPOINTS. Put each checkpoint directory under
./checkpoints
for usage. For GatedCNN, please download this and put each to the corresponding folder. - To run the demo: You may want to change the input review, please do that at the module itself
!python vabsa\roberta\vabsa\roberta\infer_1_sentence.py