Skip to content

Sentiment analysis of Dell tweets using XLNet to classify emotions as positive, negative, or neutral, aiding strategic business adjustments based on customer feedback.

Notifications You must be signed in to change notification settings

AnnaTz/tweet-sentiment-classification

Repository files navigation

This project aims to perform sentiment analysis on tweets about Dell's products and services. Utilizing the advanced features of XLNet, we aim to accurately classify sentiments as positive, negative, or neutral. This kind of analysis is a crucial aspect of understanding customer feedback and adjusting business strategies accordingly.

Key Features

  • Data Preprocessing: Includes cleaning of tweets to remove noise like emojis, URLs, mentions, and non-ASCII characters.
  • Exploratory Data Analysis (EDA): Visualizes the dataset's characteristics, such as sentiment distribution, word and sentence lengths, common stopwords, named entity recognition, and part-of-speech tagging.
  • Deep Learning Model: Utilizes the pre-trained XLNet model for sentiment classification, with fine-tuning to adapt to our specific dataset.
  • Hyperparameter Tuning: Employs Ray Tune for optimizing model parameters, ensuring the best possible performance.
  • Evaluation: Assesses model accuracy, F1 scores, and provides a confusion matrix to understand prediction quality.

Getting Started

Prerequisites

To run this project, ensure you have the following installed:

  • Python 3.8 or newer
  • Relevant Python packages as listed in requirements.txt

Installation

To set up the project environment:

  1. Clone the repository to your local machine:
    git clone https://github.com/AnnaTz/tweet-sentiment-classification
  2. Install the required Python packages:
    pip install -r requirements.txt

Running the Project

Navigate to the project directory and launch the Jupyter notebook:

jupyter notebook sentiment_classification.ipynb

References

About

Sentiment analysis of Dell tweets using XLNet to classify emotions as positive, negative, or neutral, aiding strategic business adjustments based on customer feedback.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published