[alicebot-archcomm] <pattern>'s having <bot> tags in them.
Dr. Rich Wallace
drwallace at alicebot.org
Mon Oct 16 19:46:37 PDT 2006
This was something that was discussed and argued extensively by the Arch
Comm once upon a time. You may find something by searching the archives.
There was an AIML pattern group active for a while too. You may want to
check those archives.
I believe the way it was resolved, was that <bot name="name"/> is the ONLY
tag allowed in patterns, because this can always be resolved to a constant
word, viz., the name of the bot.
We also considered the option of allowing any <bot name="XXX"/> bot
property tag in the patterns, but this AFICR was voted down.
In general all arguments over expanding the pattern language break down
into two factions, those who want to keep the language as simple as
possible, and those who want to expand the pattern language to include
more constants, variables, types, and so on.
Then I will chime in with the old chestnut, the pluggable pattern
processor, which is a way of using AIML as a knowledge representation
language but giving the botmaster permission to use any type of matching
algorithm.
For example,
<pattern pp="AIML">*</pattern> is the same as <pattern>*</pattern>
<pattern pp="fuzzy">WHAT IS YOUR NAME</pattern> uses a fuzzy logic matcher
<pattern pp="regexp">\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b</pattern>
> I recieved a most interesting bug report today.
>
> I found this piece of snippet someone was using:
>
> <category>
> <pattern>CIAO <bot name="name"/></pattern>
> <template><srai>CIAO</srai></template>
> </category>
>
> My
> xsd (which is from programD) allows the bot tag to be there when in the
> AIML specification 1.0.1, it says nowhere that <pattern> can have
> any tags inside of it at all. My interpreter RebeccaAIML, effectively
> ignores that <bot> tag and it's treated exactly the same as if it
> was:
>
> <category>
> <pattern>CIAO</pattern>
> <template><srai>CIAO</srai></template>
> </category>
>
> Which
> is the reason why RebeccaAIML is reporting an infinite symbolic
> reduction. Remove the above category and it should no longer
> misbehave.
>
> This is very interesting that bots are implementing this behavior.
>
> It's more than just programD that has implemented this inner tag. Other
> interpreters have also. So, is that tag suppose to be there? Did I miss
> it in the AIML spec? I didn't see it anywhere mentioned. Also, are there
> other tags that are allowed within <pattern> that I have missed?
>
>
>
>
>
> _______________________________________________
> alicebot-archcomm mailing list
> alicebot-archcomm at list.alicebot.org
> http://list.alicebot.org/mailman/listinfo/alicebot-archcomm
>
More information about the alicebot-archcomm
mailing list