Code Monkey home page Code Monkey logo

emotion-label-semantics's Introduction

(Work in progress) Modeling-Label-Semantics-for-Predicting-Emotional-Reactions

Code for the paper - Modeling Label Semantics for Predicting Emotional Reactions - https://arxiv.org/pdf/2006.05489.pdf. This work explores the use different ways of utilizing label semantics techniques for improving multi-label emotion prediction in short commonsense stories:

GitHub Logo Multi-label emotion reactions in ROC Stories (Rashkin et al.)

Running experiments

Training a model

This section covers training a classification model for the Semi-supervision model and the baseline models (refer to Table 1 in the paper). The model names and corresponding main file names are mentioned below:

  1. BERT - main_bert_base.py
  2. LEAM w/ Glove - main_leam_glove_label.py
  3. LEAM w/ BERT Features - main_leam_bert_label.py
  4. BERT + Labels as Input - main_bert_label.py
  5. Learned Correlations - main_bert_learned_correlation.py
  6. Semi-supervision - main_bert_soft_semi_supervision.py

Run the following command for training each of above listed models with the correct main file:

python main_bert_soft_semi_supervision.py --do_train --save_best --do_lower_case --monitor valid_loss --mode min --epochs 20 --train_batch_size 8

Code citations

This work wouldn't be possible without the code shared in the following repositories, which were used heavily in this work

emotion-label-semantics's People

Contributors

radhikagaonkar avatar

Watchers

James Cloos avatar

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.