当我尝试使用最喜欢的游戏作为v2中的关键字(使用Pandorabots)时,我从*类别得到匹配,但不是最喜欢的游戏类别。我不知道哪里会出问题。
例如,对于我最喜欢的游戏:对不起,你能用另一种方式重复一遍吗?
<aiml>
<!--POWITANIE-->
<category>
<pattern>HI #</pattern>
<template>
<random>
<li>Yo!</li>
<li>Hello!</li>
<li>Welcome to my chatroom man</li>
<li>Hi</li>
<li>Nice to meet you, I'm Alfred</li>
</random>
</template>
</category>
<!--ULUBIONA GRA-->
<category>
<pattern># FAVOURITE # GAME #</pattern>
<template> My favourite game is Starcraft2, and your? </template>
</category>
<!--NA BEZSENSOWNY INPUT-->
<category>
<pattern>*</pattern>
<template>
<random>
<li>I have no idea what to say to you.</li>
<li>I don't understand you.</li>
<li>Sorry, could you repeat in an other way?</li>
</random>
</template>
</category>
</aiml>发布于 2021-10-10 15:10:49
如果你对你的机器人说“最喜欢的游戏”(没有U),我强烈怀疑这个类别会起作用。默认情况下,机器人的normal.substitution文件将包含以下条目:
“最爱”,“最爱”,
这意味着,每当有人说“最爱”时,机器人就会认为你的意思是“最爱”。
如果您删除此条目,您的机器人将识别"favorite“而不是”favorite“,并且您的模式将匹配。
https://stackoverflow.com/questions/69509407
复制相似问题