KBRD

arXiv

Towards Knowledge-Based Recommender Dialog System.
Qibin Chen, Junyang Lin, Yichang Zhang, Ming Ding, Yukuo Cen, Hongxia Yang, Jie Tang.
In EMNLP-IJCNLP 2019

Prerequisites

Getting Started

Installation

Clone this repo.

git clone https://github.com/THUDM/KBRD
cd KBRD

Please install dependencies by

pip install -r requirements.txt

Dataset

Training

To train the recommender part, run:

bash scripts/both.sh <num_exps> <gpu_id>
bash scripts/baseline.sh <num_exps> <gpu_id>

To train the dialog part, run:

bash scripts/t2t_rec_rgcn.sh <num_exps> <gpu_id>

Logging

TensorBoard logs and models will be saved in saved/ folder.

Evaluation

If you have difficulties to get things working in the above steps, please let us know.

Cite

Please cite our paper if you use this code in your own work:

@article{chen2019towards,
  title={Towards Knowledge-Based Recommender Dialog System},
  author={Chen, Qibin and Lin, Junyang and Zhang, Yichang and Ding, Ming and Cen, Yukuo and Yang, Hongxia and Tang, Jie},
  journal={arXiv preprint arXiv:1908.05391},
  year={2019}
}