GithubHelp home page GithubHelp logo

valence-arousal's Introduction

Emotion Classification

Deep learning for the classification of emotions in textual information regarding valence and arousal dimensions.

Organization

The project is divided into 3 folders:

  • datasets (Contains the used datasets for training and evaluation of models)
  • models (Contains all the models for each experiment)
  • scripts (Contains the necessary scripts to build the embeddings vectors)

Models

  • Average Baseline: Sentence score is given by the mean of word classification scores.
  • SVM Classification: Support Vector Machine with Regression. Either uses bag-of-words or the average of embeddings vectors.
  • Kernel Ridge K-fold: Baseline for the word classification model. Uses Kernel ridge with cross-validation.
  • Initial Training K-fold: Word classification model using cross-validation.
  • Quotation Classification: Main script to train and evaluate the sentence model.

Usage

To represent each token, it uses pre-trained GloVe embeddings with Jaro Winkler's distance to calculate out-of-vocabulary tokens. To create these embeddings go to folder scripts/:

python3.5 build_glove_embeddings.py --glove ../../embeddings/glove/glove.840B.300d.txt --data ../datasets/facebook_posts.csv

To run the main script:

python3.5 quotation_classification.py --data ../datasets/facebook_posts.csv --rnn LSTM --attention --emb ../scripts/glove_embeddingsall_sentences.emb.npy --dropout 0.2 --k 10

valence-arousal's People

Contributors

j-godinho avatar bgmartins avatar

Stargazers

Carla Viegas avatar Neil Daftary avatar

Watchers

James Cloos avatar  avatar  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.