Poprawka buga
This commit is contained in:
parent
75fb0f873b
commit
d1108d9b8a
@ -147,6 +147,13 @@ class DialogStateMonitor:
|
|||||||
new_order[slot.name].append(value)
|
new_order[slot.name].append(value)
|
||||||
else:
|
else:
|
||||||
new_order[slot.name] = [value]
|
new_order[slot.name] = [value]
|
||||||
|
if slot.name == "drink":
|
||||||
|
if new_order.get("drink"):
|
||||||
|
new_order[slot.name].append(value)
|
||||||
|
else:
|
||||||
|
new_order[slot.name] = [value]
|
||||||
|
else:
|
||||||
|
new_order[slot.name] = value
|
||||||
if len(new_order) > 0:
|
if len(new_order) > 0:
|
||||||
self.state['belief_state']['order'].append(new_order)
|
self.state['belief_state']['order'].append(new_order)
|
||||||
self.complete_stage_if_valid('collect_food')
|
self.complete_stage_if_valid('collect_food')
|
||||||
|
Loading…
Reference in New Issue
Block a user