The code repository for NLPCC2021 paper "Locate and Combine: A Two-Stage Framework for Aspect-Category Sentiment Analysis".
Download the glove.840B.300d.txt,bert-base-uncased,restaurant post-training BERT to the corresponding paths in your computer.Remenber to modify the dataset path according to your setting.
pip install -r requirement.txt
Run the following commands for restaurant 2014 dataset. For the restaurant 2014 hard, restaurant large and restaurant large hard datasets, change rest14DevSplit in the following commands to rest14_hard, rest_large and rest_large_hard respectively.
Trained models can be found here. For Chinese, trained models can also be found here and the key is u6m0.