Skip to content

marvinzh/ConvLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DialogZone

This is a toolkit for developing task-oriented dialog system. We followed the conventional pipeline framework, where there are 4 seperate components: NLU, DST, Policy and NLG.

We offer the base class and some SOTA baseline models (coming soon) for each component. Specially, the NLU, DST and NLG models are trained individually, while the Policy is trained within a complete pipeline system in an RL-based manner.

  • NLU: Regex method, Seq2seq, JointNLU, ContextualNLU
  • DST: Rule, NBT, Sequicity
  • Policy: Rule, DQN, MDQN, HRL
  • NLG: Templated method, SC-LSTM, CA-LSTM

Environment

  • Trained NLG model can be downloaded here.
  • Trained NLU model can be downloaded here.
  • Trained S2S UserSim model can be downloaded here.
  • Trained MLST NLU model can be downloaded here. Unzip the downloaded file in the tasktk/modules/nlu/mlst directory.
  • Trained JointNLU model can be downloaded here. Unzip the downloaded file in the tasktk/modules/nlu/joint_nlu directory.
  • Trained SVM NLU model can be downloaded here. Unzip the downloaded file in the tasktk/modules/nlu/SVM/output_multiwoz directory.
  • Trained MDRG model can be downloaded here. Unzip the downloaded file in the data directory.

Document

To Developer

How to start

To run the code, you have to first download mdbt.tar.gz then extract it and move the mdbt directory under ./data . The mdbt directory includes the data and trained model required for building MDBT tracker.

Then, you can just run the ./run.py script to run the dialog on dialog-act level. Note that the MDBT model receives natural langauge utterances as input, so we used a trivial rule-based NLG to convert the user response DA into natural langauge format (see tasktk/nlg/template_nlg.py).

The outputs of system policy, MDBT and simulator are logged into ./session.txt, where the turns and sessions are seperated by separators for clarity.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 76.0%
  • OpenEdge ABL 22.6%
  • Other 1.4%