GithubHelp home page GithubHelp logo

amri-tah / amazon-reviews-sentiment-analysis Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 1.1 MB

This project focuses on sentiment analysis of Amazon product reviews using machine learning and natural language processing techniques. ๐Ÿ’ฌ๐Ÿ”๐Ÿ“ˆ

Home Page: https://amazon-reviews-sentiment-analysis.streamlit.app/

License: MIT License

Python 98.55% OpenEdge ABL 1.45%
amazon-reviews classification logistic-regression reviews sentiment-analysis support-vector-machines svm text-classification

amazon-reviews-sentiment-analysis's Introduction

Sentiment Analysis of Amazon Reviews ๐Ÿ›’๐Ÿ“๐Ÿ“Š

Overview

This project focuses on sentiment analysis using machine learning and natural language processing techniques. The goal is to develop a Streamlit app capable of analyzing sentiments in various scenarios, including single-line reviews, multiple reviews from CSV files, and product reviews from Amazon URLs.

Dataset Used

The Amazon reviews full score dataset is constructed by randomly taking 6,00,000 training samples and 1,30,000 testing samples for each review score from 1 to 5. In total there are 30,00,000 training samples and 6,50,000 testing samples.

Kaggle Link to the Dataset

Project Structure

  • notebooks: Contains Jupyter notebooks with exploratory data analysis and model development.
  • test files: Contains test files to test out sentiment analysis for multiple reviews.
  • .streamlit: Contains the configuration file for the streamlit app's theme
  • models.p: Stores serialized models for sentiment analysis.
  • review_analyzer.py: Houses the Streamlit app code for interactive sentiment analysis.
  • reviewscrapper.py: Includes Python scripts for web scraping reviews for a certain URL.
  • requirements.txt: Lists the project dependencies for reproducibility.

Setup

  1. Clone the repository:

    git clone https://github.com/amri-tah/Amazon-Reviews-Sentiment-Analysis.git
  2. Navigate to the project directory:

    cd Amazon-Reviews-Sentiment-Analysis
  3. Install dependencies:

    pip install -r requirements.txt
  4. Open terminal and run the Streamlit app:

    streamlit run review_analyzer.py

Usage

  1. Explore and run Jupyter notebook B8_Amazon.ipynb in the notebooks folder for data analysis and model development.

  2. Execute Python scripts in the reviewscrapper.py for web scraping.

  3. Run the Streamlit app for interactive sentiment analysis:

    streamlit run review_analyzer.py

Screenshots

Streamlit App:

Single Reviews:

Product URL Reviews:

Multi Review:

amazon-reviews-sentiment-analysis's People

Contributors

amri-tah avatar manasha-1204 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

hammadsaqibdev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.