This repository is the PyTorch implementation of our ACLT model in EMNLP 2021 Paper "To be Closer: Learning to Link up Aspects with Opinions".
The code has been tested in the following enviroment:
- Ubuntu 18.04.4 LTS
- Python 3.8.3
- torch 1.9.0
- cuda 10.2
- cudnn 7605
To install:
conda create -n aclt python=3.8.3
source activate aclt
git clone https://github.com/zyxnlp/ACLT.git
cd ACLT
pip install -r requirements.txt
Pre-trained model:
- Downlaod bert-base model from here
- Unzip the .zip file to the folder
ACLT/pretrain_model/
- Change the access mode of the .sh file by
chmod 700 *.sh
./run.sh
If you find our work or the code useful, please consider cite our paper using:
@inproceedings{zhou2021closer,
title={To be Closer: Learning to Link up Aspects with Opinions},
author={Yuxiang, Zhou and Lejian, Liao and Yang, Gao and Zhanming, Jie and Wei, Lu},
booktitle={Proceedings of EMNLP},
year={2021}
}