aitech-sd-lab/modules/dialogue_state.py

31 lines
808 B
Python

def default_state():
state = dict(user_action=[],
system_action=[],
belief_state={},
request_state={},
terminated=False,
history=[])
state['belief_state'] = {
"cinema": {
"book": {
"movie": "",
"task": "",
"date": "",
"hour": "",
"seat": "",
"row": ""
},
"semi": {
"name": "",
"e-mail": "",
"price": 0,
"quantity": 0,
"tickettype": "",
"payments": "",
"cancel_book_status":"",
"cancel_buy_status":""
}
}
}
return state