Skip to content

πŸ€– A model that can classify the sentiment of text (e.g., positive, negative, neutral)

Notifications You must be signed in to change notification settings

reecebaileyy/Sentiment-Analysis-for-Text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 IMDb Sentiment Analysis 🌟

Dive into the world of movie reviews and analyze sentiments using Python! πŸŽ₯🍿

πŸ“Œ Introduction

This repository contains a Python-based Sentiment Analysis tool which classifies IMDb movie reviews into positive (πŸ‘) and negative (πŸ‘Ž) sentiments. Whether you're a movie buff, a data enthusiast, or someone who just loves playing with texts, this tool is for you!

πŸ“‚ Structure

.
β”œβ”€β”€ IMDB
β”‚   β”œβ”€β”€ Train.csv
β”‚   β”œβ”€β”€ Valid.csv
β”‚   β”œβ”€β”€ Test.csv
└── text_analysis.py

πŸš€ Getting Started

πŸ›  Prerequisites

  • Make sure you have Python3 installed:
python3 --version

⬇ Installation

  1. Clone this repository:
git clone [(https://github.com/reecebaileyy/Sentiment-Analysis-for-Text.git)]
cd Sentiment-Analysis-for-Text
  1. Install required libraries:
pip install pandas numpy matplotlib nltk textblob scikit-learn wordcloud

πŸƒ Running the Tool

python3 text_analysis.py

πŸ“Š Outputs

  • Displayed filenames in the IMDB folder.
  • Pie chart πŸ₯§ showing label distribution.
  • Word clouds ☁️ for positive and negative reviews.
  • Performance metrics πŸ“ˆ of the model on validation and test datasets.

✨ Future Updates

  • Integrate more advanced NLP models for better accuracy.
  • Add a GUI interface.
  • Allow custom reviews for prediction.

🀝 Contribution

Feel free to fork this project, raise issues, and submit Pull Requests.

πŸ™Œ Acknowledgements IMDb for the dataset. Textblob and NLTK for processing tools.

About

πŸ€– A model that can classify the sentiment of text (e.g., positive, negative, neutral)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages