[alicebot-archcomm] multiple patterns in a category

Sandro Golinelli alicebot-archcomm@list.alicebot.org
Sun, 30 Mar 2003 16:10:02 +0200


A content creation tool would do a nice job.
But what if you have to watch inside the code? You'll could be completely lost!
*Readability* of the code is important too.
Minimal AIML, to me, means also to have a 7 line category and not 3 
categories in 21 lines of code. (based on quoted example)

So, as everything affects everything else, before deepen multiple patterns, 
we have to discuss about the merge policy and later check for scaling 
problems that can rise with the adoption of multiple patterns.

Do someone agree with this?

--
sandro

At 14.40 24/03/2003 +0100, you wrote:
>Multiple patterns per category can be handled by higher level content
>creation tools and compiled into AIML along exactly the lines you have
>suggested.
>I woul let the multiple pattern category be outside the scope
>of minimal AIML, even though its meaning is somewhat obvious.
>Under the thread, "everything affects everything else", multiple patterns
>per category will introduce scaling problems, potential conflicts between
>categories that must be resolved at load time (by a "merge policy") and
>also impact the targeting algorithm.
>
>
> > please state your concerns about something like :
> >
> > <category>
> >          <pattern>*</pattern>
> >          <pattern>IT IS *</pattern>
> >          <pattern>THEY ARE *</pattern>
> >          <that>WHAT</that>
> >          <template>
> >                  i don't know more about <star/>
> >          </template>
> > </category>
> >
> > it can handle a chat like:
> >
> > user: i-ching
> > bot: what?
> > user: the book of changes
> > bot: i don't know more about the book of changes
> >
> > or
> >
> > user: i-ching
> > bot: what?
> > user: they are the fundamental books of Confucianism
> > bot: i don't know more about the the fundamental books of Confucianism
> >
> > or
> >
> > user: i-ching
> > bot: what?
> > user: it's the book of changes
> > bot: i don't know more about the book of changes
> >
> >
> > in this example, we have a category, the template is activated by any
> > input  and where the previous bot sentence is "what"
> > This template will also be activated by any input starting with "it is"
> > or  "they are" followed by at least another word, and where the bot
> > previous  sentence is "what"
> >
> > this example is pretty simple but instead to write a 7 line category,
> > using  current standard aiml, i should write something like:
> >
> > <category>
> >          <pattern>*</pattern>
> >          <that>WHAT</that>
> >          <template>
> >                  i don't know more about <star/>
> >          </template>
> > </category>
> >
> > <category>
> >          <pattern>IT IS *</pattern>
> >          <that>WHAT</that>
> >          <template>
> >                  i don't know more about <star/>
> >          </template>
> > </category>
> >
> > <category>
> >          <pattern>THEY ARE *</pattern>
> >          <that>WHAT</that>
> >          <template>
> >                  i don't know more about <star/>
> >          </template>
> > </category>
> >
> > 21 lies of code, or many more, where just a line is different among
> > these  categories.
> >
> > what do you think ?
> >
> > --
> > sandro
> >
> > _______________________________________________
> > alicebot-archcomm mailing list
> > alicebot-archcomm@list.alicebot.org
> > http://list.alicebot.org/mailman/listinfo/alicebot-archcomm
>
>
>--
>Dr. Rich
>W A L L A C E
>ALICE A.I. Foundation
>drwallace@www.alicebot.org
>"Dean of cheezo-hobby system hackers."--Salon
>
>
>
>_______________________________________________
>alicebot-archcomm mailing list
>alicebot-archcomm@list.alicebot.org
>http://list.alicebot.org/mailman/listinfo/alicebot-archcomm