ATN is the proposed model in ใAttention Transfer Network for Aspect-level Sentiment Classificationใ, which is accepted by Coling'2020.
- python=3.5
- numpy=1.14.2
- tensorflow=1.9
- train(for example, you can use the folowing command to pre-train DSC model)
python pre_train.py
- eval (at inference time, you can get attention scores)
python pre_train_eval.py
- Attention Guide
sh run_atn_guide.sh
- Attention Fusion
sh run_atn_fusion.sh
@article{zhao2020attention,
title={Attention Transfer Network for Aspect-level Sentiment Classification},
author={Zhao, Fei and Wu, Zhen and Dai, Xinyu},
journal={arXiv preprint arXiv:2010.12156},
year={2020}
}
if you have any questions, please contact me [email protected].