This is a pytorch implementation of Seq2Seq model for dialogue generation.
- Python>=3.6
- PyTorch>=1.0
- tqdm
- numpy
- nltk
- scikit-learn
The dataset can be downloaded from 2019 Language and Intelligence Challenge, we just put example train data under the folder ./data/resource
.
Put the data provided by the organizer under the data folder and rename them train/dev/test.txt:
./data/resource/train.txt
./data/resource/dev.txt
./data/resource/test.txt
Process the data with the following commands:
bash process_data.sh
Train model with the following commands:
bash run_train.sh
Test model with the following commands:
bash run_test.sh
[1] https://github.com/baidu/knowledge-driven-dialogue/tree/master/generative_pt