fixed data being reset on padatious intents recognise
This commit is contained in:
parent
6739835cdc
commit
7d2d6c2448
@ -118,7 +118,6 @@ def recognise(sentence, client_ip=None, client_port=None):
|
|||||||
# print(padatious_intents_container.calc_intents(sentence)) # DEBUG
|
# print(padatious_intents_container.calc_intents(sentence)) # DEBUG
|
||||||
|
|
||||||
if result.conf >= 0.2:
|
if result.conf >= 0.2:
|
||||||
data = dict()
|
|
||||||
if isinstance(result.sent, list):
|
if isinstance(result.sent, list):
|
||||||
data['utterance'] = " ".join(
|
data['utterance'] = " ".join(
|
||||||
result.sent) # add the sentence (utterance) to the data given to the intent handler
|
result.sent) # add the sentence (utterance) to the data given to the intent handler
|
||||||
|
Reference in New Issue
Block a user