View on GitHub

SIDATA

DynRT

URL: https://github.com/TIAN-viola/DynRT

Description: Official implementation of Dynamic Routing Transformer Network for Multimodal Sarcasm Detection (ACL’23).

Overview

This repository contains the PyTorch code and pre-trained models for the Dynamic Routing Transformer Network (DynRT), as described in the paper Dynamic Routing Transformer Network for Multimodal Sarcasm Detection, accepted by ACL 2023.

Dataset

The model was evaluated using the Multimodal Sarcasm Detection (MSD) dataset. To access the required dataset:

  1. Download image data from data-of-multimodal-sarcasm-detection and store it in the folder dataset_image.
  2. Preprocessed text data and labels are available in the folder input/prepared. These datasets exclude simple samples (e.g., sarcasm, humor, etc.).
  3. To preprocess the text data, run clean_dataset.py to save cleaned data in the input/prepared_clean folder.
  4. For optimized storage and faster training, the image data is converted into numpy arrays and stored in the folder image_tensor/.

Pretrained Model

How to Use

Model Details

Citation

If you find this repository useful for your research, please cite the following paper:

@article{dynrt2023,
  title={Dynamic Routing Transformer Network for Multimodal Sarcasm Detection},
  author={TIAN-viola et al.},
  journal={ACL 2023},
}

Acknowledgements