我的问题是我试图<set>
在<pattern>
标签中使用多个,但我的核心(在本例中为 Pandorabots)无法识别我写的内容。我认为问题是模式标签中的多个集合标签。只需一个,它就可以工作。
所以这是aiml的一部分:
<category>
<pattern>^ <set>components</set> ^ <set>desc_broken</set></pattern>
<template>Test answer</template>
</category>
和相对集:
组件.set
[
["ENGINE"],
["FILTERS"],
["CARBURETORS"]
]
desc_broken.set
[
["BROKEN"]
]
我的目标是匹配诸如“我的引擎坏了”之类的字符串,或者更一般地说:“ something CAR PART something ADJECTIVE something ”