Giter VIP home page Giter VIP logo

xpressions's Introduction

XPressions: Emotion Classification from Tweets

Emotions Dataset – a curated collection of English Twitter messages annotated with six primary emotions: anger, fear, joy, love, sadness, and surprise. This dataset serves as a valuable resource for analyzing emotional expressions in short-form text on social media platforms.

About the Dataset

Each entry in this dataset includes:

  • text: A string feature representing the content of a Twitter message.
  • label: A classification label indicating the predominant emotion, with values ranging from 0 to 5 corresponding to sadness, joy, love, anger, fear, and surprise respectively.

Sample Data

text label
that was what i felt when i was finally accept… 1
i take every day as it comes i'm just focussin… 4
i give you plenty of attention even when i fee… 0

Modeling

In this project, we employed various machine learning models to classify emotions from Twitter messages. Below are the models utilized and their descriptions:

  • LSTM with PyTorch

    • Description: Long Short-Term Memory (LSTM) networks implemented using PyTorch to capture long-range dependencies in text sequences.
    • Usage: LSTM models were trained on the Emotions dataset to understand sequential patterns and classify tweets into one of six emotion categories.
  • DeBERTa v3 with Hugging Face Transformers

    • Description: State-of-the-art transformer-based model from Hugging Face Transformers library, specifically DeBERTa v3, fine-tuned on the emotions classification task.
    • Integration: Leveraged pre-trained DeBERTa v3 model and fine-tuned it on the Emotions dataset to utilize bidirectional contextual embeddings for accurate emotion prediction.
  • XLNet with Hugging Face Transformers

    • Description: XLNet is another transformer-based model that overcomes limitations of traditional transformers by leveraging permutation language modeling.
    • Advantages: XLNet captures bidirectional dependencies more effectively than traditional transformers, offering enhanced understanding of context in text sequences.
    • Implementation: Integrated XLNet from Hugging Face Transformers library, fine-tuned on the Emotions dataset to explore its effectiveness in emotion classification tasks.

Each model was evaluated using standard metrics such as accuracy, precision, recall, and F1-score to assess its performance in predicting emotions from tweets.

xpressions's People

Contributors

ivkovicdanica avatar matealukiccc avatar

Watchers

 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.