|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
including a SRAI tag in to condition tagsI'm trying to make several paths using the condition tag because it is possible to get the same answer and I want to redirect depends of the last words of the that value
I have this, but I cant get any positive results <category> <pattern>98</pattern> <template> <think><set name="ultimas2Palabras"><that/></set></think> <condition name="ultimas2Palabras" value="* PODER CONTINUAR"><srai>COMENZAROE</srai></condition> <condition name="ultimas2Palabras" value="* HAYA HECHO"><srai>OEAC</srai>2</condition> <condition name="ultimas2Palabras" value="* ESTE LISTO"><srai>OENM</srai>3</condition> almacenado <get name="ultimas2Palabras"/> </template> </category> |
|
|
Re: including a SRAI tag in to condition tagsThe condition tag is the most difficult tag IMHO to
implement in an interpreter and easiest to break across interpreter versions. You almost _always_ have AIML tag implementation differences between interpreters, regardless, but more than usual is the condition tag. Which AIML interpreter are you using and what is the version of it? Also, for what you're trying to achieve is it possible to avoid the condition tag and simplify your AIML just by using SRAI directly? For example: <category> <pattern>98</pattern> <srai><that/></srai> </category> <category> <pattern>* PODER CONTINUAR</pattern> <srai>COMENZAROE</srai> </condition> <category> <pattern>* HAYA HECHO</pattern> <srai>OEAC</srai>2 </condition> <category> <pattern>* ESTE LISTO</pattern> <srai>OENM</srai>3 </condition> </template> </category> If you don't want your end user to be able to directly call those 3 pattern's directly and you want to only be able to call them from pattern 98 you might be able to use the <topic> tags to protect them and (re)set the topic using <set>. That is, if your interpreter has that implemented to allow that :-D If it doesn't, you can always use poor man's method of topics by putting in front some specific characters that aren't likely to be called by your end user. For example, two "z"'s as below so only pattern 98 is likely to call those patterns: <category> <pattern>98</pattern> <srai>ZZ <that/></srai> </category> <category> <pattern>ZZ * PODER CONTINUAR</pattern> <srai>COMENZAROE</srai> </condition> <category> <pattern>ZZ * HAYA HECHO</pattern> <srai>OEAC</srai>2 </condition> <category> <pattern>ZZ * ESTE LISTO</pattern> <srai>OENM</srai>3 </condition> </template> </category> Hope this helps! --- superantonio <superantonioxp@...> wrote: > > I'm trying to make several paths using the condition > tag because it is > possible to get the same answer and I want to > redirect depends of the last > words of the that value > > I have this, but I cant get any positive results > > <category> > <pattern>98</pattern> > > <template> > <think><set > name="ultimas2Palabras"><that/></set></think> > <condition name="ultimas2Palabras" value="* PODER > CONTINUAR"><srai>COMENZAROE</srai></condition> > <condition name="ultimas2Palabras" value="* HAYA > HECHO"><srai>OEAC</srai>2</condition> > <condition name="ultimas2Palabras" value="* ESTE > LISTO"><srai>OENM</srai>3</condition> > almacenado <get name="ultimas2Palabras"/> > </template> > </category> > > -- > View this message in context: > > Sent from the Alicebot General mailing list archive > at Nabble.com. > > _______________________________________________ > This is the alicebot-general mailing list > Reply to alicebot-general@... > Unsubscribe and change preferences at > http://list.alicebot.org/mailman/listinfo/alicebot-general > Learn netiquette at > http://www.dtcc.edu/cs/rfc1855.html > Learn to read at http://www.literacy.org/ > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ This is the alicebot-general mailing list Reply to alicebot-general@... Unsubscribe and change preferences at http://list.alicebot.org/mailman/listinfo/alicebot-general Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html Learn to read at http://www.literacy.org/ |
|
|
Re: including a SRAI tag in to condition tagsWhoops, bad AIML. I'm just making this stuff off the
top of my head here. This should be closer to runnable AIML :-) <category> <pattern>98</pattern> <template><srai><that/></srai></template> </category> <category> <pattern>* PODER CONTINUAR</pattern> <template><srai>COMENZAROE</srai></template> </category> <category> <pattern>* HAYA HECHO</pattern> <template><srai>OEAC</srai>2</template> </category> <category> <pattern>* ESTE LISTO</pattern> <template><srai>OENM</srai>3</template> </category> --- mehri <foreverlinux@...> wrote: > The condition tag is the most difficult tag IMHO to > implement in an interpreter and easiest to break > across interpreter versions. > > You almost _always_ have AIML tag implementation > differences between interpreters, regardless, but > more > than usual is the condition tag. > > Which AIML interpreter are you using and what is the > version of it? > > Also, for what you're trying to achieve is it > possible > to avoid the condition tag and simplify your AIML > just > by using SRAI directly? > > For example: > > <category> > <pattern>98</pattern> > <srai><that/></srai> > </category> > > <category> > <pattern>* PODER CONTINUAR</pattern> > <srai>COMENZAROE</srai> > </condition> > > <category> > <pattern>* HAYA HECHO</pattern> > <srai>OEAC</srai>2 > </condition> > > <category> > <pattern>* ESTE LISTO</pattern> > <srai>OENM</srai>3 > </condition> > > </template> > </category> > > If you don't want your end user to be able to > directly > call those 3 pattern's directly and you want to only > be able to call them from pattern 98 you might be > able > to use the <topic> tags to protect them and (re)set > the topic using <set>. That is, if your interpreter > has that implemented to allow that :-D > > If it doesn't, you can always use poor man's method > of > topics by putting in front some specific characters > that aren't likely to be called by your end user. > For > example, two "z"'s as below so only pattern 98 is > likely to call those patterns: > > <category> > <pattern>98</pattern> > <srai>ZZ <that/></srai> > </category> > > <category> > <pattern>ZZ * PODER CONTINUAR</pattern> > <srai>COMENZAROE</srai> > </condition> > > <category> > <pattern>ZZ * HAYA HECHO</pattern> > <srai>OEAC</srai>2 > </condition> > > <category> > <pattern>ZZ * ESTE LISTO</pattern> > <srai>OENM</srai>3 > </condition> > > </template> > </category> > > Hope this helps! > > --- superantonio <superantonioxp@...> wrote: > > > > > I'm trying to make several paths using the > condition > > tag because it is > > possible to get the same answer and I want to > > redirect depends of the last > > words of the that value > > > > I have this, but I cant get any positive results > > > > <category> > > <pattern>98</pattern> > > > > <template> > > <think><set > > name="ultimas2Palabras"><that/></set></think> > > <condition name="ultimas2Palabras" value="* PODER > > CONTINUAR"><srai>COMENZAROE</srai></condition> > > <condition name="ultimas2Palabras" value="* HAYA > > HECHO"><srai>OEAC</srai>2</condition> > > <condition name="ultimas2Palabras" value="* ESTE > > LISTO"><srai>OENM</srai>3</condition> > > almacenado <get name="ultimas2Palabras"/> > > </template> > > </category> > > > > -- > > View this message in context: > > > > > Sent from the Alicebot General mailing list > archive > > at Nabble.com. > > > > _______________________________________________ > > This is the alicebot-general mailing list > > Reply to alicebot-general@... > > Unsubscribe and change preferences at > > > > > Learn netiquette at > > http://www.dtcc.edu/cs/rfc1855.html > > Learn to read at http://www.literacy.org/ > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ This is the alicebot-general mailing list Reply to alicebot-general@... Unsubscribe and change preferences at http://list.alicebot.org/mailman/listinfo/alicebot-general Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html Learn to read at http://www.literacy.org/ |
|
|
Re: including a SRAI tag in to condition tagsI'm using programD and what I'm triyng to achieve is because my BOT is
going to help the users to configure ther e-mails accounts, so, after identify the type of e-mail program they are useing, the bot show several screen shots and explanations about how to configure it, so, on ecah one, I'm just expect the same kind of response of the user such as ok go on contine etc. in order to show the next screen shot an explanation, dependhing of the <that/> is the way I'm controling which is the next rigth now I have the same batch of <category> tags for each response and screen, so, I would like to use the condition tag to make the code shorter for example <category> if the user response is OK using the condition tag of the last that information if <that/> = * ESTE LISTO so the <srai/> should be OEUS if <that/> = * HAYA HECHO so the <srai/> should be OEUD if <that/> = * PODER SEGUIR so the <srai/> should be OESDR <category> etc. your code will make the AIML code shorter but I'd like to use some thing like above, if it's possible. Thanks _______________________________________________ This is the alicebot-general mailing list Reply to alicebot-general@... Unsubscribe and change preferences at http://list.alicebot.org/mailman/listinfo/alicebot-general Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html Learn to read at http://www.literacy.org/ |
|
|
Re: including a SRAI tag in to condition tagsSince this is ProgramD, I would cross post this to the
ProgramD mailing list. Try and trim down your example to a very bare bones example since it might be a bug with the interpreter. For what you're trying to achieve I would investigate using topic's if possible. Sure, you can use conditions, but topic's might be more elegant. --- Antonio Jimenez <superantonioxp@...> wrote: > I'm using programD and what I'm triyng to achieve is > because my BOT is > going to help the users to configure ther e-mails > accounts, so, after > identify the type of e-mail program they are useing, > the bot show > several screen shots and explanations about how to > configure it, so, > on ecah one, I'm just expect the same kind of > response of the user > > such as > ok > go on > contine > etc. > > in order to show the next screen shot an > explanation, dependhing of > the <that/> is the way I'm controling which is the > next > > rigth now I have the same batch of <category> tags > for each response > and screen, so, I would like to use the condition > tag to make the code > shorter > for example > > <category> > if the user response is OK > > using the condition tag of the last that information > > if <that/> = * ESTE LISTO so the <srai/> should be > OEUS > if <that/> = * HAYA HECHO so the <srai/> should be > OEUD > if <that/> = * PODER SEGUIR so the <srai/> should > be OESDR > <category> > > etc. > > your code will make the AIML code shorter but I'd > like to use some > thing like above, if it's possible. > > Thanks > _______________________________________________ > This is the alicebot-general mailing list > Reply to alicebot-general@... > Unsubscribe and change preferences at > > Learn netiquette at > http://www.dtcc.edu/cs/rfc1855.html > Learn to read at http://www.literacy.org/ > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ This is the alicebot-general mailing list Reply to alicebot-general@... Unsubscribe and change preferences at http://list.alicebot.org/mailman/listinfo/alicebot-general Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html Learn to read at http://www.literacy.org/ |
|
|
|
| Free Forum Powered by Nabble | Forum Help |