📅  最后修改于: 2020-11-10 04:23:11             🧑  作者: Mango
使用
variable-value
例如,考虑以下对话。
Human: My name is Mahesh
Robot: Hello!
Human: Byeee
Robot: Hi Mahesh Thanks for the conversation!
在C> ab> bots> test> aiml中创建think.aiml,并在C> ab> bots> test> aimlif目录中创建think.aiml.csv 。
My name is *
Hello!
Byeee
Hi Thanks for the conversation!
0,My name is *,*,*, Hello! ,think.aiml
0,Byeee,*,*, Hi Thanks for the conversation!,think.aiml
打开命令提示符。转到C> ab>并键入以下命令-
java -cp lib/Ab.jar Main bot = test action = chat trace = false
您将看到以下输出-
Human: My name is Mahesh
Robot: Hello!
Human: Byeee
Robot: Hi Mahesh Thanks for the conversation!