CoolNet: Cross-modal fine-grained alignment and fusion network for multimodal aspect-based sentiment analysis
This repository contains the source code and datasets associated with the paper titled "Cross-modal fine-grained alignment and fusion network for multimodal aspect-based sentiment analysis"
- Step 1:Download each tweet's associated images via this link Google Drive, and then put the associated images into folders "./datasets/twitter2015_images/" and "./datasets/twitter2017_images/";
- Step 2: Download each finetune file via this link Google Drive, and then put the associaled finetune model files into folder "./finetune/roberta_15/final/" and "./finetune/roberta_17/final/"
- Step 3: Download the pre-trained roberta-base-cased and put the pre-trained roberta model under the folder "./model/roberta-base-cased/"
- Step 4: Download the vig_s_80.6.pth checkpoints VIG-Backbone and put it under the folder "./"
conda env create > CoolNet.yaml
- python solve_final.py
If you find this repository useful, we kindly request that you cite our paper and consider starring this repository.
@article{xiao2023cross,
title={Cross-modal fine-grained alignment and fusion network for multimodal aspect-based sentiment analysis},
author={Xiao, Luwei and Wu, Xingjiao and Yang, Shuwen and Xu, Junjie and Zhou, Jie and He, Liang},
journal={Information Processing \& Management},
volume={60},
number={6},
pages={103508},
year={2023},
publisher={Elsevier}
}
- Using these two datasets means you have read and accepted the copyrights set by Twitter and dataset providers.
- Most of the codes are based on the codes provided by huggingface: https://github.com/huggingface/transformers.
