Giter Site home page Giter Site logo

hitrans's Introduction

HiTrans: A Transformer-Based Context- and Speaker-Sensitive Model for Emotion Detection in Conversations

Source code for COLING 2020 paper: HiTrans: A Transformer-Based Context- and Speaker-Sensitive Model for Emotion Detection in Conversations

1. Environments

  • python (3.6.8)
  • cuda (10.1)

2. Dependencies

  • numpy (1.17.3)
  • torch (1.6.0)
  • transformers (3.5.1)
  • pandas (1.1.5)
  • scikit-learn (0.23.2)

3. Preparation

  • Download MELD dataset
  • Put train_sent_emo.csv, dev_sent_emo.csv and test_sent_emo.csv into the directory data/

4. Training

>> python main.py

5. Evaluation

>> python main.py --evaluate

6. License

This project is licensed under the MIT License - see the LICENSE file for details.

7. Citation

If you use this work or code, please kindly cite the following paper:

@inproceedings{li-etal-2020-hitrans,
    title = "{H}i{T}rans: A Transformer-Based Context- and Speaker-Sensitive Model for Emotion Detection in Conversations",
    author = "Li, Jingye  and
      Ji, Donghong  and
      Li, Fei  and
      Zhang, Meishan  and
      Liu, Yijiang",
    booktitle = "Proceedings of the 28th International Conference on Computational Linguistics",
    year = "2020",
    publisher = "International Committee on Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2020.coling-main.370",
    pages = "4190--4200",
}

hitrans's People

Contributors

ljynlp avatar thdlee avatar

Stargazers

 avatar  avatar Dylan Guo avatar fmxuxu avatar yhli00 avatar lyjcam avatar  avatar  avatar  avatar Qian Lin avatar  avatar  avatar

Watchers

 avatar  avatar

hitrans's Issues

PLZ! For the help

Hi, I am trying to reproduce your paper recently. However, I can not get the same performance in my trial. And could you free your code or some useful details for me? thx

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.