update system2.py

This commit is contained in:
eugene 2023-06-13 15:05:47 +02:00
parent f7341e3123
commit 1630edf119

View File

@ -37,6 +37,9 @@ class DST():
self.state['request_state'][domain] = {}
if slot not in self.state['request_state'][domain]:
self.state['request_state'][domain][slot] = 0
elif intent == 'hello':
pass
self.state['user_act'] = user_act
return self.state
@ -220,10 +223,11 @@ def predict(utterance):
try:
print(get_dialog_act(matched[0]))
get_dialog_act(matched[0])
except:
pass
return matched
return get_dialog_act(matched[0])