Fixed grammar and debug lines

This commit is contained in:
Mathieu B 2021-07-29 23:29:02 +02:00
parent d04da4da84
commit d216760cec

View File

@ -75,6 +75,7 @@ def recognise(sentence):
if len(intents_handlers_padatious) > 0: if len(intents_handlers_padatious) > 0:
result = padatious_intents_container.calc_intent(sentence) result = padatious_intents_container.calc_intent(sentence)
# print(result) # DEBUG # print(result) # DEBUG
# print(padatious_intents_container.calc_intents(sentence)) # DEBUG
if result.conf >= 0.2: if result.conf >= 0.2:
data = dict() data = dict()
@ -86,4 +87,4 @@ def recognise(sentence):
data.update(result.matches) # adding the matches from padatious to the data data.update(result.matches) # adding the matches from padatious to the data
handle(result.name, data) handle(result.name, data)
else: else:
print("No match... (Padatious") print("No match... (Padatious)")