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.07k stars 4.44k forks source link

Issue with Bot Response #759

Closed telkomops closed 7 years ago

telkomops commented 7 years ago
5/5/2017 10:09:44 AM    AdamAmith   SmithB  No. Atlantic City
5/5/2017 10:10:03 AM    AdamAmith   SmithB  It started last wednesday 
5/5/2017 10:11:28 AM    SmithB  AdamAmith   Ok.Let me see what i can do.

I have a chat history as part of 1 conversation which was trained , now the in the statements collection it was established as below in the mongodb collection

No. Atlantic City -->in reponse to -->"are you in texas" 
It started last wednesday -->in reponse to -->"No. Atlantic City" 
"Ok.Let me see what i can do." --> in response to --> "It started last wednesday"

i tested this scenario in the terminal example. when typed

"No. atlantic City" , Bot Responded with "It Started Last Wednesday"

Ideally it should be"Ok. Let me see what i can do", as the same user has typed "it started last wednesday" as well and logically the next message to the user is "Ok, let me see what i can do"

Any pointers on how to resolve this ?

Cosmos19 commented 7 years ago

as far as i know. If you implement chatbot.set_trainer(ListTrainer) it will look for sequential way. Even i have doubt how th AI is actually working in this chatterbot. Still i couldnt find any answer related to that. I have checked chatterbot docs too.

telkomops commented 7 years ago

From my understanding, when you ask a specific question, it takes all distinct, replies_to and tried to find the nearest or similar using , by default, Levenshtein_distance. So in my case, since i said , "No.Atlantic City" it found the match and it then returned "It started last wednesday" , however i feel that , logic should ignore sequence of conversations from same user. When finding the replies_to, the sequence of chats from the same user should be ignored or handled differently.

gunthercox commented 7 years ago

@telkomops I closed this issue off because I thought it had been resolved. My apologies if this was a mistake. Are you still encountering this issue?

telkomops commented 7 years ago

@gunthercox , how do i handle such scenarios?your guidance in this is much appreciated. my bot is repeating what the user a said in sequence to a question asked by another user. All my conversations are 1 on 1 conversations.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.