对话系统实现

问题:

代码学习:

https://github.com/shawnwun/NNDIAL
https://github.com/MiuLab/DDQ

* The encoder modules contain:
- LSTM encoder      : an LSTM network that encodes the user utterance.
- RNN+CNN tracker   : a set of slot trackers that keep track of each slot/value pair across turns.
- DB operator       : a discrete database accessing component.

* The decoder modules contain:
- Policy network    : a decision-making module that produces the conditional vector for decoding.
- LSTM decoder      : an LSTM network that generates the system response.

构架:
在这里插入图片描述
data的基本形式:
在这里插入图片描述
在这里插入图片描述
DB:

输入的是:
输出的是:

训练过程:

https://github.com/shawnwun/NNDIAL/blob/master/nn/nnsds.py
有RL的具体训练步骤,可以看到reward是如何定义的。

猜你喜欢

转载自blog.csdn.net/yagreenhand/article/details/88669645
今日推荐