Code Monkey home page Code Monkey logo

emnlp2019_gcas's Introduction

Modeling Multi-Action Policy for Task-Oriented Dialogues

Code for our EMNLP 2019 paper "Modeling Multi-Action Policy for Task-Oriented Dialogues".

Problem to Solve

In most existing approaches, the agent predicts only one DM policy action per turn. This significantly limits the expressive power of the conversational agent and introduces unwanted turns of interactions that may challenge users' patience.

We propose a novel policy model based on a recurrent cell called gated Continue-Act-Slots (gCAS). It outputs multiple actions per turn (called multi-act) by generating a sequence of tuples and expanding agents' expressive power.

CAS decoder

The gated CAS cell contains three sequentially connected units for outputting continue, act, and slots respectively. gCAS cell

Environment

The code is tested on macOS 10.14.6 with Python 2.7.15(Anaconda), PyTorch 1.2.0, cPickle. We suggest make an anaconda environment for all packages.

We use the data from Microsoft Dialogue Challenge

It contains three domains: movie, restaurant, and taxi with dialog act annotated. We use their dialogue management code and knowledge base to obtain the state. The processed data are placed under data/ folder. If you use the data, please also cite Xiujun Li's papers.

training

python model.py -domain movie -network gcas -mode train #(default) train on cpu
python model.py -domain movie -network gcas -mode train -cfg cuda=True #train on gpu

if you want to train all domains, please consider to use the bash script bash train_all.sh

testing

For the movie domain,

python model.py -domain movie -network gcas -mode test

For all domains, bash test_all.sh

Citation

If you find this work useful, please cite as following.

@article{shu2019multiaction,
  title={Modeling Multi-Action Policy for Task-Oriented Dialogues},
  author={Shu, Lei and Xu, Hu and Liu, Bing and Molino, Piero},
  journal={arXiv preprint arXiv:1908.11546},
  year={2019}
}

emnlp2019_gcas's People

Contributors

leishu02 avatar w4nderlust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cuiqingyao xkaik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.