Emotion-Cause Pair Extraction: A New Task to Emotion Analysis in Texts
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 (Outstanding Paper Award). [pdf]
Please cite our paper if you use this code.
Dependencies
- Python 2 (tested on python 2.7.15)
- Tensorflow 1.8.0
Usage
Step1 (There are three optional methods):
- python Ind-BiLSTM.py
- python P_cause.py
- python P_emotion.py
Step2:
- python pair.py