Code Monkey home page Code Monkey logo

daml's Introduction

DAML

Source code for the ACL 2019 paper entitled "Domain Adaptive Dialog Generation via Meta Learning" by Kun Qian and Zhou Yu https://arxiv.org/abs/1906.03520

@article{qian2019domain,
  title={Domain Adaptive Dialog Generation via Meta Learning},
  author={Qian, Kun and Yu, Zhou},
  journal={arXiv preprint arXiv:1906.03520},
  year={2019}
}

Simulated Data Generation

Please download the code here: https://github.com/qbetterk/SimDial

git clone https://github.com/qbetterk/SimDial.git
cd SimDial
bash run.sh

This generate train/dev/test data (1500 dialogs in each domain) and adaptation data (9 dialogs in each domain). The size of data can be modified by argument "size" of script run.sh

Training with default parameters

python model.py

(optional: configuring hyperparameters with cmdline)

python model.py -mode train_maml -model tsdf-camrest -cfg lr=0.003 batch_size=32

Testing

python model.py -mode test_maml -model tsdf-camrest

or test on new domains (e.g. movie domain):

bash run_movie.sh

Before running

  1. Install required python packages. We used pytorch 0.3.0 and python 3.6 under Linux operating system.
pip install -r requirements.txt
  1. Make directories under PROJECT_ROOT.
mkdir vocab
mkdir log
mkdir results
mkdir models
mkdir sheets
  1. Download pretrained Glove word vectors and place them in PROJECT_ROOT/data/glove.

daml's People

Contributors

aucson avatar knmnyn avatar lwqlwq avatar qbetterk avatar shizhediao avatar

Stargazers

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

Watchers

 avatar

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.