Skip to content

elkablo/gnn-social-tripadvisor

Repository files navigation

Tripadvisor analysis and prediction using Graph Neural Networks

This repository contains source code and scraped data used in the study I. Mrázová and M. Behún: Graph Neural Networks for Hotel Recommendation and Quality Assessment, in: B. Brejová et al.: Proceedings of the 23rd Conference Information Technologies - Applications and Theory (ITAT 2023), Tatranské Matliare, Slovakia, September 22-26, CEUR Workshop Proceedings Vol-3498, 2023, pp. 67-75. and in the diploma thesis M. Behún: Graph neural networks and their application to social network analysis.

Dependency installation instructions

The following dependency installation instructions are applicable to Ubuntu and Ubuntu derived Linux distributions.

# first install git and pip
sudo apt-get install python3-pip git

# afterwards run these command to install Torch[cpu] and related dependencies
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
pip3 install pyg-lib torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.13.0+cpu.html
pip3 install networkx[default]
pip3 install umap-learn

# finally install pytorch_geometric_temporal with a needed fix from my repository
git clone https://blackhole.sk/~kabel/git/pytorch_geometric_temporal
cd pytorch_geometric_temporal
python3 setup.py build
python3 setup.py install --user

Tripadvisor scraped reviews

Here are GZIP compressed files containing the scraped Tripadvisor reviews used in the thesis. These contain 3,125,631 reviews of 3,260 U.S. hotels from 2,296,247 authors:

# after downloading, run the following command to compute the checksums
sha256sum authors.json.gz hotels.json.gz reviews.json.gz

# it should output
da741b8b3433aa80fc135912b5d7cdce4b79dfa18b04a7b1e32c56e6c3368c15  authors.json.gz
b205357a12ed61891ee53df96f3ff822087a04aeeadcb0df0fb3c35da1c464e7  hotels.json.gz
a09191f41184625dacdd44a901fd8e91894fee880c31c95f00a51f9dced7b495  reviews.json.gz

# to decompress, run
gunzip authors.json.gz
gunzip hotels.json.gz
gunzip reviews.json.gz

A map of scraped hotels, colored by detected Louvain clusters in bipartite projection

A map of scraped hotels, colored by detected Louvain clusters in bipartite projection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages