In the following notebook the TripAdvisor dataset with hotel reviews will be analysed. The idea is to mine the opinion of the hotel stay from customer reviews. Latent Dirichlet Allocation (LDA) is used to cluster the reviews in topics and afterwards Rapid Keyword Extraction to provide more meaningful names for the clusters.
- Preprocess the dataset
- Find optimal model
- Visualization
- Build Dash web app
The relevant files is LDA.ipynb notebook and the corresponding modules.
To work with the project the following technologies need to be installed:
- Jupyter Notebook
To run the code successfully in the notebook the following packages need to be installed with the pip install command: The necessary dependencies can be installed with the requirements.txt and the command pip install -r requirements.txt
The data is from Kaggle and can be found under the following link:
https://www.kaggle.com/andrewmvd/trip-advisor-hotel-reviews
The procedure is outlined in the LDA.ipynb with links to the respective chapters.
- Prepare data preprocessing
- Find context to use (bi_gram)
- Find model parameters and number of topics
- Visualization
- Build Dash app
- Simon Unterbusch