All configuration is in params.py
. You should change use_cuda=True
if you want to use GPU.
make install
Simulated dialogs in JSON are generated with code here. Generate samepls and interpretion by running
cd data/simdial/
python read_simdial.py
First download the Ubuntu Chat Corpus from here. Then generate samples from the corpus by running
make dataset data_path=path/to/your/ubuntu/corpus
If you want to use GloVe, download it here.
python train_linear_vrnn.py
or
python train_tree_vrnn.py
python train_linear_vrnn.py --decode --ckpt_dir run1585003537 --ckpt_name vrnn_5.pt
or
python train_tree_vrnn.py --decode --ckpt_dir run1585003537 --ckpt_name vrnn_5.pt
python interpretion.py --ckpt_dir run1585003537 --ckpt_name vrnn_5.pt
python train_interpret.py
and to view the result
tensorboard --logdir /log/ckpt_dir/