gunthercox / ChatterBot

ChatterBot is a machine learning, conversational dialog engine for creating chat bots
https://chatterbot.readthedocs.io
BSD 3-Clause "New" or "Revised" License
14.03k stars 4.44k forks source link

chatterbot.logic.BestMatch not working properly. #1969

Open kramit912 opened 4 years ago

kramit912 commented 4 years ago

'import_path': 'chatterbot.logic.BestMatch', 'default_response': 'I am sorry, but I do not understand.', 'maximum_similarity_threshold': 0.90

Response i am getting :

GET /get?msg=f HTTP/1.1" 200 - INFO:chatterbot.chatterbot:Beginning search for close text match INFO:chatterbot.chatterbot:Processing search results INFO:chatterbot.chatterbot:Similar text found: Artificial Intelligence is the branch of engineering and science devoted to constructing machines that think. 0.02 INFO:chatterbot.chatterbot:Similar text found: The thing you're using to talk to me is a computer. 0.04 INFO:chatterbot.chatterbot:Similar text found: You know, the big iron! 0.08 INFO:chatterbot.chatterbot:Similar text found: bring omlet 0.15 INFO:chatterbot.chatterbot:Similar text found: efgh 0.4 INFO:chatterbot.chatterbot:Using "Artificial Intelligence is the branch of engineering and science devoted to constructing machines that think." as a close match to "G" with a confidence of 0.02 INFO:chatterbot.chatterbot:Selecting response from 1 optimal responses. INFO:chatterbot.response_selection:Selecting first response from list of 1 options. INFO:chatterbot.chatterbot:Response selected. Using "What is AI?" INFO:chatterbot.chatterbot:BestMatch selected "What is AI?" as a response with a confidence of 0.02 @gunthercox

JahleelAbraham commented 4 years ago

I am having the same issue. Every time the bot returns with 'What is AI?'. Is this meant to happen?