[alicebot-style] Help!!!
deepti damodar chhawsaria
alicebot-style@list.alicebot.org
8 Mar 2005 06:29:07 -0000
This is a multipart mime message
--Next_1110263346---0-203.199.83.246-22910
Content-type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Thanks Richard!=0A=0A=0ARegards,=0ADeepti=0A=0A=0AOn Tue, 08 Mar 2005 Dr.Ri=
ch Wallace wrote :=0A>The danger of <srai> is that you can create infinite =
loops. One way to be=0A>sure that your program will terminate, is to prove=
that the length of each=0A>input to <srai> decreases. Eventually it will =
have to decrease to zero,=0A>so you know there will not be too much recursi=
on.=0A>=0A>For example the category=0A><category><pattern>OH *</patttern><t=
emplate><sr/></template></category>=0A>reduces the length of the input stri=
ng by one word "OH", so even if the=0A>client enters the input "oh oh oh oh=
oh oh oh oh oh oh oh oh oh oh oh..."=0A>the program will eventually termin=
ate.=0A>=0A>=0A> >=0A> > Hi!=0A> >=0A> > Folks I used <srai> tag in the fil=
e. Now it says "Too much recursion in=0A> > AIML" .... why so????=0A> >=0A>=
> Please help me!!!=0A> >=0A> >=0A> > Regards,=0A> > Deepti=0A>=0A>=0A>--=
=0A>Dr. Rich=0A>W A L L A C E=0A>ALICE A.I. Foundation=0A>drwallace@www.ali=
cebot.org=0A>Winner, Loebner Prize 2000, 2001, 2004=0A>=0A>=0A>____________=
___________________________________=0A>alicebot-style mailing list=0A>alice=
bot-style@list.alicebot.org=0A>http://list.alicebot.org/mailman/listinfo/al=
icebot-style=0A>=0A
--Next_1110263346---0-203.199.83.246-22910
Content-type: text/html;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<P>=0AThanks Richard!<BR>=0A<BR>=0A<BR>=0ARegards,<BR>=0ADeepti<BR>=0A<BR>=
=0A<BR>=0AOn Tue, 08 Mar 2005 Dr.Rich Wallace wrote :<BR>=0A>The danger =
of <srai> is that you can create infinite loops. One way to be<=
BR>=0A>sure that your program will terminate, is to prove that the lengt=
h of each<BR>=0A>input to <srai> decreases. Eventually it wi=
ll have to decrease to zero,<BR>=0A>so you know there will not be too mu=
ch recursion.<BR>=0A><BR>=0A>For example the category<BR>=0A><c=
ategory><pattern>OH *</patttern><template><sr/>&=
lt;/template></category><BR>=0A>reduces the length of the input=
string by one word "OH", so even if the<BR>=0A>client enters =
the input "oh oh oh oh oh oh oh oh oh oh oh oh oh oh oh..."<BR>=
=0A>the program will eventually terminate.<BR>=0A><BR>=0A><BR>=0A&=
gt; ><BR>=0A> > Hi!<BR>=0A> ><BR>=0A> > Folks I used &=
lt;srai> tag in the file. Now it says "Too much recursion in<BR>=0A=
> > AIML" .... why so????<BR>=0A> ><BR>=0A> > Please=
help me!!!<BR>=0A> ><BR>=0A> ><BR>=0A> > Regards,<BR>=0A=
> > Deepti<BR>=0A><BR>=0A><BR>=0A>--<BR>=0A>Dr. Rich<BR>=
=0A>W A L L A C E<BR>=0A>ALICE A.I. Foundation<BR>=0A>drwallace@ww=
w.alicebot.org<BR>=0A>Winner, Loebner Prize 2000, 2001, 2004<BR>=0A><=
BR>=0A><BR>=0A>_______________________________________________<BR>=0A=
>alicebot-style mailing list<BR>=0A>alicebot-style@list.alicebot.org<=
BR>=0A>http://list.alicebot.org/mailman/listinfo/alicebot-style<BR>=0A&g=
t;<BR>=0A=0A</P>=0A<br><br>=0A<A target=3D"_blank" HREF=3D"http://clients.r=
ediff.com/signature/track_sig.asp"><IMG SRC=3D"http://ads.rediff.com/RealMe=
dia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=3D0 VSP=
ACE=3D0 HSPACE=3D0></a>=0A
--Next_1110263346---0-203.199.83.246-22910--