Testy skadnikow i ilosci
This commit is contained in:
parent
0b9a15488c
commit
e2e447a601
@ -156,12 +156,9 @@ class DialogStateMonitor:
|
|||||||
new_order[slot.name] = [{"drink": value}]
|
new_order[slot.name] = [{"drink": value}]
|
||||||
|
|
||||||
elif slot.name in ["ingredient", "ingredient/neg"]:
|
elif slot.name in ["ingredient", "ingredient/neg"]:
|
||||||
if len(self.state['belief_state']['order']) != 0:
|
pizzas_list = new_order.get("pizza")
|
||||||
last_order = self.state['belief_state']['order'][-1]
|
if pizzas_list:
|
||||||
if last_order["name"] == "pizza":
|
pizzas_list[-1][slot.name].append(value)
|
||||||
last_order[slot.name].append(value)
|
|
||||||
elif last_order["name"] == "drink":
|
|
||||||
last_order[slot.name].append(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)
|
||||||
|
Loading…
Reference in New Issue
Block a user