The code implementation for the paper:
Lei Zheng, Vahid Noroozi, and Philip S Yu. 2017. Joint deep modeling of users and items using reviews for recommendation. In WSDM. ACM, 425-434.
- python 3.8
- pytorch 1.70
You need to prepare the following documents:
- dataset(
data/Digital_Music_5.json.gz
)
Download from https://jmcauley.ucsd.edu/data/amazon (Choose Digital Music)
Preprocess origin dataset in json format to train.csv,valid.csv and test.csv.
python preprocess.py
- Word Embedding(
embedding/glove.6B.50d.txt
)
Download from https://nlp.stanford.edu/projects/glove
Train and evaluate the model:
python main.py