Skip to content

xiaoruiyliu/Hotel-Review-Sentiment-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

DigHum101Final: Hotel Review Analysis

This is my final digital humanities project for DigHum101.

alt text

Look at this nice hotel in Hawaii... surely it has good reviews, right? Credit: gohawaii.com

Abstract:

Reviews are rather fickle formations of text. Not only are they deeply independent, reflecting the writer's personal experience, but they also reflect the writer's expectations versus reality rating. A review that sounds positive might receive a low rating simply because the reviewer had blown-up expectations.

This project is an analysis of a hotel review dataset provided by Kaggle. The data has a lot of entries (~35000) so I was interested in seeing how these methods would perform on a large dataset. The proprietary mission was to use gensim topic modeling and TFID vectorizing to create a classifier to play around with. There were a couple of interests that were explored.

Some initial preprocessing and analysis were done to understand various aspects of the data like the location of all the hotels and the most used words in the reviews. Then, a gensim topic model is created to capture some of the topics (or non-topics) that may be seen in the reviews. While not all the topics are too interesting, some of them are surprisingly intuitive, like topics about service, cleanliness, and location. Finally, a classifier is created. The user is then able to input various reviews and see how they classify, creating an interactive moment. Some questions that will be answered are: Are there certain topics that hotel reviewers like to mention and group together? Will the classifier be able to, with some accuracy, predict the already rated reviews? What keywords are most associated with having a positive and negative review, are there any curveballs?

About

This is my final digital humanities project for DigHum101.

Resources

Stars

Watchers

Forks

Packages

No packages published