Skip to content
Snippets Groups Projects
Commit c2c24b42 authored by liangrz's avatar liangrz Committed by zhuqi
Browse files

fix the policy training bug

parent c673cb8c
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ class Environment():
self.evaluator.add_sys_da(self.usr.get_in_da())
self.evaluator.add_usr_da(self.usr.get_out_da())
dialog_act = self.sys_nlu.predict(observation) if self.sys_nlu else observation
self.sys_dst.state['user_action'] = dialog_act
state = self.sys_dst.update(dialog_act)
if self.evaluator:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment