Code Monkey home page Code Monkey logo

arkmsa's Introduction

Enhancing Multimodal Sentiment Analysis via Learning from Large Language Model

Arch Diagram

Running The Code

Dependency

Some important packages are listed as follows.

python == 3.7
pytorch == 1.13.1
transformers == 4.22.2
numpy == 1.21.6

Data

We have provided the data of Twitter-15, Twitter-17, MVSA-Single and MVSA-Multiple. You don't need the images to run the code in the repo.

Generating Auxiliary Knowledge

You can leverage the CoT prompting approach, as outlined in our paper, to utilize miniGPT-4 for knowledge generation, including image descriptions and rationales.

Training & Evaluation

The training/eval scripts are very straightforward, and follow the same structure. Looking at main.py as a concrete example, all you need to do are to change the config.ini and run the code:

python main.py

Citations

If you found this paper useful, citing the paper and dataset would be greatly appreciated after the paper is accepted.

arkmsa's People

Contributors

ningpang avatar

Stargazers

 avatar  avatar  avatar Watson avatar

Watchers

 avatar  avatar

Forkers

nexus-liu xlggzzz

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.