Coder Social home page Coder Social logo

oaarnikoivu / emotion-classifier Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 20.23 MB

An attention-based BiLSTM for emotion classification.

Jupyter Notebook 94.65% Python 1.35% HTML 0.85% CSS 0.24% TypeScript 2.70% JavaScript 0.21%
deep-learning pytorch react typescript flask python emotion-detection text-classification multi-label-classification bert transformers embeddings emotion

emotion-classifier's Introduction

An attention-based BiLSTM for emotion classification.

This model was trained to detect multiple emotions from text. The model achieves comparable results to the state-of-the-art by using an Attention BiLSTM with contextualized embeddings produced by a frozen BERT transformer model.

Overview

  • /client contains all client-side code related to the UI of the application.
  • /server contains the server-side code related to the application.
  • /notebooks contains all the iPython notebooks to carry out the methods & experimental setup.

Technologies

The model architecture is constructed using PyTorch. The HuggingFace Transformers library is made use of in order to apply and retrive the embeddings from a pre-trained BERT model. Scikit Learn is also made use of to assess model performance using the Jaccard index, and micro-averaged and macro-averaged F1 scores, as well as for the implemenation of the baseline machine learning algorithms. The models were trained with Google Colaboratory notebooks using an NVIDIA Tesla K80 GPU.

Dataset

The dataset used is the SemEval Task 1: Affect in Tweets emotion classification dataset where given a tweet, the task is to classify the text as having no emotion or as one, or more, emotions for eight of the Plutchik categories plus optimism, pessimism, and love. The dataset consists of 6838 training examples, 886 validation examples and 3259 testing examples.

Report

emotion-classifier's People

Contributors

oaarnikoivu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

emotion-classifier's Issues

Model availability

By Any chance is there a way to release the model to public or at least the data set info used for training?

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.