[pandorabots-general] Recursion trouble
Square Bear
steve at square-bear.co.uk
Sat Nov 11 21:46:53 PST 2006
Try this instead of the category you had:
<category>
<pattern>_ TELL ME *</pattern>
<template><srai><star index="2"/></srai></template>
</category>
You need to tell it to pick up the second star rather than the underline,
otherwise your query "empty, tell me are you seeing anyone else" will try to
srai to "empty" instead of your query. Hence the "I have no answer" reply.
Regards
- Steve Worswick
http://www.mitsuku.com
> Message: 1
> Date: Fri, 10 Nov 2006 09:25:29 -0800 (PST)
> From: Tony Bundy <coramo_r at yahoo.com>
> Subject: [pandorabots-general] Recursion trouble
> To: pandorabots-general at list.pandorabots.com
> Message-ID: <20061110172529.71275.qmail at web53701.mail.yahoo.com>
> Content-Type: text/plain; charset=ascii
>
> I am trying learning how to effectively use all the methods available with
AIML. I have been going through the tutorial examples at
http://www.pandorabots.com/pandora/pics/aimless/tutorial.htm
> The problem I have is with one of the last examples. It mentions being
able to do some recursive catches, but one of the catches doesn't seem to
occur. I am using an empty bot profile and only the following AIML
>
> <?xml version="1.0" encoding="UTF-8"?>
> <aiml version="1.0">
>
>
> <category>
> <pattern>ARE YOU SEEING ANYONE ELSE</pattern>
> <template>Everyone I run into is either someone I've already seen or
someone I am going to see in the future</template>
> </category>
>
> <category>
> <pattern>YOU ARE SEEING ANYONE ELSE</pattern>
> <template>Everyone I run into is either someone I've already seen or
someone I am going to see in the future</template>
> </category>
> <category>
> <pattern>Empty *</pattern>
> <template>
> <srai><star/></srai>
> </template>
> </category>
>
> <category>
> <pattern>_ TELL ME *</pattern>
> <template><sr/></template>
> </category>
> <category>
> <pattern>_ TELL ME IF*</pattern>
> <template>
> <srai><star/></srai>
> </template>
> </category>
>
> </aiml>
>
> When I enter "empty, tell me are you seeing anyone else" it does get
caught by the _ TELL ME * pattern, but the recursive search fails to pick up
on "are you seeing anyone else"
>
> I have tested that "Empy, are you seeing anyone else" and "are you seeing
anyone else" both return properly.
> Am I doing something wrong?
>
> || Training interface gives me.
> \/
>
> Human: empty, tell me are you seeing anyone else
> Matched: _ tell me * (category defined in update.aiml)
>
> Dufus: I have no answer for that.
>
>
> ------------------------------
>
> _______________________________________________
> pandorabots-general mailing list
> pandorabots-general at list.pandorabots.com
> http://list.pandorabots.com/mailman/listinfo/pandorabots-general
>
>
> End of pandorabots-general Digest, Vol 33, Issue 2
> **************************************************
>
More information about the pandorabots-general
mailing list