Giter VIP home page Giter VIP logo

mplp's Introduction

Mimicking the Thinking Process for Emotion Recognition in Conversation with Prompts and Paraphrasing

Code for our paper, "Mimicking the Thinking Process for Emotion Recognition in Conversation with Prompts and Paraphrasing", IJCAI 2023, AI and Social Good track.

Dependencies

  • torch==1.13.1+cu117
  • transformers==4.17.0
  • sklearn
  • fitlog

Required data

Download required data for training of the second stage (including the base models we used, the raw texts of dialogues, the features of utterances, and the sample sets):

Training

Train the second stage model with the following commands:

  • MEDL: bash train_prompt2.sh MELD 42 stage2 128 0.3 ./data/MELD/meld_stage1 3 bert_score
  • IEMOCAP: bash train_prompt2.sh IEMOCAP 43 stage2 160 0.1 ./data/IEMOCAP/iemo_stage1 3 bert_score
  • DailyDialog: bash train_prompt2.sh DailyDialog 2 stage2 128 0.2 ./data/DailyDialog/dd_stage1 5 bm25

The optim values of these hyper-parameters(alpha and k) can vary under different seeds or environments (similar to CoG-BART), and adjustments may be needed in different experimental settings.

Quick Start

We also provide checkpoints for reproduction:

  • MELD: MELD_checkpoint 提取码:n5nn bash eval_prompt2.sh MELD 128 0.3 ./data/MELD/meld_stage2 3 bert_score
  • IEMOCAP: IEMOCAP_checkpoint 提取码:zfta bash eval_prompt2.sh IEMOCAP 160 0.1 ./data/IEMOCAP/iemo_stage2 3 bert_score
  • DailyDialog: DailyDialog_checkpoint 提取码:omu5 bash eval_prompt2.sh DailyDialog 128 0.2 ./data/DailyDialog/dd_stage2 5 bm25

Acknowledgment

Some code of this project are referenced from CoG-BART and DAG-ERC. We thank their open source materials for contribution to this task.

mplp's People

Contributors

nlpwm-whu avatar jinjikiko avatar

Stargazers

 avatar  avatar minimindy avatar Proto avatar Wang Zhengyang avatar Yuqing Li avatar

Watchers

 avatar

mplp'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.