Giter Site home page Giter Site logo

ww-rm / emotion-detection-in-conversations Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 86.39 MB

Emotion Detection in Conversations by PyTorch.

Home Page: https://ww-rm.github.io/posts/2021/09/11/emodetection/

License: GNU General Public License v3.0

Python 100.00%
emotion-detection conversations pytorch nlp

emotion-detection-in-conversations's Introduction

Emotion Detection in Conversations


Requirements

  • python3.7
  • pytorch
  • torchnlp

Model

The main idea is from paper DialogueRNN An Attentive RNN for Emotion Detection in Conversations.

And there are two main parts of this model

  1. Feature extraction

    Used BiLSTM to get one sentence's vector.

  2. Emotion Detection

    Mainly composed of three GRUCells.


Dataset

DailyDialogue


Config

In this project pretrained word vectors GloVe was used. And in utils.py you can adjust the store path TORCHNLP_CACHEDIR of vectors file.


Usage

  • train

    $ python3 main.py --istrain

  • test

    $ python3 main.py

  • other options

    $ python3 main.py --help


If you think this project is helpful to you, plz star it and let more people see it. :)

emotion-detection-in-conversations's People

Contributors

ww-rm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lmtedug

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.