AIML:选择列表未找到匹配模式

AIML: List of choices is not finding matching pattern

我正在尝试构建此处列出的示例文件。 https://docs.bmc.com/docs/display/public/BVA9/Sample.aiml+file

我能够在这里写出文件(我认为是正确的)。 https://gist.github.com/pemby/679571f9eb9a413faa72811bbbe85621

运行 我认为第一个模式匹配失败的文件。

<category>
<pattern>CMP</pattern>
<template>
    Which password do you want to change?<br/>
    1) Lotus password.<br/>
    2) Sgate password. <br/>
    3) NT/PC password.<br/>
    Enter yoour choice-1/2/3.
</template>

然后这里就失败了...

<category>
    <pattern>1</pattern>
    <that>* Enter your choice-1/2/3.</that>
    <template>
    <think>
    <set name="option1">1</set>
    </think>
    <srai>ACMP</srai>  
    </template>
</category>

您的第一个类别中有错字 "yoour"。您还需要在第一个类别的末尾添加 。您正在检查第二个类别中 的错误值(您正在学习的文档不正确)。我已经发布了您的代码的正确版本。

<category>
    <pattern>CMP</pattern>
    <template>
        Which password do you want to change?<br/>
        1) Lotus password.<br/>
        2) Sgate password. <br/>
        3) NT/PC password.<br/>
        Enter your choice-1/2/3.
    </template>
</category>

<category>
    <pattern>1</pattern>
    <that>ENTER YOUR CHOICE *</that>
    <template>
        <think>
            <set name="option1">1</set>
        </think>
        <srai>ACMP</srai>  
    </template>
</category>