Code Monkey home page Code Monkey logo

tweet-emotion-recognition-using-tensorflow's Introduction

Tweet Emotion Recognition

This repository contains a Python notebook for performing emotion recognition on tweets using TensorFlow. The notebook includes steps for importing the data, tokenizing the tweets, preparing the data for training, building and training a Bidirectional LSTM model, evaluating the model's performance, and visualizing the results.

Installation

To run the notebook, you need to install the required libraries. You can install them via pip:

pip install nlp
pip install datasets

Task Explanations

Task 3: Importing Data

  1. Importing the Tweet Emotion dataset.
  2. Creating train, validation, and test sets.
  3. Extracting tweets and labels from the examples.

Task 4: Tokenizer

  1. Tokenizing the tweets.

Task 5: Padding and Truncating Sequences

  1. Checking the length of the tweets.
  2. Creating padded sequences.

Task 6: Preparing the Labels

  1. Creating classes to index and index to classes dictionaries.
  2. Converting text labels to numeric labels.

Task 7: Creating the Model

  1. Creating the model architecture.
  2. Compiling the model.

Task 8: Training the Model

  1. Preparing a validation set.
  2. Training the model.

Task 9: Evaluating the Model

  1. Visualizing training history.
  2. Preparing a test set.
  3. A look at individual predictions on the test set.
  4. A look at all predictions on the test set.

Usage

To run the notebook, simply open it in a Jupyter Notebook environment or any compatible platform.

License

This project is licensed under the MIT License.

tweet-emotion-recognition-using-tensorflow's People

Contributors

ahmadt198 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.