Coder Social home page Coder Social logo

finalcapstone's Introduction

title
Capstone Project Documentation

Description of what the project is for

The sentiment analysis Python script sentiment_analysis.py performs sentiment analysis on a dataset of customer reviews from Amazon.com using natural language processing (NLP) techniques. The script utilises the spaCy library for text preprocessing and sentiment analysis, along with the TextBlob library for sentiment polarity scoring.

Table of Contents

Features

  • Sentiment Analysis: Analyses the sentiment of customer reviews to classify them as positive, negative, or neutral.
  • Text Preprocessing: Cleans and preprocesses the review text by removing stopwords and punctuation.
  • Efficient Processing: Processes large volumes of text data efficiently using spaCy's tokenisation and stop word removal capabilities.
  • Interpretable Results: Provides clear and interpretable sentiment analysis results, allowing users to understand the sentiment of each review easily.

Installation

  1. Clone or download the repository to your local machine.
  2. Install the required Python packages using pip:
    pip install pandas spacy textblob
    python -m spacy download en_core_web_md
    python -m textblob.download_corpora

Usage

  1. Ensure that the amazon_product_reviews.csv file containing the Amazon product reviews dataset is present in the same directory as the script.
  2. Run the script sentiment_analysis.py.
  3. The script will perform sentiment analysis on sample product reviews and display the results, including sentiment classification and similarity between reviews.

Sample Output

Sample Review 1: I thought it would be as big as small paper but turn out to be just like my palm. I think it is too small to read on it... not very comfortable as regular Kindle. Would definitely recommend a paperwhite instead.
Sentiment: Negative

Sample Review 2: This kindle is light and easy to use especially at the beach!!!
Sentiment: Positive

Similarity between Review 1 and Review 2: 0.7609522586736197

Credits

Developed by Elisha Patel

Data sourced from the kaggle dataset.

Contributing

Contributions are welcome! If you have any suggestions, feature requests, or bug reports, please open an issue or submit a pull request.

finalcapstone's People

Watchers

 avatar

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.