[alicebot-style] Help!!!
Dr. Rich Wallace
alicebot-style@list.alicebot.org
Mon, 7 Mar 2005 16:37:11 -0500 (EST)
The danger of <srai> is that you can create infinite loops. One way to be
sure that your program will terminate, is to prove that the length of each
input to <srai> decreases. Eventually it will have to decrease to zero,
so you know there will not be too much recursion.
For example the category
<category><pattern>OH *</patttern><template><sr/></template></category>
reduces the length of the input string by one word "OH", so even if the
client enters the input "oh oh oh oh oh oh oh oh oh oh oh oh oh oh oh..."
the program will eventually terminate.
>
> Hi!
>
> Folks I used <srai> tag in the file. Now it says "Too much recursion in
> AIML" .... why so????
>
> Please help me!!!
>
>
> Regards,
> Deepti
--
Dr. Rich
W A L L A C E
ALICE A.I. Foundation
drwallace@www.alicebot.org
Winner, Loebner Prize 2000, 2001, 2004