Skip to content

Sentiment Analysis of Amazon Book Reviews - A comparison of different ML models for classification of Amazon book reviews into positive and negative classes

Notifications You must be signed in to change notification settings

sinjoysaha/Amazon-Reviews-NLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Review Classification using NLP

GitHub contributors GitHub forks GitHub stars GitHub watchers GitHub issues GitHub followers LinkedIn Twitter

Table of Contents

About the Project

In this Classification Project, we use Natural Language Processing techniques and different Machine Learning models to classify Amazon book reviews into POSITIVE or NEGATIVE sentiments.

Project Image

Steps

  1. Bag of Words technique was used to vectorized the reviews using the CountVectorizer (binary only) and TfidfVectorizer (Term Frequency - Inverse Document Frequency).

  2. Since the smaller dataset was imbalanced, we use a bigger dataset and balance out the POSITIVEs and NEGATIVEs.

  3. The models that were compared are as follows:

    • Linear SVM
    • Decision Tree
    • Naives Bayes
    • Logistic Regression
  4. Further, GridSearchCV was used to find the best parameters for the Linear SVM model.

  5. The Linear SVM model with best parameters found using GridSearchCV is stored using the Pickle library for future use.

  6. In future, other models will be studied for finding best parameters of for each. An overall best performing model can then be found.

Built With

  • Jupyter Notebook
  • Scikit-learn
  • Pickle
  • Pandas
  • json

Fork the Repo and Contribute

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project (click on Fork in the top-left corner)
  2. Create your Feature Branch (git checkout -b feature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature)
  5. Open a Pull Request

Contact

Sinjoy Saha

About

Sentiment Analysis of Amazon Book Reviews - A comparison of different ML models for classification of Amazon book reviews into positive and negative classes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published