HiTrans: A Transformer-Based Context- and Speaker-Sensitive Model for Emotion Detection in Conversations
Source code for COLING 2020 paper: HiTrans: A Transformer-Based Context- and Speaker-Sensitive Model for Emotion Detection in Conversations
- python (3.6.8)
- cuda (10.1)
- numpy (1.17.3)
- torch (1.6.0)
- transformers (3.5.1)
- pandas (1.1.5)
- scikit-learn (0.23.2)
- Download MELD dataset
- Put
train_sent_emo.csv
,dev_sent_emo.csv
andtest_sent_emo.csv
into the directorydata/
>> python main.py
>> python main.py --evaluate
This project is licensed under the MIT License - see the LICENSE file for details.
If you use this work or code, please kindly cite the following paper:
@inproceedings{li-etal-2020-hitrans,
title = "{H}i{T}rans: A Transformer-Based Context- and Speaker-Sensitive Model for Emotion Detection in Conversations",
author = "Li, Jingye and
Ji, Donghong and
Li, Fei and
Zhang, Meishan and
Liu, Yijiang",
booktitle = "Proceedings of the 28th International Conference on Computational Linguistics",
year = "2020",
publisher = "International Committee on Computational Linguistics",
url = "https://www.aclweb.org/anthology/2020.coling-main.370",
pages = "4190--4200",
}