Question about Program E's matching engine

Help
tanoshimi
2005-04-04
2013-04-25
  • tanoshimi
    tanoshimi
    2005-04-04

    Thanks for posting the solution above Richard although I think the HTML formatting went a bit screwy in your reply. Just to clarify for anybody else stuck on this - there appear to two lines in src/graphnew.php which require changing... at line 212 and 319 it currently says:
    $newword=fastforward($word,$ffremains);           

    which if changed to: $newword=fastforward($word,&$ffremains);

    seems to fix pattern matching for multiple words in *.

    I don't pretend to understand how this works, but I'm sure as hell enjoying creating AIML content for my bot to learn. Serious kudos to everybody involved in this project....

    a.

     
    • tanoshimi
      tanoshimi
      2005-09-25

      Sorry to cross-post in the forum as well as in the 'Bugs' page, but I've been banging my head against a brick wall trying to debug some odd responses, when I noticed something odd...

      While the solution above seems to fix problems in categories containing only one <star />, I'm having problems with the following category:

      <category>
      <pattern>* VERY *</pattern>
      <template>
      <star index="1"/> <star index="2"/>
      </template>
      </category>

      Which is creating the following dialogue:
      ****
      User: I am very clever
      Bot: Very clever am very clever
      ****

      Anybody else come across this, or can help?!

       
      • Ikioi
        Ikioi
        2006-06-30

        I'm using 0.9, and I have the same problem.  The '&' does nothing to help.

         
  • Calipsy
    Calipsy
    2005-04-05

    Hello

    I followed your suggestion and It fixed the problem of repeating words on my bot.