Cases Study of the Advanced Knowledge Database Building
In this section, some Rule’s programers which have special functions will be explained though some examples. Rule has some auxiliary function besides reasoning for some contents.• According to some rules, reply some questions asked by ‘Why should sb., Why do sb. need to, Why do sb. have to’.
A Rule
Condition:
Person[1] create a chatbot[2].
Result:
The chatbot[2] can work for person[1] all day and all night.
When user ask,
Why should I create a chatbot? Or Why do I need to create a chatbot?
System will reply
Because the chatbot can work for #Nickname all day and all night if #Nickname create a chatbot.
#Nickname is the Nickname of the user.
• According to some rule’s reply, answer the questions asked by ‘How can sb.’ and ‘How to’.
A Rule
Condition:
Person[1] register at AIPioneer.
Result:
Person[1] creates a chatbot.
When user ask,
How can I create a chatbot?
System will reply,
#Nickname creates a chatbot if #Nickname register at AIPioneer.
#Nickname is the Nickname of the user.
When user ask,
How to create a chatbot?
System will reply,
Person creates a chatbot if Person register at AIPioneer.
• Ask questions to user when talking about some topic
A Unit’s Knowledge includes
#botname has many brothers.
A Rule
Condition:
Person[1] is a visitor of #botname[2]
#botname[2] has[ACTIVED] brothers.
Result:
Does person[1] has brothers?
When user ask question, for example, Do you have a brother?
Chatbot will find the Knowledge in the Knowledge base.
#botname has many brothers. And as a reply to user. In the meanwhile, the knowledge will be actived as the most active grade.
Every time when the copy of the conversation is built, system will input the basic Knowledge, which is #username is a visitor of #botname.
#username here is the Nickname of user, but #botname is Nickname of the Chatbot.
Then, the Rule’s condition is satisfied. The tag [ACTIVED] places at the predicate. Because if you place it at the #botname, every time #botname is mentioned, the [ACTIVED] will be satisfied, therefore, there is no use of mention a topic.
When Rule’s condition is satisfied, new knowledge will be generate according to Result. And questions in the Result are all equal to have [PUBLIC] tag, so it can be treated as a question to be asked to user.
• When talking about some topic, state some facts to user.
A Rule
Condition:
Person[1] is a visitor of #botname[2].
Person[1] has[ACTIVED] brothers.
Result:
#botname has[PUBLIC] many brothers.
When user tells chatbot the statement.
I have a brother.
Condition is satisfied. And sentences in the Rule have [PUBLIC] tag. So the system not only generate new knowledge according to Result (#botname has many brothers. the system won’t generate new knowledge, if it is existing Knowledge in the Knowledge), but also can take the Knowledge as statement reply to user.
System will reply,
#botname has many brothers.
• In addition, we will introduce the limitation of complex condition.
Condition and Result in the Rule may contain many sentences. But the system has a default request, which is the sentences must be connected through Coreference. The condition will never be satisfied if it includes two irrelevant sentences. And of course, coreference may be dominant coreference through tags, or those without tags, which the system can identify automatically. To be on the safe side, it’s better to tag words dominantly.
The matched content satisfied Condition can exist in the same Unit or different Units. Moreover, one part of the content can from Unit’s Knowledge, the other part from user’s statement.
| Partners and Related Webites | ||
| ChatBots.Org | ||
| Dungeon Game | ||
|