Spaces:
Runtime error
Runtime error
Greg Thompson
commited on
Commit
•
36bf77a
1
Parent(s):
0be28d8
Add logging to keyword recognition nlu
Browse files- mathtext_fastapi/nlu.py +1 -0
mathtext_fastapi/nlu.py
CHANGED
@@ -149,6 +149,7 @@ def evaluate_message_with_nlu(message_data):
|
|
149 |
# Run intent classification only for keywords
|
150 |
intent_api_response = run_intent_classification(message_text)
|
151 |
if intent_api_response['data']:
|
|
|
152 |
return intent_api_response
|
153 |
|
154 |
number_api_resp = text2int(message_text.lower())
|
|
|
149 |
# Run intent classification only for keywords
|
150 |
intent_api_response = run_intent_classification(message_text)
|
151 |
if intent_api_response['data']:
|
152 |
+
prepare_message_data_for_logging(message_data, nlu_response)
|
153 |
return intent_api_response
|
154 |
|
155 |
number_api_resp = text2int(message_text.lower())
|