This repository contains the code for our ACL 2019 paper:
Rui Xia and Zixiang Ding. Emotion-Cause Pair Extraction: A New Task to Emotion Analysis in Texts. ACL 2019. https://arxiv.org/abs/1906.01267
Please cite our paper if you use this code.
- Python 2 (tested on python 2.7.15)
- Tensorflow 1.8.0
Step1 (There are three optional methods):
- python Ind-BiLSTM.py
- python P_cause.py
- python P_emotion.py
Step2:
- python pair.py