This repository contains the code for the paper
Augmenting Non-Collaborative Dialog Systems with Explicit Semantic and Strategic Dialog History Yiheng Zhou, Yulia Tsvetkov, Alan W Black and Zhou Yu
- Please see requirement.txt
This section provides step-by-step instrucitons on how to construct a FST described in the paper.
./finite_state_machine/wfst_train/persuasion/intent_wfst_persuasion_train is an example input file. Each line represents a sequence of dialog acts within one dialog session. They are separated by space.
Go to ./finite_state_machine/speech_tools and type "make" to compile necessary components for training. ./finite_state_machine/wfst_train/do_wfst_persuasion is the script to train FST. 1). Change WFST_BUILD and WFST_TRAIN accordingly. 2). Change line 10 to be your input file path 3). Change line 19 accordingly. 4). run the script ./finite_state_machine/wfst_train/do_wfst_persuasion
./wfst.py provides an interface that can read FST file, track the current state, and output state embedding.