zhongpeixiang / CKC

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v3.0


Languages

Language:Python 100.0%