ConvLab-3 icon indicating copy to clipboard operation
ConvLab-3 copied to clipboard

DST for sgd dataset [BUG]

Open AtheerAlgherairy opened this issue 3 years ago • 5 comments

Trying to use DST for sgd dataset but I got the following error:

Screen Shot 1444-05-13 at 12 25 58 PM

Screen Shot 1444-05-13 at 12 26 12 PM

I am using (update) method in DST class similar to convlab-2..

AtheerAlgherairy avatar Dec 07 '22 09:12 AtheerAlgherairy

You need to call the init_session function first. see https://github.com/ConvLab/ConvLab-3/blob/master/convlab/base_models/t5/dst/dst.py for usage. The init_session will clear dialog history, which is needed when switch to/start a new session.

zqwerty avatar Dec 07 '22 10:12 zqwerty

BTW, please give a title for the issue to facilitate other users that may have similar question

zqwerty avatar Dec 07 '22 10:12 zqwerty

You could also refer to https://github.com/ConvLab/ConvLab-3/blob/d19e48a30abca679aef42865146c2d7bccce8369/convlab/dialog_agent/agent.py#L45

to find how to initialize and push new utterances into the history of the DST class.

zqwerty avatar Dec 07 '22 10:12 zqwerty

Thank you.. It works like this:

Screen Shot 1444-05-13 at 1 30 33 PM

So, this T5DST model doesn't need the output from nlu?

AtheerAlgherairy avatar Dec 07 '22 10:12 AtheerAlgherairy

Yes, it predicts state from utterances directly. however, the RL policy module need user dialog acts (nlu output)

zqwerty avatar Dec 07 '22 11:12 zqwerty