« Return to Thread: Regarding AIML

Re: Regarding AIML

by Jeroen Wijers :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
The <if> tag was never a full aiml complaint tag if i am not wrong.
Use <condition> instead.
<set name = "leave_type"> <star/> </set> </think>
<condition name="leave_type">
<li value="SICK"><srai> SICK LEAVE </srai></li>
<li value="undefined"> "do nothing"</li>
<li value="*">the value of leave_type is right now: <get name="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="undefined" >
--> default setting of a unset predicate is undefined in programD
<li value="*"> 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:
<condition>
then the li's with values
</condition>
 
the interpreter stops when it finds a valid value
 
with:
<condition name="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 -----
From: deepti.chhawsaria@...
To: alicebot-developer@...
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 = "leave_type"> <star/> </set> </think>
<if name="leave_type" value="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@...
____________________________________________________________

 

 
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.

 « Return to Thread: Regarding AIML

LightInTheBox - Buy quality products at wholesale price