Skip to content

A sentiment analysis project using Naive Bayes in Python. It shows how to classify text as positive, negative, or neutral.

License

Notifications You must be signed in to change notification settings

niladrridas/sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment Analysis with Naive Bayes Classifier

Python scikit-learn pandas

Overview

This project demonstrates sentiment analysis using a Naive Bayes classifier to classify text data into positive, negative, or neutral sentiment categories. The classifier is trained on labeled text data and then used to predict the sentiment of new text samples.

Technology Used

  • Python
  • scikit-learn
  • pandas

Tools

  • Jupyter Notebook
  • Git

Installation

  1. Clone the repository:
    git clone https://github.com/niladrridas/sentiment-analysis-naive-bayes.git
    
  2. Navigate to the project directory:
    cd sentiment-analysis
    
  3. Install the required Python packages:
    pip install -r requirements.txt
    

Usage

  1. Open the Jupyter Notebook:
    jupyter notebook Sentiment_Analysis.ipynb
    
  2. Execute the cells in the notebook to load the dataset, preprocess the text data, train the Naive Bayes classifier, and evaluate its performance.

Conclusion

The project demonstrates how to perform sentiment analysis using a simple Naive Bayes classifier. By training the classifier on labeled text data, it can accurately predict the sentiment of new text samples. This approach can be further improved by using more sophisticated models and larger datasets.

About

A sentiment analysis project using Naive Bayes in Python. It shows how to classify text as positive, negative, or neutral.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages