-
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
which dialogue algorithm is adopted in this project? #64
Comments
ChatterBot currently supports two different dialogue algorithms. The first is the closest match algorithm that determines the similarity between the statement provided by the user and a set of known statements. For example, based on the sample input you provided, there is a 65% similarity between The second is the closest meaning algorithm. This algorithm uses the wordnet functionality of nltk to determine the similarity of two statements based on the path similarity between each token in each statement. The sum of the path similarities is used so that the statement that has the closest path similarity (basically the closeness of synonyms) is returned.
So, to answer your questions about what functionality is available:
Additionally, creating new response algorithms is fairly simple. To create one, just define a class that completed this interface: class MyLogicAdapter(LogicAdapter):
def get(self, text, statement_list, current_conversation):
# TODO
return selected_statement |
👍 very detailed explanation. I couldn't find this information anywhere, maybe you can consider to present it in this project's wiki pages. |
Thank you, I am planning on making these updates to the documentation soon. |
I have updated these sections in the wiki. Thank you for posting these questions, please let me know if there is anything else I can improve or clarify. |
In near future, I may make some contribution to this project because I am planning to use something similar to chatterbot in one of my spare time works. Thank you. |
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. |
I am curious about which of the following features are available;
Another thing is: Is it just simple statement matcher in which user questions and bot questions have to be the exactly same?
For instance, suppose i trained the bot with:
q: "where is the post office? "
a: "it is right behind you"
and user may ask like this:
q: "looking for the post office"
What will the chatbot give to the user?
The text was updated successfully, but these errors were encountered: