Code Monkey home page Code Monkey logo

gmp's Introduction

GMP

Generated Multimodal Prompt

This paper, "Few-shot Joint Multimodal Aspect-Sentiment Analysis Based on Generative Multimodal Prompt", is accepted by the Findings of ACL 2023. The code will come soon.

Data

The image-text data that is used in our paper can be downloaded from Google Drive.

Model: Generative Multimodal Prompt (GMP)

image

Task Training

To Train the JMASA, MASC, and MATE tasks on two twitter datasets, you can just run the following code. Note that you need to change all the file path in file "GMP/src/data/jsons/few_shot_for_prompt/twitter_2015/" and "GMP/src/data/jsons/few_shot_for_prompt/twitter17_info.json" to your own path.

For the MATE task,

sh scripts/15MATE_pretrain_for_generated_prompt_multitasks.sh
sh scripts/17MATE_pretrain_for_generated_prompt_multitasks.sh

For the JMASA task,

sh scripts/15_pretrain_full_for_generated_dual_prompts_multitasks_Aspect.sh
sh scripts/17_pretrain_full_for_generated_dual_prompts_multitasks_Aspect.sh

For the MASC task,

sh scripts/15MASC_pretrain_for_generated_prompt.sh
sh scripts/17MASC_pretrain_for_generated_prompt.sh

Acknowledgements

Some codes are based on the codes of VLP-MABSA, many thanks!

gmp's People

Contributors

yangxiaocui1215 avatar

Stargazers

 avatar sww avatar 吉良吉影 avatar  avatar smile avatar Nastu Ho avatar  avatar FENG HEYANG avatar Yuntao Wei avatar 无处安放的小码农 avatar Meredith avatar

Watchers

 avatar  avatar

Forkers

sukeey duanzhihua

gmp's Issues

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.