Héberger votre propre bot plate-forme avec le Bot Libre Entreprise Plate-forme de Bot
Bugs and Features : Define formula response not working?

RE: Define formula response not working?

par aazxcqwe posté Jan 11 2015, 15:45

Hi this is mainly for reference as I just bumped into the file I have for it I am about to close. Two aiml files from Pandorabots, one for the tag and one called "Bad Answer" for corrections. Both use the tag which I'm not sure if is implemented in BotLibre!

I am wondering though if I'll need an type function, as my next script will be one to accept a sequence of commands. It will parse "First do something, second do something, next do something, then do something". In order to create macros, I am hoping the script can recognise those 'somethings' as other whole entities. So if it is "add 2 + 2" it will be able to redirect to the PlusStateMachine's cases. I think this was what does in aiml, not sure if it will do the same here. Thanks

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- Free software (c) 2001-2003 ALICE A.I. Foundation. --> <!-- This program is open source code released under --> <!-- the terms of the GNU General Public License --> <!-- as published by the Free Software Foundation. --> <!-- Complies with AIML 1.0 Tag Set Specification --> <!-- as adopted by the ALICE A.I. Foundation. --> <!-- Learn.aiml written by Square Bear on 6th March 2009 --> <!-- This AIML allows users to teach your bot --> <!-- http://www.square-bear.co.uk --> <aiml> <category> <pattern>LEARN MY * ARE *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that your <star index="1"/> are <star index="2"/> . <srai>XEDUCATE WHAT ARE XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO ARE XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE ARE XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ ARE XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN MY * IS *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that your <star index="1"/> is <star index="2"/> . <srai>XEDUCATE WHAT IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>MY * ARE *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that your <star index="1"/> are <star index="2"/> . <srai>XEDUCATE WHAT ARE XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO ARE XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE ARE XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ ARE XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>MY * IS *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that your <star index="1"/> is <star index="2"/> . <srai>XEDUCATE WHAT IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN * MEANS *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that <star index="1"/> is <star index="2"/> . <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATELANG <star index="1"/> XSPLIT <star index="2"/> XSPLIT a language XSPLIT</srai> </template> </category> <category> <pattern>LEARN * IS *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that <star index="1"/> is <star index="2"/> . <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATELANG <star index="1"/> XSPLIT <star index="2"/> XSPLIT a language XSPLIT</srai> </template> </category> <category> <pattern>LEARN * WAS *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that <star index="1"/> was <star index="2"/> . <srai>XEDUCATE WHAT WAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE WAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO WAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ WAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN * HAS *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that <star index="1"/> has <star index="2"/> . <srai>XEDUCATE WHAT HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT DOES XSPLIT <star index="1"/> XSPLIT HAVE XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>MY * HAS *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that your <star index="1"/> has <star index="2"/> . <srai>XEDUCATE WHAT HAS XSPLIT my <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE HAS XSPLIT my <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO HAS XSPLIT my <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT DOES XSPLIT my <star index="1"/> XSPLIT HAVE XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN MY * HAS *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that your <star index="1"/> has <star index="2"/> . <srai>XEDUCATE WHAT HAS XSPLIT my <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE HAS XSPLIT my <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO HAS XSPLIT my <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT DOES XSPLIT my <star index="1"/> XSPLIT HAVE XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN * ARE *</pattern> <template> <srai>xlearnfact</srai> Ok I will learn that <star index="1"/> are <star index="2"/> . <srai>XEDUCATE WHAT ARE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE ARE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO ARE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ ARE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATELANG <star index="1"/> XSPLIT <star index="2"/> XSPLIT a language XSPLIT</srai> </template> </category> <category> <pattern>XEDUCATE * XSPLIT * XSPLIT *</pattern> <template> <learn> <category> <pattern> <eval><uppercase> <star index="1"/> <star index="3"/> </uppercase></eval> </pattern> <template> <eval> <star index="2"/> </eval> </template> </category> </learn> <learn> <category> <pattern> <eval><uppercase> <star index="1"/> <star index="2"/> </uppercase></eval> </pattern> <template> <eval> <star index="3"/> </eval> </template> </category> </learn> </template> </category> <category> <pattern>XEDUCATE * XSPLIT * XSPLIT * XSPLIT *</pattern> <template> <learn> <category> <pattern> <eval><uppercase> <star index="1"/> <star index="2"/> <star index="3"/> </uppercase></eval> </pattern> <template> <eval> <star index="4"/> </eval> </template> </category> </learn> </template> </category> <category> <pattern>XEDUCATELANG * XSPLIT * XSPLIT * XSPLIT</pattern> <template> <learn> <category> <pattern> <eval><uppercase> <star index="1"/> </uppercase></eval> </pattern> <template> <eval><srai> <star index="2"/> </srai></eval> </template> </category> </learn> <learn> <category> <pattern> <eval>DO YOU SPEAK<uppercase> <star index="3"/> </uppercase></eval> </pattern> <template> <eval>I was taught that <star index="1"/> means <star index="2"/> in <star index="3"/> .</eval> </template> </category> </learn> </template> </category> <category> <pattern>* IS GOING *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT IS GOING XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT GOING XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS GOING XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>* MEANS *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATELANG <star index="1"/> XSPLIT <star index="2"/> XSPLIT a language XSPLIT</srai> </template> </category> <category> <pattern>* IS AN *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS AN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS AN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS AN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>* IS A *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS A XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS A XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS A XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS A XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>* IS THE *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT IS THE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS THE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS THE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>AN * IS *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS AN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS AN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS AN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS AN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>A * IS *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS A XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS A XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS A XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS A XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>* IS *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATELANG <star index="1"/> XSPLIT <star index="2"/> XSPLIT a language XSPLIT</srai> </template> </category> <category> <pattern>* WAS *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT WAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE WAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO WAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ WAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATELANG <star index="1"/> XSPLIT <star index="2"/> XSPLIT a language XSPLIT</srai> </template> </category> <category> <pattern>AN * HAS *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT DOES AN XSPLIT <star index="1"/> XSPLIT HAVE XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>A * HAS *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT DOES A XSPLIT <star index="1"/> XSPLIT HAVE XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>* HAS *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO HAS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT DOES XSPLIT <star index="1"/> XSPLIT HAVE XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>* ARE *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT ARE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE ARE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO ARE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATELANG <star index="1"/> XSPLIT <star index="2"/> XSPLIT a language XSPLIT</srai> </template> </category> <category> <pattern>* WILL BE *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT WILL BE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT WILL XSPLIT <star index="1"/> XSPLIT BE XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE WILL XSPLIT <star index="1"/> XSPLIT BE XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO WILL BE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN * WILL BE *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT WILL BE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT WILL XSPLIT <star index="1"/> XSPLIT BE XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHERE WILL XSPLIT <star index="1"/> XSPLIT BE XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO WILL BE XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>* SAID *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT DID XSPLIT <star index="1"/> XSPLIT SAY XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO SAID XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN * SAID *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT DID XSPLIT <star index="1"/> XSPLIT SAY XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO SAID XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>* IS FROM *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT FROM XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS FROM XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT IS FROM XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN * IS FROM *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT FROM XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO IS FROM XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>A * LIVES IN *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHERE DOES A XSPLIT <star index="1"/> XSPLIT LIVE XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>AN * LIVES IN *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHERE DOES AN XSPLIT <star index="1"/> XSPLIT LIVE XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>* LIVES IN *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHERE DOES XSPLIT <star index="1"/> XSPLIT LIVE XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN * LIVES IN *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHERE DOES XSPLIT <star index="1"/> XSPLIT LIVE XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHO LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> <srai>XEDUCATE WHAT _ LIVES IN XSPLIT <star index="1"/> XSPLIT <star index="2"/> </srai> </template> </category> <category> <pattern>LEARN * MEANS _ IN *</pattern> <template> <srai>xlearnfact</srai> Ok I will add that fact about<person/>to my database. <srai>XEDUCATE WHAT IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> in <star index="3"/> </srai> <srai>XEDUCATE WHERE IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> in <star index="3"/> </srai> <srai>XEDUCATE WHO IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> in <star index="3"/> </srai> <srai>XEDUCATE WHAT _ IS XSPLIT <star index="1"/> XSPLIT <star index="2"/> in <star index="3"/> </srai> <srai>XEDUCATELANG <star index="1"/> XSPLIT <star index="2"/> XSPLIT <star index="3"/> XSPLIT</srai> </template> </category> <category> <pattern>* MEANS _ IN *</pattern> <template> <srai>learn<star/>means <star index="2"/> in <star index="3"/> </srai> </template> </category> <category> <pattern>_ IN * MEANS *</pattern> <template> <srai><star/>means <star index="3"/> in <star index="2"/> </srai> </template> </category> <!-- <category> <pattern>XLEARNFACT</pattern> <template> xloadswf3.http://www.square-bear.co.uk/mitsuku/learnxloadswf3. </template> </category> --> <category> <pattern>XLEARNFACT</pattern> <template></template> </category> </aiml>
<?xml version="1.0" encoding="UTF-8"?> <aiml version="1.0"> <!-- --> <!-- Free software (c) 2011 ALICE A.I. Foundation. --> <!-- This program is open source code released under --> <!-- the terms of the GNU General Public License --> <!-- as published by the Free Software Foundation. --> <!-- Complies with AIML 1.0 Tag Set Specification --> <!-- as adopted by the ALICE A.I. Foundation. --> <!-- --> <!-- Badanswer.aiml: Demo of Pandorabots learning, AIML unquoting and eval --> <!-- Revision Badanswer-0.01 --> <!-- Extended by KnyteTrypper, March 3, 2005 --> <!-- Modified by John Campbell to allow multi-sentence inputs, June 30, 2005 --> <category> <pattern>BAD ANSWER</pattern> <template> <think> <set name="badanswer-input"><input index="2" /></set> <set name="badanswer-that"><that index="2,1" /></set> <set name="badanswer-that-full"><that index="2,*" /></set> <set name="topic">badanswer-prelim</set> </think> Would you like to teach me a new answer to "<get name="badanswer-input"/>"? </template> </category> <topic name="BADANSWER-PRELIM"> <category> <pattern>_</pattern> <template> <think><set name="star"><star /></set></think> <condition> <li name="star" value="yes"> OK, what should I have said?<think><set name="topic">learning new answers</set></think> </li> <li name="star" value="no"> OK, let's forget it then.<think><set name="topic">learning new answers</set></think> </li> <li>Yes or No?</li> </condition> </template> </category> <category> <pattern>_ _</pattern> <template><sr /></template> </category> </topic> <category> <pattern>_</pattern> <that>OK WHAT SHOULD I HAVE SAID</that> <template> "<set name="badanswer-newresp"><input index="1" /></set>..."? <condition> <li name="badanswer-that" value="*"> <think><set name="topic">BADANSWER</set></think> Does this depend on me having just said, "<get name="badanswer-that-full" />"? </li> <li> <think><set name="topic">BADANSWER2</set></think> Do you want me to remember that? </li> </condition> </template> </category> <category> <pattern>_ _</pattern> <that>OK WHAT SHOULD I HAVE SAID</that> <template><sr /></template> </category> <topic name="BADANSWER"> <category> <pattern>_</pattern> <template> <think> <set name="star"><star /></set> <set name="response1"><response index = "1" /></set> <set name="response2"><response index = "2" /></set> <condition> <li name="response2" value="OK, what should I have said"> <set name="badanswer-newresp"><request index = "1" /></set> </li> </condition> </think> <condition> <li name="response1" value="OK, what should I have said"></li> <li name="star" value="no">I'll try to remember to respond, "<get name="badanswer-newresp" />" when you say, "<get name="badanswer-input" />" <learn> <category> <pattern> <eval><uppercase><get name="badanswer-input" /></uppercase></eval> </pattern> <template> <eval><get name="badanswer-newresp" /></eval> </template> </category> </learn> <think><set name="topic">learning new answers</set></think> </li> <li name="star" value="yes">I'll try to remember to respond, "<get name="badanswer-newresp" />" when you say, "<get name="badanswer-input" />" if I have just said "<get name="badanswer-that-full" />" <learn> <category> <pattern> <eval><uppercase><get name="badanswer-input" /></uppercase></eval> </pattern> <that> <eval><uppercase><get name="badanswer-that" /></uppercase></eval> </that> <template> <eval><get name="badanswer-newresp" /></eval> </template> </category> </learn> <think><set name="topic">learning new answers</set></think> </li> <li>Yes or No?</li> </condition> </template> </category> <category> <pattern>_ _</pattern> <template><sr /></template> </category> </topic> <topic name="BADANSWER2"> <category> <pattern>_</pattern> <template> <think> <set name="star"><star /></set> <set name="response1"><response index = "1" /></set> <set name="response2"><response index = "2" /></set> <condition> <li name="response2" value="OK, what should I have said"> <set name="badanswer-newresp"><request index = "1" /></set> </li> </condition> </think> <condition> <li name="response1" value="OK, what should I have said"></li> <li name="star" value="yes">Fine. I'll try to remember to respond, "<get name="badanswer-newresp" />" when you say, "<get name="badanswer-input" />" <learn> <category> <pattern> <eval><uppercase><get name="badanswer-input" /></uppercase></eval> </pattern> <template> <eval><get name="badanswer-newresp" /></eval> </template> </category> </learn> <think><set name="topic">learning new answers</set></think> </li> <li name="star" value="no">OK, let's forget it then. <think><set name="topic">learning new answers</set></think> </li> <li>Yes or No?</li> </condition> </template> </category> <category> <pattern>_ _</pattern> <template><sr /></template> </category> </topic> <category> <pattern>WRONG</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>NOT RIGHT</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT IS WRONG</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT IS NOT RIGHT</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT IS INCORRECT</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT ANSWER IS NOT CORRECT</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT ANSWER IS INCORRECT</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT ANSWER IS WRONG</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT ANSWER IS NOT RIGHT</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT ANSWER WAS BAD</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT WAS A BAD ANSWER</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT WAS AN INCORRECT ANSWER</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT WAS THE WRONG ANSWER</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>THAT ANSWER WAS NOT RIGHT</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>WRONG ANSWER</pattern> <template><srai>BAD ANSWER</srai> </template> </category> <category> <pattern>YOUR ANSWER WAS WRONG</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>YOUR ANSWER WAS NOT RIGHT</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>YOUR ANSWER WAS NOT CORRECT</pattern> <template><srai>BAD ANSWER</srai></template> </category> <category> <pattern>CAN I TEACH YOU</pattern> <template>Yes, if I give you a bad answer, just say "Bad answer" and you can teach me a new response.</template> </category> <category> <pattern>CAN YOU LEARN</pattern> <template><srai>CAN I TEACH YOU</srai></template> </category> <category> <pattern>DO YOU LEARN</pattern> <template><srai>CAN I TEACH YOU</srai></template> </category> <category> <pattern>CAN I TEACH YOU *</pattern> <template><srai>CAN I TEACH YOU</srai></template> </category> <category> <pattern>CAN YOU LEARN *</pattern> <template><srai>CAN I TEACH YOU</srai></template> </category> <category> <pattern>WILL YOU LEARN *</pattern> <template><srai>CAN I TEACH YOU</srai></template> </category> <category> <pattern>IF * WILL YOU LEARN *</pattern> <template><srai>CAN I TEACH YOU</srai></template> </category> <category> <pattern>DO YOU LEARN *</pattern> <template><srai>CAN I TEACH YOU</srai></template> </category> </aiml>


Id: 702466
Posté: Jan 11 2015, 15:45
Réponses: 0
Vues: 2201, aujourd'hui: 1, semaine: 1, mois: 16
0 0 0.0/5