Coder Social home page Coder Social logo

hs2dg-dst's Introduction

HS2DG-DST

This paper/code introduces the Multi-Domain Dialogue State Tracking via Dual Dynamic Graph with Hierarchical Slot Selector(HS2DG-DST)

The overview of HS2DG-DST: HS2DG-DST

Setting

You can use 0ysDST.yaml to import environment setting I used. Or get setting with code below.

# conda activate 0ysDST # python=3.8

conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch
pip install transformers[sentencepiece]==4.24.0
pip install setproctitle

The pre-trained model we used is downloaded from huggingface

  • Download the albert-base-v2 pre-training model, included config.json pytorch_model.bin spiece.model

  • Put config.json pytorch_model.bin spiece.model into the pretrained_models/albert_large folder

Dataset

The schema/ontology is already in data folder. And you can download the dataset from https://github.com/budzianowski/multiwoz

preprocessed version

Thanks to guo, I used their preprocessed dataset.

Train & Evaluation

Before training, make sure you have prepared all input files(data/schema.json, data/train_dials.json, data/dev_dials.json, data/dev_dials.json) and pretrained models(pretrained_models/).

The train and evaluation code below.

$ conda activate 0ysDST

$ nohup ./train_model.sh > out/train_.out &
$ nohup ./eval_model.sh > out/eval_.out &

All model checkpoints will be saved to ./saved_models/.

hs2dg-dst's People

Contributors

0ys avatar

Stargazers

 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.