[alicebot-developer] Problem with <if> tag
Ioannis
alicebot-developer@list.alicebot.org
Sun, 18 Sep 2005 00:27:30 +0300
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C5BBE7.C3416710
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi again
Well, I have the following code. What I want to do with it is in comments:
<topic name="Intro">
<category>
<pattern>My name is *</pattern>
<template><srai><star/> </srai></template>
</category>
<category>
<pattern>* </pattern> ---- what ever the user replies in the above
question the bot will reply one of the following. However the problem is
when the user replies "I am John" for example, which conflicts with the
pattern below.--
<template>
<random>
<li>Nice to meet you <star/><think><set name="name"><star/></set></think>.
May I also ask your age?</li>
<li>Hi there <star/><think><set name="name"><star/></set></think>. May I
also ask what your age is</li>
<li>Its is good to see you <star/><think><set
name="name"><star/></set></think>. Would you mind if I 'll also ask your
age</li>
</random>
</template>
</category>
<category>
<pattern>I am *</pattern>
-- I need a <that> tag here to distinguish this pattern with the case where
the user types "I am john" in the previous question. However the problem is
what kind of previous utterance to use in the <that> tag since the robot
previous utterances are generated randomly. Any ideas please help!!!!!!!!---
<template>
<random>
<li>Great <get name="name"/>, would you like me to explain you how the
system works</li>
<li>OK <get name="name"/>, would you like me to tell you how the system
work</li>
<li>Great <get name="name"/>, would you like to know how the system
works</li>
</random>
</template>
</category>
------=_NextPart_000_0000_01C5BBE7.C3416710
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7036.0">
<TITLE>RE: [alicebot-developer] Problem with <if> tag</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Courier =
New">Hi again </FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New">Well, I have the following code</FONT></SPAN><SPAN =
LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">.</FONT></SPAN><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Courier New"> What</FONT></SPAN><SPAN LANG=3D"en-us"> =
<FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">I</FONT></SPAN><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Courier New"> want to do with it is in =
comments</FONT></SPAN><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Courier New">:</FONT></SPAN><SPAN =
LANG=3D"en-us"> <FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> </FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><topic =
name=3D"Intro"></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><category> </FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><pattern>My name is =
*</pattern></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><template><srai><star/> =
</srai></template></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"></category></FONT></SPAN></P>
<BR>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><category></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><pattern>* </pattern</FONT></SPAN><SPAN =
LANG=3D"en-us"><I><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">></FONT></I></SPAN><SPAN LANG=3D"en-us"><I><FONT =
COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> ---- what ever the user replies in =
the above question the bot will reply on</FONT></I></SPAN><SPAN =
LANG=3D"en-us"><I><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">e</FONT></I></SPAN><SPAN LANG=3D"en-us"><I><FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Courier New"> of the following.</FONT></I></SPAN><SPAN =
LANG=3D"en-us"><I> <FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">However the problem is when the user replies "I am John" =
for example, which conflicts with the pattern =
below.</FONT></I></SPAN><SPAN LANG=3D"en-us"><I><FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Courier New">--</FONT></I></SPAN><SPAN =
LANG=3D"en-us"><I><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"></FONT></I></SPAN><SPAN LANG=3D"en-us"><I> </I></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><template></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><random></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><li>Nice to meet you =
<star/><think><set =
name=3D"name"><star/></set></think>. May =
I also ask your age?</li></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><li>Hi there =
<star/><think><set =
name=3D"name"><star/></set></think>. May =
I also ask what your age is</li></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><li>Its is good to see you =
<star/><think><set =
name=3D"name"><star/></set></think>. =
Would you mind if I 'll also ask your age</li></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"></random></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"></template></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"></category></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><category></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><pattern>I am =
*</pattern></FONT></SPAN><SPAN LANG=3D"en-us"><FONT =
COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New"> </FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><I><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New">-- I need a <that></FONT></I></SPAN><SPAN =
LANG=3D"en-us"><I><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New"> =
tag here to distinguish this pattern with the case where the user types =
"I am john" in the previous question. However the problem =
is</FONT></I></SPAN><SPAN LANG=3D"en-us"><I> <FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Courier New">what kind of =
previous</FONT></I></SPAN><SPAN LANG=3D"en-us"><I> <FONT =
COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">utterance</FONT></I></SPAN><SPAN LANG=3D"en-us"><I><FONT =
COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New"> to use in =
the</FONT></I></SPAN><SPAN LANG=3D"en-us"><I> <FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Courier New"><</FONT></I></SPAN><SPAN =
LANG=3D"en-us"><I><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">that</FONT></I></SPAN><SPAN LANG=3D"en-us"><I><FONT =
COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">></FONT></I></SPAN><SPAN LANG=3D"en-us"><I><FONT =
COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New"> =
tag</FONT></I></SPAN><SPAN LANG=3D"en-us"><I><FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Courier New"> since the robot previous utterances are =
generated randomly. Any ideas please help!!!!!!!!</FONT></I></SPAN><SPAN =
LANG=3D"en-us"><I><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">---</FONT></I></SPAN><SPAN LANG=3D"en-us"><I></I></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><template></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><random></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><li>Great <get =
name=3D"name"/>, would you like me to explain you how the =
system works</li></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><li>OK <get name=3D"name"/>, =
would you like me to tell you how the system =
work</li></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"><li>Great <get =
name=3D"name"/>, would you like to know how the system =
works</li></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"></random></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"></template></FONT></SPAN></P>
<P ALIGN=3DLEFT><SPAN LANG=3D"en-us"><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Courier New"></category></FONT></SPAN><SPAN =
LANG=3D"en-us"></SPAN></P>
</BODY>
</HTML>
------=_NextPart_000_0000_01C5BBE7.C3416710--
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com