From 1630edf11974ec56b6bad32de0a49c25085486af Mon Sep 17 00:00:00 2001 From: eugene Date: Tue, 13 Jun 2023 15:05:47 +0200 Subject: [PATCH] update system2.py --- system2.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system2.py b/system2.py index 3d32c42..e85bcbd 100644 --- a/system2.py +++ b/system2.py @@ -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])