Code for the paper Contextual Inter-modal Attention for Multi-modal Sentiment Analysis (EMNLP 2018).
We provide results on the MOSI dataset.
Please cite the creators.
Python 3.5
Keras (Tensorflow backend) 2.2.4
Scikit-learn 0.20.0
python create_data.py
python trimodal_attention_models.py
If you use this code in your research, please cite our work using:
@inproceedings{ghosal2018contextual,
title={Contextual Inter-modal Attention for Multi-modal Sentiment Analysis},
author={Ghosal, Deepanway and Akhtar, Md Shad and Chauhan, Dushyant and Poria, Soujanya and Ekbal, Asif and Bhattacharyya, Pushpak},
booktitle={Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
pages={3454--3466},
year={2018}
}
Some of the functionalities in this repo are borrowed from https://github.com/soujanyaporia/contextual-utterance-level-multimodal-sentiment-analysis