Home

Awesome

TomBERT

Adapting BERT for Target-Oriented Multimodal Sentiment Classification

Author

Jianfei YU

jfyu@njust.edu.cn

Mar 02, 2020

Target-oriented Multimodal Sentiment Classification (TMSC), PyTorch Implementations.

Requirement

Download tweet images and set up image path

Code Usage

(Optional) Preprocessing

python process_absa_data.py

Training for TomBERT

sh run_multimodal_classifier.sh

Testing for TomBERT

sh run_multimodal_classifier_test.sh

Implemented models

BERT and BERT+BL (run_classifier.py)

sh run_classifier.sh

TomBERT, mBERT, Res-BERT (run_multimodal_classifier.py)

BERT and TomBERT trained by me

Acknowledgements