Skip to content

This project aims to analyze the reviews of hotels and restaurants in Nigeria to determine customer sentiment

Notifications You must be signed in to change notification settings

AISaturdaysLagos/Cohort8-Kapwepwe

 
 

Repository files navigation

ANALYSING REVIEWS OF HOTELS AND RESTAURANTS IN NIGERIA TO DETERMINE CUSTOMER SENTIMENT

Project description

Choosing hotels and restaurants is a time-consuming process, often involving weeks of deliberation. To make informed decisions, prospective guests increasingly rely on online reviews, which sometimes contain huge volume of comments - some of which may be manipulated. Our goal is to empower Nigerians in making better informed choices and help restaurants and hotels improve their services by leveraging guest feedback. This study's potential extends to diverse areas within the hospitality industry, such as tourism, travel, recreation, and entertainment.

Check the deployed restaurant sentiment analyzer model here and the hotel sentiment analyzer model here.

Project presentation slides can be found here.

Table of Contents

Getting Started

Step-by-step instructions on how to install and set up the project

  • Fork the repo and download to your system.
  • In your working directory, you can
    • cd into the restaurant folder, run pip install -r requirements.txt in your terminal and then run streamlit run restaurant-model-building.py or
    • cd into the hotel folder, run pip install -r requirements.txt in your terminal and then run streamlit run hotel-model-building.py

Resources that inspired the project

Requirements:

  • Data Sourcing: Data was scraped from TripAdvisor - mainly restaurants and hotels in Lagos, Nigeria.
  • Data Cleaning and Prep: Data was labelled and cleaned using Excel and Pandas to remove noise or meaningless data that could affect the accuracy of the model.
  • Modeling: The data underwent classification through the application of sentiment analysis with the VADER (Valence Aware Dictionary and sEntiment Reasoner) package, which is a sentiment analysis tool tuned to social media language.
  • Model Deployment : The model was deployed using Streamlit for use by everyone particularly Nigerians.
  • Requirements.txt: A file for all dependecies required. There's one in the Restaurants folder and another in the Hotels folder.

Challenges faced:

  • Scraping reviews from Google. There are more restaurants reviewed with Google than TripAdvisor and also more people reviewing on Google, since TripAdvisor needs creating an account. This limited our scope to just TripAdvisor.
  • The sentiment analysis seemed more accurate with the review titles, because some of the review text reviews came off as sarcastic. However, we analysed just the text
  • VADER sentiment does not accurately detect sarcasm in Nigerian English as some of the obviously negative titles with sarcastic review texts were rated positive.
  • Deploying with Streamlit. Worked fine on local machine and then gave many issues during deployment.

Potential work:

  • Scrapping reviews from more sites. This will help give a better accurate overall sentiment.
  • Training model in the Nigerian English context and on sarcasm.

Acknowledgments

We'd like to thank the AI Saturdays Lagos Organizing Team and the Instructors for the impactful classes!

Contributors

  • Daniel Otulagun
  • Sarah Akinkunmi
  • Olatunde Ogunboyejo

Mentor

  • Orevaoghene Ahia

Contact

About

This project aims to analyze the reviews of hotels and restaurants in Nigeria to determine customer sentiment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 98.0%
  • Python 2.0%