[alicebot-style] Help again!

Anne Kootstra alicebot-style@list.alicebot.org
Mon, 7 Mar 2005 21:53:35 +0100


In your particular example the AIML code below may not work very well,
however it's the technique I wanted to show you. This way it's possible to
create "synonym" AIML categories. These are categories who's only purpose is
to link to the content of another/different category. 

Hope this helps.

As ever

Anne Kootstra
Founding Member AIML.info, Main developer Program E
http://www.aiml.info       http://sourceforge.net/projects/programe

e-mail & msn messenger:
anne@aiml.info


<?xml version="1.0" encoding="ISO-8859-1"?>

<aiml version="1.0">

<category>
	<pattern>CONNECT</pattern>
	<template>
		This is the CONNECT category.
	</template>
</category>

<category>
	<pattern>WHAT IS *</pattern>
	<template>
		<srai>DEFINE <star index="1"/></srai>
	</template>
</category>

<category>
	<pattern>TELL ME MORE ABOUT *</pattern>
	<template>
		<srai>DEFINE <star index="1"/></srai>
	</template>
</category>


<category>
	<pattern>DEFINE APPLES</pattern>
	<template>
	An apple is a green piece of fruit.
	</template>
</category>

<category>
	<pattern>DEFINE BANANA</pattern>
	<template>
		A banana is a yellow piece of fruit. 
	</template>
</category>

<category>
	<pattern>*</pattern>
	<template>
		This is the default "catch all" category.
	</template>
</category>

</aiml>

________________________________________
Van: deepti damodar chhawsaria [mailto:deepti_cummins@rediffmail.com] 
Verzonden: maandag 7 maart 2005 16:47
Aan: alicebot-style@list.alicebot.org
Onderwerp: [alicebot-style] Help again!

  
Hi!

When I write the tags for my bot, do I need to write the Patterns in the
English sentence format everytime or can I do parsing on the sentence using
these tags using AIML and proceed?

E.g:

Human: What is your name?
Human: What is your Birthdate?

so does it mean that I should have a pattern "What is your name?", "What is
your Birthdate?"  seperately?
or 
can I parse "What is" and then check for "name","Birthdate"?

What is the difficulty level when parsing is done, instead of using Pattern
Matching that AIML does?

Please clearify....

Regards,
Deepti