Skip to content

About

This project aims to perform sentiment analysis on Twitter data using a Logistic Regression model built from scratch.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Sentiment-Analysis-Twitter-LG

Overview

This project aims to perform sentiment analysis on Twitter data using a Logistic Regression model built from scratch. The goal is to classify the sentiment of tweets as positive or negative.

Data

The project uses the twitter_samples dataset provided by nltk.corpus. The dataset includes a collection of positive and negative tweets used for training and evaluating the sentiment analysis model.

Model

A Logistic Regression model is implemented from scratch to classify the sentiment of the tweets. The model is trained using the preprocessed tweet data and then used to predict the sentiment of new tweets.

Usage

  • Data Preparation: Ensure you have the nltk library installed. Download the twitter_samples dataset from nltk.corpus using the following code:
    import nltk
    nltk.download('twitter_samples')
    nltk.download('stopwords')
  • Model Training: Run the provided Jupyter notebook to preprocess the data and train the Logistic Regression model.
  • Prediction: Use the trained model to predict the sentiment of new tweets.
  • Model Evaluation: Evaluate the performance of the model using metrics such as accuracy.

Results

The project aims to achieve accurate sentiment classification of tweets. The results include performance metrics and test examples to evaluate the model's performance.

Contributor

Unnati Agarwal

About

This project aims to perform sentiment analysis on Twitter data using a Logistic Regression model built from scratch.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages