Code Monkey home page Code Monkey logo

clmlf's Introduction

CLMLF

This is the repository of CLMLF:A Contrastive Learning and Multi-Layer Fusion Method for Multimodal Sentiment Detection [pdf] (Findings of NAACL 2022)

Requirements

We give the version of the python package we used, please refer to requirements.txt

The code will released soon.

python 3.6
pytorch 1.7.1
transformer 4.10.0

Data

We provide text data in dataset\data\. As for images, please download from the link below:

MVSA-*

http://mcrlab.net/research/mvsa-sentiment-analysis-on-multi-view-social-data/

HFM https://github.com/headacheboy/data-of-multimodal-sarcasm-detection

For example, MVSA-Single's images should be put in dataset\data\MVSA-single\dataset_image

Run code

Download model:

百度网盘:

链接:https://pan.baidu.com/s/1EUyZFN2uv3QxgNaS_ivh9A 
提取码:yuvw

Google drive:

https://drive.google.com/file/d/1ZLHu6JsrAj3QE4dz4X5tFIBE5VprNZbp/view?usp=sharing

We provide running scripts as follow:

As for MVSA-Single:

sh train-single.sh 0

As for MVSA-Mulitple:

sh train-mul.sh 0

As for HFM:

sh train-hfm.sh 0

Citation

If you find this code useful for your research, please consider citing:


@inproceedings{li2022clmlfa,
    title = "{CLMLF}:A Contrastive Learning and Multi-Layer Fusion Method for Multimodal Sentiment Detection",
    author = "Zhen Li and Bing Xu and Conghui Zhu and Tiejun Zhao",
    booktitle = "Findings of the Association for Computational Linguistics: NAACL 2022",
    year = "2022",
    publisher = "Association for Computational Linguistics",
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.