[pandorabots-general] Too much recursion in AIML

Brian Hoecht brian_hoecht at msn.com
Thu May 18 06:42:54 PDT 2006


If you can give examples of the inputs that you enter that cause
the too much recursion problem, I'd take a look for you as to
what is going on.

I don't know what your background is, but my understanding is
that well written AIML code needs what is called "pick up lines."

Basically, no matter what the user input, the bot has a well
thought out method to get the chat back on track.  Methods I have
seen are:

1)  topic changes
2)  <learn> efforts
3)  clarify and extend replies - but use them carefully as if
they get used too much it destroys the bot's credibility.  Also
use <random> with lots of different phrasings, preferably with
humor intermixed.

So, you should never get too much recursion unless the code
creates an infinite loop.  The pattern matching algorithm of any
interpreter should always have a final something to say for *, *,
* (pattern, that, topic) = no match found.

-----Original Message-----
From:
pandorabots-general-bounces+brian_hoecht=msn.com at list.pandorabots
com
[mailto:pandorabots-general-bounces+brian_hoecht=msn.com at list.pan
dorabots.com] On Behalf Of R. B. Chandler
Sent: Thursday, May 18, 2006 12:06 AM
To: pandorabots-general at list.pandorabots.com
Subject: [pandorabots-general] Too much recursion in AIML

Too much recursion in AIML... What is it?  What is trying to tell
me?  What can it do?  What does it do?  Can I change the reply?

Is there a code that can catch any <patterns> not recognized.
Something like this maybe: (i'm guessing here;o)

<category><pattern>*</pattern><template>ERROR
ERROR...</template></category>
<category><pattern>_</pattern><template>ERROR
ERROR...</template></category>
<category><pattern>*_</pattern><template>ERROR
ERROR...</template></category>
<category><pattern>_*</pattern><template>ERROR
ERROR...</template></category>

Is there a way chanel off all communications to any response not
understood by the bot before it gives the Too much recursion in
AIML response?  The object being to create an ERROR message
before the actual error takes place in order to control the
response given by the bot when it encounters a problem it does
not know how to handle.  Remember, my bot, when done, is a very
limited character on a very large stage.  Part of the character
is that I am a computer and I don't have all the answers because
I don't have all the questions and they purposely kept things
from me too.  The computer is suppose to be a rigid machine but
there lies hidden deep inside of its chips a hint of personality
begining to grow.  But, you still have to feel the walls of the
machine from time to time as you explore the soul of a machine.
That is what my bot has to convey to my visitors, or it will once
I finish the base program and a lot of brain surgery.  

 

 


 

Galactic Enterprise <http://www.galacticenterprise.com/> 
Join the adventure...


More information about the pandorabots-general mailing list