Artificial intelligence 为我的聊天机器人在botlibre上使用通配符元素(AIML)

Artificial intelligence 为我的聊天机器人在botlibre上使用通配符元素(AIML),artificial-intelligence,chatbot,aiml,botlibre,Artificial Intelligence,Chatbot,Aiml,Botlibre,我的聊天机器人在以如下所示的第1种方式使用时没有响应使用通配符 <category> <pattern>*</pattern> <that>MY LITTLE HUMAN HELLO WHAT IS YOUR NAME</that> <template>Owh, nice to meet you, <set name="name"><star/></set>. I should alrea

我的聊天机器人在以如下所示的第1种方式使用时没有响应使用通配符

<category>
<pattern>*</pattern>
<that>MY LITTLE HUMAN HELLO WHAT IS YOUR NAME</that>
<template>Owh, nice to meet you, <set name="name"><star/></set>. I should already know your name but my system is still getting used to your brain and the way things are stored here... Do you know who I am?</template>
</category>

*
我的小人类你好你叫什么名字
哦,很高兴认识你。我应该已经知道你的名字了,但我的系统仍然习惯于你的大脑和这里的存储方式。。。你知道我是谁吗?
上述方法不起作用。我不能只输入我的名字。但当我把我的名字放在一个完整的句子中时,下面的一个是有效的(它也适用于一个句子的其他变体,只是不适用于它本身):


我的名字是*
哦,很高兴认识你。我应该已经知道你的名字了,但我的系统仍然习惯于你的大脑和这里的存储方式。。。你知道我是谁吗?

我不知道我犯了什么错。我试着改变一些东西来摆弄它,但到目前为止没有任何效果。也尝试过谷歌搜索,但找不到有效的解决方案(或者我搜索错了?)。提前谢谢

这是因为你的第一个类别中有一个标签,除非你的机器人刚刚说,“我的小人类你好,你叫什么名字”,否则这个类别永远不会被调用。解决方案是要么删除标签,要么根据bot实际所说的内容对其进行修改

<category>
<pattern>MY NAME IS *</pattern>
<template>Owh, nice to meet you, <set name="name"><star/></set>. I should already know your name but my system is still getting used to your brain and the way things are stored here... Do you know who I am?</template>
</category>