[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&gt;The danger =
of &lt;srai&gt; is that you can create infinite loops.&nbsp; One way to be<=
BR>=0A&gt;sure that your program will terminate, is to prove that the lengt=
h of each<BR>=0A&gt;input to &lt;srai&gt; decreases.&nbsp; Eventually it wi=
ll have to decrease to zero,<BR>=0A&gt;so you know there will not be too mu=
ch recursion.<BR>=0A&gt;<BR>=0A&gt;For example the category<BR>=0A&gt;&lt;c=
ategory&gt;&lt;pattern&gt;OH *&lt;/patttern&gt;&lt;template&gt;&lt;sr/&gt;&=
lt;/template&gt;&lt;/category&gt;<BR>=0A&gt;reduces the length of the input=
 string by one word &quot;OH&quot;, so even if the<BR>=0A&gt;client enters =
the input &quot;oh oh oh oh oh oh oh oh oh oh oh oh oh oh oh...&quot;<BR>=
=0A&gt;the program will eventually terminate.<BR>=0A&gt;<BR>=0A&gt;<BR>=0A&=
gt; &gt;<BR>=0A&gt; &gt; Hi!<BR>=0A&gt; &gt;<BR>=0A&gt; &gt; Folks I used &=
lt;srai&gt; tag in the file. Now it says &quot;Too much recursion in<BR>=0A=
&gt; &gt; AIML&quot; .... why so????<BR>=0A&gt; &gt;<BR>=0A&gt; &gt; Please=
 help me!!!<BR>=0A&gt; &gt;<BR>=0A&gt; &gt;<BR>=0A&gt; &gt; Regards,<BR>=0A=
&gt; &gt; Deepti<BR>=0A&gt;<BR>=0A&gt;<BR>=0A&gt;--<BR>=0A&gt;Dr. Rich<BR>=
=0A&gt;W A L L A C E<BR>=0A&gt;ALICE A.I. Foundation<BR>=0A&gt;drwallace@ww=
w.alicebot.org<BR>=0A&gt;Winner, Loebner Prize 2000, 2001, 2004<BR>=0A&gt;<=
BR>=0A&gt;<BR>=0A&gt;_______________________________________________<BR>=0A=
&gt;alicebot-style mailing list<BR>=0A&gt;alicebot-style@list.alicebot.org<=
BR>=0A&gt;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--