[pandorabots-general] Generic Reductions for who and what...
so far
Dr. Rich Wallace
drwallace at alicebot.org
Sun May 21 10:04:58 PDT 2006
It looks like you are doing some good work. At some point you may want to
try the Targeting approach after you launch your bot. Your clients or
customers may drive your choices about what kinds of new patterns to add,
and in what order.
For example, you may find that that the category
WHO IS *
is activated
fairly often, and you might also find out that the inputs include a lot
of examples like
WHO IS SIR ISAAC NEWTON
WHO IS NEWTON
WHO IS ISAAC NEWTON
so your categories like
<pattern>WHO IS * *</pattern>
and
<pattern>WHO IS * * *</pattern>
might reduce those to
DEFINE NEWTON
using <star index="3"/> and <star index="2"/> but you might run into
problems with inputs like
WHO IS THE FAMOUS SIR ISAAC NEWTON
It might be safer to write specific categories for the variations you
actually encounter. One rule of thumb of botmastering, sometimes called
"continuous beta testing", is that it's hard to predict in advance what
patterns you'll need to capture the inputs people will actually say to
your bot. Targeting is a way to capture these inputs once your bot goes
live.
> Work on my bot continues and I'm almost finished with the astronomy
> dictionary I need for the basic background knowledge my bot needs to start
> with. I'll add more stuff later. Anyway, for those who need a set of
> generic
> reductions for those "What (or who) is it?" type questions. This is what I
> have so far (I'm sure there are more):
> <category>
> <pattern>*</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
>
> <category>
> <pattern>CAN YOU TELL ME ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ALL ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ALL ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ALL ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ALL ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME EVERYTHING ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME EVERYTHING ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME EVERYTHING ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME EVERYTHING ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT ARE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT ARE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT ARE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT THE * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT A * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT AN * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT THE * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT THE HECK * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHAT THE HELL * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO IS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO THE * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO WAS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO * WAS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO WERE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO WERE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO * WERE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO THE * WERE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
>
> <category>
> <pattern>DO YOU KNOW ANYTHING ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW ANYTHING ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW ANYTHING ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW ANYTHING ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHAT * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHAT * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHAT A * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHAT AN * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHAT THE * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO ARE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO ARE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO IS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO * WAS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO THE * WAS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO WAS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO WERE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO THE * WERE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO THE HECK * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO THE HELL * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO THE HECK * WAS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO THE HELL * WAS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
>
> <category>
> <pattern>TELL ME ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME ALL ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME ALL ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME ALL ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME ALL ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME EVERYTHING ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME EVERYTHING ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME EVERYTHING ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME EVERYTHING ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT ARE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT ARE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT IS A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT IS AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT IS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT A * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT AN * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT THE * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT THE HECK * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHAT THE HELL * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO ARE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO ARE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO THE * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO * WAS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO WAS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO WERE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO THE * WERE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO WERE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO THE HECK IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO THE HELL IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO THE HECK WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO THE HELL WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO IS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO WERE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
>
> <category>
> <pattern>WHAT IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT IS A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT IS AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT IS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT ARE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT ARE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT WERE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT DO YOU KNOW ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT DO YOU KNOW ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT DO YOU KNOW ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHAT DO YOU KNOW ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
>
> <category>
> <pattern>WILL YOU TELL ME ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ALL ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ALL ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ALL ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ALL ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME EVERYTHING ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME EVERYTHING ABOUT A *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME EVERYTHING ABOUT AN *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME EVERYTHING ABOUT THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT ARE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT ARE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT THE * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT IS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT A * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT AN * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT THE * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT THE HECK * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHAT THE HELL * ARE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO ARE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO ARE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO IS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO THE * IS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO WAS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO * WAS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO THE * WAS</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO WERE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO WERE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO THE * WERE</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO THE HECK IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO THE HELL IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO THE HECK WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO THE HELL WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
>
> <category>
> <pattern>WHO ARE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO ARE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO IS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO WAS THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO WERE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO WERE THE *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO THE HECK IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO THE HELL IS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO THE HECK WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WHO THE HELL WAS *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
>
> For names (who is it questions) I just use the last name and it gets pick
> up
> an run by the reduction set above. But, for the full names I use a shorter
> set for each name. Of course you have to replace the * with the full name
> and the # with the last name.
> <category>
> <pattern>CAN YOU TELL ME ABOUT *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ALL ABOUT *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO IS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO * IS</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO WAS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO * WAS</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO IS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO * IS</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO WAS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO * WAS</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>TELL ME ABOUT *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>TELL ME ALL ABOUT *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO IS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO * IS</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO WAS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO * WAS</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>WHO IS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>WHO WAS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ABOUT *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO IS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO * IS</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO WAS *</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO * WAS</pattern>
> <template><srai>DEFINE #</srai></template>
> </category>
>
> KnyteTrypper brought up a good point: For those "DEFINE #" categories, you
> might try "Who is * * " in the pattern and "DEFINE <star index="2" />" in
> the template to make it search for the last name only.
>
> Naturally my mind raced ahead to this line of thought: (Some
> background)The
> dictionary format looks like this so far:
> <category>
> <pattern>_ AGENTS OF CHANGE</pattern>
> <template>
> The constructive and destructive processes that reshape a
> planetary surface.
> </template>
> </category>
> <category>
> <pattern>DEFINE AIMPOINT</pattern>
> <template>
> An aimpoint is a point in the plane of a planet's orbit that a
> spacecraft aims for (either for a fly by of that planet or to
> enter that planet's orbit).
> </template>
> </category>
> <category>
> <pattern>DEFINE AIRY</pattern>
> <template>
> Sir George Bidell Airy (1801-1892) was the director of Greenwich
> Observatory/Astronomer Royal of England from 1835 to 1881. Airy
> installed a transit (a precise surveying device) at Greenwich,
> England, which was used to define the zero degree meridian of the
> Earth (zero-degrees longitude). A crater on Mars about 5 degrees
> south of the equator and on what is defined as Mars' prime
> meridian (zero-degrees longitude) is call Airy. A small crater
> within this crater (which is called Airy-0) is where the meridian
> line (zero-degrees longitude) crosses. A crater on the moon is
> also named for him (latitude 18.1 degrees, longitude 354.3
> degrees, diameter 36 km). Airy is supposed to have stated
> incorrectly that Charles Babbage's new "analytical engine" (the
> predecessor of the computer) was "worthless," effectively ending
> Babbage's government funding.
> </template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ABOUT GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME ALL ABOUT GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO IS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO GEORGE AIRY IS</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO WAS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>CAN YOU TELL ME WHO GEORGE AIRY WAS</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO GEORGE AIRY IS</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO IS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO GEORGE AIRY WAS</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>DO YOU KNOW WHO WAS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>TELL ME ABOUT GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>TELL ME ALL ABOUT GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO IS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <pattern>TELL ME WHO GEORGE AIRY IS</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>TELL ME WHO WAS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <pattern>TELL ME WHO GEORGE AIRY WAS</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>WHO IS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>WHO WAS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ABOUT GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO IS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO GEORGE AIRY IS</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO WAS GEORGE AIRY</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO GEORGE AIRY WAS</pattern>
> <template><srai>DEFINE AIRY</srai></template>
> </category>
>
> (This is where my mind went running wild) Now tell me if this would work.
> If
> I could search for an exact match for all the ****s as in "DEFINE <star/>
> <star index="2" /> <star index="3" /> <star index="4" /> etc." or in the
> case of last name first "DEFINE <star index="2" /> <star/>". If this would
> work then the reductions for each name would not be necessary and I could
> replace <pattern>_ AGENTS OF CHANGE</pattern> with <pattern>DEFINE AGENTS
> OF
> CHANGE</pattern> and more effectively search for terminology made up of
> longer strings of words. It would just be a matter of adjusting the data
> set
> something like this:
> <category>
> <pattern>WILL YOU TELL ME ABOUT *</pattern>
> <template><srai>DEFINE <STAR/></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ABOUT * *</pattern>
> <template><srai>DEFINE <STAR/> <star index="2" /></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME ABOUT * * *</pattern>
> <template><srai>DEFINE <STAR/> <star index="2" /> <star index="3"
> /></srai></template>
> </category> (and so on)
> <category>
> <pattern>WILL YOU TELL ME WHO IS * *</pattern>
> <template><srai>DEFINE <star index="2" /></srai></template>
> </category>
> <category>
> <pattern>WILL YOU TELL ME WHO IS * *</pattern>
> <template><srai>DEFINE <star index="2" /> <STAR/></srai></template>
> </category>
>
> Now if this would work I would re-do the set to look for short strings as
> well as individual words and dump most of (if not all) the reductions that
> go with the names. It may be that I have to index the first <star/> too
> to
> make it work right. Or, the whole thing might not work at all.
>
>
> _______________________________________________
> 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/
>
More information about the pandorabots-general
mailing list