[pandorabots-general] Recursion trouble

Tony Bundy coramo_r at yahoo.com
Fri Nov 10 09:25:29 PST 2006


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.


More information about the pandorabots-general mailing list