PS-Mixer: A Polar-Vector and Strength-Vector Mixer Model for Multimodal Sentiment Analysis
We propose a Polar-Vector and Strength-Vector mixer model called PS-Mixer, which is based on MLP-Mixer, to achieve better communication between different modal data for multimodal sentiment analysis.
- Python 3.8
- Pytorch 1.11.0
you could run the following command to build the environment.
pip install requirements.txt
- Install CMU Multimodal SDK. Ensure, you can perform
from mmsdk import mmdatasdk
. - Option 1: Download pre-computed splits and place the contents inside
datasets
folder. - Option 2: Re-create splits by downloading data from MMSDK. For this, simply run the code as detailed next.
- Set
word_emb_path
inconfig.py
to glove file. - Set
sdk_dir
to the path of CMU-MultimodalSDK. python train.py --data mosi
. Replacemosi
withmosei
for other datasets.
We begin our work on the basis of MISA initially, so the whole code architecture is similar to it, including the data process, data loader and evaluation metrics. Thanks to their open source spirit for saving us a lot of time.
For any questions, please email at zpl010720@gmail.com