Skip to content
Snippets Groups Projects
Commit 28c01810 authored by Christian Geishauser's avatar Christian Geishauser
Browse files

Solving reference issue in state

parent af67d123
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Created on Wed Jul 17 14:27:34 2019
"""
import pdb
from copy import deepcopy
class Environment():
......@@ -47,6 +48,7 @@ class Environment():
observation) if self.sys_nlu else observation
self.sys_dst.state['user_action'] = dialog_act
state = self.sys_dst.update(dialog_act)
state = deepcopy(state)
dialog_act = self.sys_dst.state['user_action']
state['history'].append(["sys", model_response])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment