Spaces:
Runtime error
Runtime error
Greg Thompson
commited on
Commit
·
c57c360
1
Parent(s):
e7b3771
Fix data response for keyword matching with no match
Browse files- mathtext_fastapi/nlu.py +1 -1
mathtext_fastapi/nlu.py
CHANGED
@@ -121,7 +121,7 @@ def run_intent_classification(message_text):
|
|
121 |
>>> run_intent_classification("hardier")
|
122 |
{'type': 'intent', 'data': 'harder', 'confidence': 0.92}
|
123 |
"""
|
124 |
-
label = '
|
125 |
ratio = 0
|
126 |
nlu_response = {'type': 'intent', 'data': label, 'confidence': ratio}
|
127 |
keywords = [
|
|
|
121 |
>>> run_intent_classification("hardier")
|
122 |
{'type': 'intent', 'data': 'harder', 'confidence': 0.92}
|
123 |
"""
|
124 |
+
label = ''
|
125 |
ratio = 0
|
126 |
nlu_response = {'type': 'intent', 'data': label, 'confidence': ratio}
|
127 |
keywords = [
|