Rich, thanks for reporting this bug. When I looked into the archives I
couldn't find a similar mentioning. Although I don't have a solution - yet.
It's been confirmed on both PHP 4 and 5.
When I looked into the code it appears to be working normally, but I do have
a suspicion that the code for the processing of trees including an
underscore might not work as intended since the call for storing a variable
requires a parameter for addition instead of new creation. How and why I
still need to figure out.
To be continued.
Anne.
-----Oorspronkelijk bericht-----
Van:
alicebot-general-bounces@...
[mailto:
alicebot-general-bounces@...] Namens Dr. Rich Wallace
Verzonden: vrijdag 16 mei 2008 19:52
Aan: Alicebot and AIML General Discussion
Onderwerp: [alicebot-general] Program E bug
I found a bug in Program E and I'm wondering if anyone else has
discovered a workaround.
Suppose you create a simple default category:
<category>
<pattern>*</pattern>
<template>Keywords: <star/></template>
</category>
Assuming there is no other AIML, this category will just echo
whatever you type:
Client: Hello there
Bot: Keywords: Hello there
Client: testing one two three
Bot: Keywords: testing one two three
Now add a second AIML category,
<category>
<pattern>_ TEST ME *</pattern>
<template><srai>TEST ME</srai></template>
</category>
We get the expected result:
Client: xxx test me xxx
Bot: Keywords: TEST ME
Ok, finally, add one more category:
<category>
<pattern>TEST * ME</pattern>
<template><srai>TEST ME</srai></template>
</category>
Now it is messed up:
Client: test xxx me
Bot: ME
What happened to the "TEST"?
and even the one that worked before is broken:
Client: xxx test me xxx
Bot: ME
If we copy the same AIML test file over to Pandorabots:
Client: test xxx me
Bot: TEST ME
Client: xxx test me xxx
Bot: TEST ME
Does anyone with Program E experience have a workaround for this problem?
_______________________________________________
This is the alicebot-general mailing list
Reply to
alicebot-general@...
Unsubscribe and change preferences at
http://list.alicebot.org/mailman/listinfo/alicebot-generalLearn netiquette at
http://www.dtcc.edu/cs/rfc1855.htmlLearn to read at
http://www.literacy.org/_______________________________________________
This is the alicebot-general mailing list
Reply to
alicebot-general@...
Unsubscribe and change preferences at
http://list.alicebot.org/mailman/listinfo/alicebot-generalLearn netiquette at
http://www.dtcc.edu/cs/rfc1855.htmlLearn to read at
http://www.literacy.org/