aitech-sd-lab/modules/dialogue_state.py

31 lines
816 B
Python
Raw Normal View History

2022-05-23 21:07:01 +02:00
def default_state():
state = dict(user_action=[],
system_action=[],
belief_state={},
request_state={},
terminated=False,
history=[])
state['belief_state'] = {
2022-05-25 11:23:26 +02:00
"cinema": {
2022-05-28 14:18:38 +02:00
"book": {
"movie": "",
"task": "",
2022-05-28 14:18:38 +02:00
"date": "",
"hour": "",
"seat": "",
"row": ""
2022-05-25 11:23:26 +02:00
},
"semi": {
"name": "",
"e-mail": "",
"price": 0,
"quantity": 0,
"tickettype": "",
"payments": "",
2022-06-08 08:58:25 +02:00
"cancel_book_status": False,
"cancel_buy_status": False
2022-05-25 11:23:26 +02:00
}
2022-05-23 21:07:01 +02:00
}
}
return state