Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.16 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.16 KB

This repo contains the code for our work published in AAAI 2021:

Keyword-Guided Neural Conversational Model

The paper is available here

This repo is mainly adapted from https://github.com/squareRoot3/Target-Guided-Conversation.

Datasets

Preprocessing

  • Preprocess conversations and build word vocabulary.
  • Use TF-IDF-based keyword extraction techniques (based on here) to extract keywords from each utterance.
  • Build the keyword vocabulary.
  • Based on the word and keyword vocabularies, preprocess conceptnet and build the concept vocabulary.

Steps:

  1. Download the datasets.
  2. Run python train_keyword_prediction.py --config ./configs/keyword_prediction_config.json to train a keyword prediction model.
  3. Run python train_retrieval.py --config ./configs/retrieval_config.json to train a response retrieval model.

Note that this repo contains a portion of experimental code that is not used in the paper.