Grace stores information from the conversations as statements. Each user's input (statement) get tagged with any number (please see the : NLTK Tagging methods) and mapped to possible responses.
Therefore each statement object has a reference, which links the user's input to a number of other input statements.
The response object has counter which looks for the terms of frequency (please see the : TF-IDF Algorithm you can also visit grace search engine TF-IDF implementation/ Ranking section ) this attribute indicates the number of times that statement has been given to response. This makes it possible for the bot to determine if a particular response is more commonly used than another.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.