GithubHelp home page GithubHelp logo

sungjinl / ns-dial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shiquanyang/ns-dial

0.0 1.0 0.0 5.48 MB

An Interpretable Neuro-Symbolic Framework for Task-Oriented Dialogue Generation

License: MIT License

Python 97.07% Perl 2.93%

ns-dial's Introduction

NS-Dial

This is the code repository for the paper: An Interpretable Neuro-Symbolic Framework for Task-Oriented Dialogue Generation. ACL 2022.

Framework

Dependencies

  • Pytorch 1.0.0
  • cudatoolkit 10.0.130
  • cudnn 7.6.5
  • tqdm 4.54.1
  • numpy 1.19.2
  • python 3.6.10

Training

We created train.py to train the models. For SMD dataset, you can run:

python train.py -ds=kvr -bsz=8 -hdd=128 -lr=0.001 -dr=0.2 -evalp=10 -max_neg_cnt=5 -max_depth=3

For MultiWOZ 2.1 dataset, you can run:

python train.py -ds=multiwoz -bsz=8 -hdd=128 -lr=0.001 -dr=0.2 -evalp=10 -max_neg_cnt=5 -max_depth=3

While training, the model with the best validation results is stored. If you want to reuse a model, please add -path=path_name_model to the call. The model is evaluated by BLEU and Entity F1.

Testing

We created test.py to restore the checkpoints and test the models. For SMD dataset, you can run:

python test.py -path=<path_to_saved_model> -ds=kvr -lr=0.001 -dr=0.2 -max_depth=3

For MultiWOZ 2.1 dataset, you can run:

python test.py -path=<path_to_saved_model> -ds=multiwoz -lr=0.001 -dr=0.2 -max_depth=3

ns-dial's People

Contributors

shiquanyang 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.