Skip to content

Commit

Permalink
Change qa threshold from a constant to lower bound var.
Browse files Browse the repository at this point in the history
  • Loading branch information
zake7749 committed Dec 6, 2016
1 parent 9eaa79d commit b4645b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chatbot/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def listen(self, sentence, target=None, api_key=None, qa_threshold=35, qa_block_
# Assume that there are no intent in the sentence, consider this questions
# is qa again, but this time use a smaller threshold.
else:
if qa_sim > 60:
if qa_sim > qa_threshold:
return qa_response,None,None,None
else:
# This query has too low similarity for all matching methods.
Expand Down

0 comments on commit b4645b3

Please sign in to comment.