Dialogue Response Generation Using Completion of Omitted Predicate Arguments Based on Zero Anaphora Resolution
This repository provides the source code of following paper:
- Title: Dialogue Response Generation Using Completion of Omitted Predicate Arguments Based on Zero Anaphora Resolution.
- Conference: the 24th Meeting of the Special Interest Group on Discourse and Dialogue (SIGDIAL2023), Main Conference (Oral)
- DCZAR is a framework that explicitly completes omitted information in the dialogue history and generates responses from the completed dialogue history.
- The DCZAR framework consists of three models: a predicate-argument structure analysis (PAS) model, a dialogue completion (DC) model, and a response generation (RG) model.
- The PAS model analyzes the omitted arguments (zero pronouns) in the dialogue, and the DC model determines which arguments to complete and where to complete them and explicitly completes the omissions in the dialogue history.
- The RG model, trained by the complementary dialogue history and response pairs, generates a response.
- The PAS and RG models are constructed by fine-tuning the common pretrained model with a dataset corresponding to each task, while the DC model uses a pretrained model without fine-tuning.
- python 3.9
- poetry 1.6.0 or higher
- docker 20.10.15 or higher
- docker-compose 2.6.0 or higher
$ cd dczar
$ poetry install
$ git clone https://github.com/NVIDIA/apex
$ cd apex
$ pip install -v --disable-pip-version-check \
--no-cache-dir --global-option="--cpp_ext" \
--global-option="--cuda_ext" ./
Before building, place the files necessary to run MeCab and Cabocha in docker/lib
.
- Build
$ cd dczar $ docker-compose -f docker/docker-compose.yml up -d --build
- Enter the docker container (Interactive)
$ docker exec -it dczar sh $ poetry install
- Preprocessing the corpus
- Preraining
- Fine-tuning & evaluating PAS model
- Running DC model
- Fine-tuning & evaluating RG model
@inproceedings{ueyama-etal-2023-dialogue,
author = {Ayaka Ueyama and Yoshinobu Kano},
title = {Dialogue Response Generation Using Completion of Omitted Predicate Arguments Based on Zero Anaphora Resolution},
booktitle = {In Proceedings of the 24th Meeting of the Special Interest Group on Discourse and Dialogue (SIGDIAL2023)},
year = {2023}
}
This repository is built upon the following works: