forked from s151636/Generic_DialogSystem
Merge branch 'master' of https://git.wmi.amu.edu.pl/s151636/Generic_DialogSystem
This commit is contained in:
commit
221d442609
@ -38,6 +38,9 @@ class DST():
|
|||||||
if slot not in self.state['request_state'][domain]:
|
if slot not in self.state['request_state'][domain]:
|
||||||
self.state['request_state'][domain][slot] = 0
|
self.state['request_state'][domain][slot] = 0
|
||||||
|
|
||||||
|
elif intent == 'hello':
|
||||||
|
pass
|
||||||
|
|
||||||
self.state['user_act'] = user_act
|
self.state['user_act'] = user_act
|
||||||
return self.state
|
return self.state
|
||||||
|
|
||||||
@ -220,10 +223,11 @@ def predict(utterance):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
print(get_dialog_act(matched[0]))
|
print(get_dialog_act(matched[0]))
|
||||||
|
get_dialog_act(matched[0])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return matched
|
return get_dialog_act(matched[0])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user