Skip to content

zhongpeixiang/CKC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This repo contains the code for our work in AAAI 2021: Keyword-Guided Neural Conversational Model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages