[alicebot-developer] Regarding AIML
Jeroen Wijers
alicebot-developer@list.alicebot.org
Fri, 5 Aug 2005 10:02:47 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_000D_01C599A4.D4EA5360
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
The <if> tag was never a full aiml complaint tag if i am not wrong.
Use <condition> instead.
<set name =3D "leave_type"> <star/> </set> </think>
<condition name=3D"leave_type">
<li value=3D"SICK"><srai> SICK LEAVE </srai></li>
<li value=3D"undefined"> "do nothing"</li>
<li value=3D"*">the value of leave_type is right now: <get =
name=3D"leave_type">
</condition>
the undefined, or * value or even a empty li in the condition are are =
all possible and a bit
depending on what interpreter you use.. try and test it.
<li value=3D"undefined" >
--> default setting of a unset predicate is undefined in programD
<li value=3D"*"> any value for a specific tag...
<li></li>
As a last resort when all other li's you put before do not hold a valid =
value.
another thing with conditions was and or is: ( correct me if i am wrong =
)
the way it does the checking.
Only:=20
<condition>
then the li's with values
</condition>
the interpreter stops when it finds a valid value
with:
<condition name=3D"leave_type">
list item values
</condition>
it goes through all list items and then "selects" the best match!
Search alicebot site/mailinglist through google to see and learn more =
about this condition tag!
Good luck
Jeroen
----- Original Message -----=20
From: Chhawsaria, Deepti=20
To: alicebot-developer@list.alicebot.org=20
Sent: Friday, August 05, 2005 7:03 AM
Subject: [alicebot-developer] Regarding AIML
Hi,
I am using ProgramD 4.5, it is not allowing the use of <if> tag.
Its gives me error like:
[10:26:15] Error parsing =
"file:/C:/ProgramD_new/aiml/standard/CG_personality.aim
l": cvc-complex-type.2.4.a: Invalid content was found starting with =
element 'if'
. One of '{"http://alicebot.org/2001/AIML-1.0.1":star, =
"http://alicebot.org/2001
/AIML-1..0.1":that, "http://alicebot.org/2001/AIML-1.0.1":input, =
"http://alicebot
.org/2001/AIML-1.0.1":thatstar, =
"http://alicebot.org/2001/AIML-1.0.1":topicstar,
"http://alicebot.org/2001/AIML-1.0.1":get, =
"http://alicebot.org/2001/AIML-1.0.1
":bot, "http://alicebot.org/2001/AIML-1.0.1":sr, =
"http://alicebot.org/2001/AIML-
1.0.1":date, "http://alicebot.org/2001/AIML-1.0.1":id, =
"http://alicebot.org/2001
/AIML-1..0.1":size, "http://alicebot.org/2001/AIML-1.0.1":version, =
"http://aliceb
ot.org/2001/AIML-1.0.1":uppercase, =
"http://alicebot.org/2001/AIML-1.0.1":lowerca
se, "http://alicebot.org/2001/AIML-1.0.1":formal, =
"http://alicebot.org/2001/AIML
-1.0.1":sentence, "http://alicebot.org/2001/AIML-1.0.1":condition, =
"http://alice
bot.org/2001/AIML-1.0.1":random, =
"http://alicebot.org/2001/AIML-1.0.1":set, "htt
p://alicebot.org/2001/AIML-1.0.1":gossip, =
"http://alicebot.org/2001/AIML-1.0.1":
srai, "http://alicebot.org/2001/AIML-1.0.1":person, =
"http://alicebot.org/2001/AI
ML-1.0.1":person2, "http://alicebot.org/2001/AIML-1.0.1":gender, =
"http://alicebo
t.org/2001/AIML-1.0.1":think, =
"http://alicebot.org/2001/AIML-1.0.1":learn, "http
://alicebot.org/2001/AIML-1.0.1":system, =
"http://alicebot.org/2001/AIML-1.0.1":j
avascript, WC[##other:"http://alicebot.org/2001/AIML-1.0.1"]}' is =
expected.
My code is:
<category>
<pattern> *
</pattern>
<that>
JUST TELL ME THE LEAVE POLICY YOU ARE INTERESTED IN
</that>
<template>
<think> <set name =3D "leave_type"> <star/> </set> </think>
<if name=3D"leave_type" value=3D"SICK">
<srai> SICK LEAVE </srai>
</if>
</template>
</category>
Please help me!!!
Regards,_________________________________________________________
Deepti Chhawsaria | Capgemini | Mumbai
Associate Consultant | Project Saint Gobain | Oracle Service Line
Direct: +91 22 5642 6173 | Mob. +91 9820136918 |
mail: deepti.chhawsaria@capgemini.com
____________________________________________________________
=20
This message contains information that may be privileged or =
confidential and is the property of the Capgemini Group. It is intended =
only for the person to whom it is addressed. If you are not the intended =
recipient, you are not authorized to read, print, retain, copy, =
disseminate, distribute, or use this message or any part thereof. If you =
receive this message in error, please notify the sender immediately and =
delete all copies of this message.
=20
------=_NextPart_000_000D_01C599A4.D4EA5360
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o =3D "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The <if> tag was never a full =
aiml complaint=20
tag if i am not wrong.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Use <condition> =
instead.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><set name =3D "leave_type"> =
<star/>=20
</set> </think><BR><condition =
name=3D"leave_type"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><li value=3D"SICK"><srai> =
SICK LEAVE=20
</srai></li></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial><li value=3D"undefined"> =
"do=20
nothing"</li></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial><li value=3D"*">the value =
of leave_type=20
is right now: <get name=3D"leave_type"></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT size=3D2><FONT =
face=3DArial></condition></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial></FONT></FONT> </DIV>
<DIV><FONT size=3D2><FONT face=3DArial>the undefined, or * value or even =
a empty li=20
in the condition are are all possible and a bit</FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial>depending on what interpreter you =
use.. try=20
and test it.</FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><li value=3D"undefined" =
></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>--> default setting of a unset =
predicate is=20
undefined in programD</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><li value=3D"*"> any value for a =
specific=20
tag...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><li></li></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>As a last resort when all other li's =
you put before=20
do not hold a valid value.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT size=3D2><FONT face=3DArial>another thing with conditions was =
and or is:=20
( correct me if i am wrong )</FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial>the way it does the=20
checking.</FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Only: </FONT></DIV>
<DIV><FONT size=3D2><FONT =
face=3DArial><condition></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial>then the li's with =
values</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></condition></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>the interpreter stops when it finds a =
valid=20
value</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>with:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><condition =
name=3D"leave_type"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>list item values</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></condition></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>it goes through all list items and then =
"selects"=20
the best match!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Search alicebot site/mailinglist =
through google to=20
see and learn more about this condition tag!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Good luck</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Jeroen</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT size=3D2><FONT=20
face=3DArial></FONT> </DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Ddeepti.chhawsaria@capgemini.com=20
href=3D"mailto:deepti.chhawsaria@capgemini.com">Chhawsaria, Deepti</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
title=3Dalicebot-developer@list.alicebot.org=20
=
href=3D"mailto:alicebot-developer@list.alicebot.org">alicebot-developer@l=
ist.alicebot.org</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, August 05, 2005 =
7:03=20
AM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [alicebot-developer] =
Regarding=20
AIML</DIV>
<DIV><BR></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D504465604-05082005><FONT =
face=3DArial=20
size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial size=3D2>I am =
using=20
ProgramD 4.5, it is not allowing the use of <if>=20
tag.</FONT></SPAN></DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial size=3D2>Its =
gives me error=20
like:</FONT></SPAN></DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial =
size=3D2>[10:26:15] Error=20
parsing "file:/C:/ProgramD_new/aiml/standard/CG_personality.aim<BR>l": =
cvc-complex-type.2.4.a: Invalid content was found starting with =
element=20
'if'<BR>. One of '{"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":star'>http://alicebot.org/20=
01/AIML-1.0.1":star</A>,=20
"<A=20
=
href=3D"http://alicebot.org/2001">http://alicebot.org/2001</A><BR>/AIML-1=
..0.1":that,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":input'>http://alicebot.org/2=
001/AIML-1.0.1":input</A>,=20
"<A=20
=
href=3D"http://alicebot">http://alicebot</A><BR>.org/2001/AIML-1.0.1":tha=
tstar,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":topicstar'>http://alicebot.o=
rg/2001/AIML-1.0.1":topicstar</A>,<BR> "<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":get'>http://alicebot.org/200=
1/AIML-1.0.1":get</A>,=20
"<A=20
=
href=3D"http://alicebot.org/2001/AIML-1.0.1">http://alicebot.org/2001/AIM=
L-1.0.1</A><BR>":bot,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":sr'>http://alicebot.org/2001=
/AIML-1.0.1":sr</A>,=20
"<A=20
=
href=3D"http://alicebot.org/2001/AIML">http://alicebot.org/2001/AIML</A>-=
<BR>1.0.1":date,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":id'>http://alicebot.org/2001=
/AIML-1.0.1":id</A>,=20
"<A=20
=
href=3D"http://alicebot.org/2001">http://alicebot.org/2001</A><BR>/AIML-1=
..0.1":size,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":version'>http://alicebot.org=
/2001/AIML-1.0.1":version</A>,=20
"<A=20
=
href=3D"http://aliceb">http://aliceb</A><BR>ot.org/2001/AIML-1.0.1":upper=
case,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":lowerca'>http://alicebot.org=
/2001/AIML-1.0.1":lowerca</A><BR>se,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":formal'>http://alicebot.org/=
2001/AIML-1.0.1":formal</A>,=20
"<A=20
=
href=3D"http://alicebot.org/2001/AIML">http://alicebot.org/2001/AIML</A><=
BR>-1.0.1":sentence,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":condition'>http://alicebot.o=
rg/2001/AIML-1.0.1":condition</A>,=20
"<A =
href=3D"http://alice">http://alice</A><BR>bot.org/2001/AIML-1.0.1":random=
,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":set'>http://alicebot.org/200=
1/AIML-1.0.1":set</A>,=20
"htt<BR>p://alicebot.org/2001/AIML-1.0.1":gossip, "<A=20
=
href=3D"http://alicebot.org/2001/AIML-1.0.1">http://alicebot.org/2001/AIM=
L-1.0.1</A>":<BR>srai,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":person'>http://alicebot.org/=
2001/AIML-1.0.1":person</A>,=20
"<A=20
=
href=3D"http://alicebot.org/2001/AI">http://alicebot.org/2001/AI</A><BR>M=
L-1.0.1":person2,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":gender'>http://alicebot.org/=
2001/AIML-1.0.1":gender</A>,=20
"<A =
href=3D"http://alicebo">http://alicebo</A><BR>t.org/2001/AIML-1.0.1":thin=
k,=20
"<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":learn'>http://alicebot.org/2=
001/AIML-1.0.1":learn</A>,=20
"http<BR>://alicebot.org/2001/AIML-1.0.1":system, "<A=20
=
href=3D'http://alicebot.org/2001/AIML-1.0.1":j'>http://alicebot.org/2001/=
AIML-1.0.1":j</A><BR>avascript,=20
WC[##other:"<A=20
=
href=3D"http://alicebot.org/2001/AIML-1.0.1"]}'">http://alicebot.org=
/2001/AIML-1.0.1"]}'</A>=20
is expected.</FONT></SPAN></DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial size=3D2>My =
code=20
is:</FONT></SPAN></DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial=20
size=3D2><category><BR><pattern>=20
*<BR></pattern><BR><that><BR>JUST TELL ME THE LEAVE POLICY =
YOU ARE=20
INTERESTED IN<BR></that><BR><template><BR><think> =
<set=20
name =3D "leave_type"> <star/> </set> =
</think><BR><if=20
name=3D"leave_type" value=3D"SICK"><BR><srai> SICK LEAVE=20
=
</srai><BR></if><BR></template><BR></category></F=
ONT></SPAN></DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><SPAN class=3D504465604-05082005><FONT face=3DArial =
size=3D2>Please help=20
me!!!</FONT></SPAN></DIV><!-- Converted from text/rtf format --><SPAN=20
lang=3Den-us><FONT face=3DArial color=3D#000080 size=3D2>
<P class=3DMsoNormal align=3Dleft><A name=3D_MailAutoSig><FONT=20
face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: yes"><SPAN=20
class=3D504465604-05082005><FONT face=3DArial color=3D#000000=20
=
size=3D2>Regards,</FONT></SPAN>__________________________________________=
_______________<o:p></o:p></SPAN></FONT></A></P>
<P class=3DMsoNormal><SPAN style=3D"mso-bookmark: _MailAutoSig"><FONT=20
face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: yes">Deepti Chhawsaria | =
Capgemini |=20
Mumbai<BR>Associate Consultant | Project Saint Gobain | Oracle Service =
Line<BR>Direct: +91 22 5642 6173 | Mob. +91 9820136918 |<BR>mail: =
=
deepti.chhawsaria@capgemini.com<BR>______________________________________=
______________________</SPAN></FONT></SPAN><o:p></o:p></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: =
12pt"><o:p> </o:p></SPAN></FONT></P></FONT></SPAN>
<DIV> </DIV>
<TABLE>
<TBODY>
<TR>
<TD bgColor=3D#ffffff><FONT color=3D#000000>This message contains=20
information that may be privileged or confidential and is the =
property=20
of the Capgemini Group. It is intended only for the person to =
whom it is=20
addressed. If you are not the intended recipient, you are not =
authorized=20
to read, print, retain, copy, disseminate, distribute, or use =
this=20
message or any part thereof. If you receive this message in =
error,=20
please notify the sender immediately and delete all copies of =
this=20
=
message.<BR><BR></FONT></TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HT=
ML>
------=_NextPart_000_000D_01C599A4.D4EA5360--