-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Answers Updating #1553
Comments
Hi @Aljumaili85, you mentioned that all of the correct answers exist in the database when you view it. Are there incorrect answers in the database as well? It is possible that your chat bot is selecting a close match that has the incorrect response associated with it still. This may be an improvement that could be made to ChatterBot. May I ask, in cases like this how would you like the chat bot to select the correct response? |
No, actually I have one and only one answer for each question, but it seems that the BestMatch is not selecting the right matched question , but at the same time BestMatch works good with the database of dialog corpus |
Interesting, I'll mark this as a possible bug then. I'm not aware of any issues currently effecting how the BestMatch adapter selects responses, but I'd happy to work on a solution if the problem can be identified. |
I have tried this code but got an error **
** Can you please help me how to get rid of it. |
It a problem of incompatibility of the given code and the installed ChatterBot version. try to install the latest ChatterBot and try again. meanwhile i will try to see whats wrong |
Hi @Aljumaili85 Thanks for the prompt response. Upgraded the chatterbot version.
|
Hi there,
previously I faced a problem of updating the ChatterBot answers when its could not find the right one for a given question, my chatterbot was trained using data from the ChatterBot dialog corpus .
Then I decide to create a chatterbot database from scratch by creating empty database and inserting the question and the the answer one by one using the example "learning_new_response.py".
the application works like this:
type something to begin ...
me: hi
chatterbot: Is "hi" a coherent response to "hi"?
me: no
chatterbot: please input the correct one
me: Hello Dear!
chatterbot: Responses added to bot!
.............................. and so on until I enter, let say 5 questions and answers. Then if I choose a pre-definde question it will choose a wrong answer.
for example if I write "hi" the chatterbot will respond : Is "I am good thank you." a coherent response to "hi"?
I wondering what is going wrong here! ?
by the way, if I open the created database I can find all the questions with the right answers but I don't know why it chooses a different answer even when I use the BestMatch as logic adapter.
bellow is my code that has been used:
The text was updated successfully, but these errors were encountered: