From 7d2d6c2448de4a070fe78a9b102508f9c9b35aa5 Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Mon, 2 Aug 2021 12:06:46 +0200 Subject: [PATCH] fixed data being reset on padatious intents recognise --- jarvis/skills/intent_manager.py | 1 - 1 file changed, 1 deletion(-) diff --git a/jarvis/skills/intent_manager.py b/jarvis/skills/intent_manager.py index 2bd04d3..7f53641 100644 --- a/jarvis/skills/intent_manager.py +++ b/jarvis/skills/intent_manager.py @@ -118,7 +118,6 @@ def recognise(sentence, client_ip=None, client_port=None): # print(padatious_intents_container.calc_intents(sentence)) # DEBUG if result.conf >= 0.2: - data = dict() if isinstance(result.sent, list): data['utterance'] = " ".join( result.sent) # add the sentence (utterance) to the data given to the intent handler