A Python project that classifies Amazon product reviews as Positive, Negative or Neutral using TextBlob. Built as part of the CodeAlpha internship.
- Loads Amazon reviews from
amazon_reviews.csv - Takes the first 100 reviews for a quick run
- Calculates sentiment polarity with TextBlob (above 0 is Positive, below 0 is Negative, 0 is Neutral)
- Counts each sentiment and saves a bar chart
sentiment.py: sentiment analysis codeamazon_reviews.csv: review datasetsentiment_chart.png: saved bar chart
pip install pandas matplotlib textblob
python sentiment.py
Python, pandas, matplotlib, TextBlob
