[pandorabots-general] Is there any way to easily countthe number of responses my bot is capable
Anne Kootstra
anne at aiml.info
Sat Aug 11 01:35:33 PDT 2007
OK. AIML 101.
There are two main AIML items
1. The pattern and
2. The response.
The AIML category:
<category>
<pattern>HELLO</pattern>
<template>
HI THERE!
</template>
</category>
Will have only one text input - HELLO - that triggers is, and when triggered
it will only return one response. Now, the following example is designed to
be triggered by multiple text inputs and when triggered return the same
response every time.
<category>
<pattern>HELLO *</pattern>
<template>
HI THERE!
</template>
</category>
This category can be triggered by an unlimited number of text input strings
along the following lines:
HELLO THERE
HELLO BOT
HELLO CHARLY
HELLO YOU POOR BASTARD
HELLO (some other string)
Now, the following example will return a response compounded by the output
of two categories. Showing that the use of SRAI is able to exponentially
increase the number of responses a bot is capable of making using a very
limited AIML set.
<category>
<pattern>WHAT DOES * MEAN</pattern>
<template>
That is a good question! <SRAI>DEFINE <STAR INDEX="1"/></SRAI>
</template>
</category>
<category>
<pattern>DEFINE AARDVARK</pattern>
<template>
It is a mammal, mostly operates in de evening or night.
</template>
</category>
<category>
<pattern>DEFINE TERRORIST</pattern>
<template>
It is a human, who uses violence to support his political beliefs.
</template>
</category>
<category>
<pattern>DEFINE *</pattern>
<template>
I do not know this word.
</template>
</category>
What does aardvark mean will be answered by the bot like so "That is a good
question! It is a mammal, mostly operates in de evening or night."
What does terrorist mean will be answered by the bot like so "That is a good
question! It is a human, who uses violence to support his political
beliefs."
What does furniture mean will be answered by the bot like so "That is a good
question! I do not know this word."
Combining any of the aforementioned techniques will make it very hard to
calculate the number of different responses a bot it able to generate.
However, as a rule of thumb, count the number of templates for a reasonable
indication.
Kind regards,
Anne.
_____
Van: Tom Court [mailto:flammable_primate_no.3 at hotmail.co.uk]
Verzonden: vrijdag 10 augustus 2007 1:32
Aan: pandorabots-general at list.pandorabots.com
Onderwerp: Re: [pandorabots-general] Is there any way to easily countthe
number of responses my bot is capable
Many days later, hi. I'm not sure I really understand... if any number of
possible responses can be between the <template> tags, how is the number of
<template>s directly related to how many responses the bot can give? (Bear
in mind that I'm still an AIML-virgin, and it took me those days I wasn't
responding just figuring out how to respond to a mailing list, so I'm likely
to be a little slow here.)
_____
> From: anne at aiml.info
> To: pandorabots-general at list.pandorabots.com
> Date: Fri, 6 Jul 2007 22:27:02 +0200
> Subject: Re: [pandorabots-general] Is there any way to easily count the
number of responses my bot is capable of coming out with?
>
> True, but as a general rule, counting the number of templates gives you a
> reasonable count.
>
> The flexibility of the SRAI is the real power and, in this case, sadly
also
> the reason why if you're using them inside the <template> it will also add
> an unpredictable amount of variations in the bot's replies.
>
> Kind regards,
>
> Anne.
>
> -----Oorspronkelijk bericht-----
> Van: Dr. Rich Wallace [mailto:drwallace at alicebot.org]
> Verzonden: vrijdag 6 juli 2007 21:50
> Aan: pandorabots-general at list.pandorabots.com
> Onderwerp: Re: [pandorabots-general] Is there any way to easily count the
> number of responses my bot is capable of coming out with?
>
> > The number of responses is directly linked to the number of <template>'s
> > that contain actual text output. If you can filter these out of your
> > current
> > set of AIML categories, then you will have the number of responses your
> > bot
> > can give. Just about .
> Using srai's in the responses could vastly increase the number of possible
> responses. A single category with star in the response can have an
> unlimited number of possible responses, each dependent on the input.
> _______________________________________________
> This is the pandorabots-general mailing list
> To Post, reply to pandorabots-general at list.pandorabots.com
> Unsubscribe and change preferences at
> http://list.pandorabots.com/mailman/listinfo/pandorabots-general
> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> Learn to read at http://www.literacy.org/
>
> _______________________________________________
> This is the pandorabots-general mailing list
> To Post, reply to pandorabots-general at list.pandorabots.com
> Unsubscribe and change preferences at
http://list.pandorabots.com/mailman/listinfo/pandorabots-general
> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> Learn to read at http://www.literacy.org/
_____
The next generation of MSN Hotmail has arrived - Windows Live Hotmail
<http://www.newhotmail.co.uk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.pandorabots.com/pipermail/pandorabots-general/attachments/20070811/acb5e5ad/attachment-0001.html
More information about the pandorabots-general
mailing list