📅  最后修改于: 2020-11-10 04:22:55             🧑  作者: Mango
使用
topic-name
使用
...
例如,考虑以下对话。
Human: let discuss movies
Robot: Yes movies
Human: Comedy movies are nice to watch
Robot: Watching good movie refreshes our minds.
Human: I like watching comedy
Robot: I too like watching comedy.
在这里,机器人以“电影”为主题进行响应。
在C> ab> bots> test> aiml内创建topic.aiml,并在C> ab> bots> test> aimlif目录内创建topic.aiml.csv。
LET DISCUSS MOVIES
Yes movies
*
Watching good movie refreshes our minds.
I LIKE WATCHING COMEDY!
I like comedy movies too.
0,LET DISCUSS MOVIES,*,*,Yes movies ,topic.aiml
0,*,*,movies,Watching good movie refreshes our minds.,topic.aiml
0,I LIKE WATCHING COMEDY!,*,movies,I like comedy movies too.,topic.aiml
打开命令提示符。转到C> ab>并键入以下命令-
java -cp lib/Ab.jar Main bot = test action = chat trace = false
您将看到以下输出-
Human: let discuss movies
Robot: Yes movies
Human: Comedy movies are nice to watch
Robot: Watching good movie refreshes our minds.
Human: I like watching comedy
Robot: I too like watching comedy.