« Return to Thread: Re: Is there any way to easily count the number of responses my bot is capable
OK. AIML 101.
There are two main AIML
items
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@...]
Verzonden: vrijdag 10 augustus
2007 1:32
Aan:
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@...
> To:
> 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:
> Verzonden: vrijdag 6 juli 2007 21:50
> Aan:
> 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
> 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
> 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
« Return to Thread: Re: Is there any way to easily count the number of responses my bot is capable
| Free Forum Powered by Nabble | Forum Help |