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.
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 runstreamlit run restaurant-model-building.py
or - cd into the hotel folder, run
pip install -r requirements.txt
in your terminal and then runstreamlit run hotel-model-building.py
- cd into the restaurant folder, run
- Singh, H. (2006) The importance of customer satisfaction in relation to customer loyalty ..., The Importance of Customer Satisfaction in Relation to Customer Loyalty and Retention. Available at: https://www.van-haaften.nl/images/documents/pdf/The%20Importance%20of%20Customer%20Satisfaction%20in%20Relation%20to%20Customer%20Loyalty%20and%20Retention.pdf (Accessed: 15 October 2023).
- Nowak, A. (2022) The history of online reviews, Expert Reputation. Available at: https://expertreputation.com/the-history-of-online-reviews/#:~:text=The%20First%20Online%20Reviews,by%20Yellow%20Pages%20in%202001. (Accessed: 15 October 2023).
- Editor (2021) Sentiment analysis in Hotel Reviews: Developing a decision-making assistant for Travelers, AltexSoft. Available at: https://www.altexsoft.com/blog/sentiment-analysis-hotel-reviews/ (Accessed: 15 October 2023).
- Nwakanma, Cosmas & A.C, Ogbonna & Etus, Chukwuemeka & Nwifor, Emmanuella & Onyebuchi, Jennifer & Ugwueke, Esther. (2019). Predictive Analytics of Customer Sentiments towards Nigerian Hospitality Industry: Case study Approach.
- Nigerians spent n4.6 trillion eating out in 2019, says NBS (2020) TheCable. Available at: https://www.thecable.ng/nigerians-spent-n4-6-trillion-eating-out-in-2019-says-nbs (Accessed: 15 October 2023).
- Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text. Eighth International Conference on Weblogs and Social Media (ICWSM-14). Ann Arbor, MI, June 2014.
- 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.
- 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.
- Scrapping reviews from more sites. This will help give a better accurate overall sentiment.
- Training model in the Nigerian English context and on sarcasm.
We'd like to thank the AI Saturdays Lagos Organizing Team and the Instructors for the impactful classes!
- Daniel Otulagun
- Sarah Akinkunmi
- Olatunde Ogunboyejo
- Orevaoghene Ahia