Ai Dreams Forum

Member's Experiments & Projects => AI Programming => Topic started by: Niko on September 07, 2017, 08:22:55 am

Title: AIML issues
Post by: Niko on September 07, 2017, 08:22:55 am
I recently started a project working with AIML and have gotten into some issues. My bot is supposed to ask a few questions that would give a yes/no reply. However, it's not functioning the way I want it to.
This is the section I'm having issues with:


<category>
   <pattern>SURPRISE ME</pattern>
   <template>Think of a number between 1 and 100. Got it?</template>
</category>
<category>
   <pattern>*</pattern><that>Think of a number between 1 and 100. Got it?</that>
   <template> <think> <set name="Decision"><star/></set> </think> <condition name="Decision"> <li value="YES"> 1   3   5   7   9  11  13  15  17  19
           21  23  25  27  29  31  33  35  37  39
           41  43  45  47  49  51  53  55  57  59
           61  63  65  67  69  71  73  75  77  79
           81  83  85  87  89  91  93  95  97  99: Is your number within this set?</li> <li value="No">Nevermind then</li> </condition> </template>
</category>
<category>
   <pattern>*</pattern> <that> 1   3   5   7   9  11  13  15  17  19
           21  23  25  27  29  31  33  35  37  39
           41  43  45  47  49  51  53  55  57  59
           61  63  65  67  69  71  73  75  77  79
           81  83  85  87  89  91  93  95  97  99: Is your number within this set?</that>
   <template> <think><set name="Decision"><star/></set></think> <condition name="Decision"> <li value="YES"> 2   3   6   7  10  11  14  15  18  19
           22  23  26  27  30  31  34  35  38  39
           42  43  46  47  50  51  54  55  58  59
           62  63  66  67  70  71  74  75  78  79
           82  83  86  87  90  91  94  95  98  99: Is your number within this set?</li> <li value="NO"> 2   3   6   7  10  11  14  15  18  19
           22  23  26  27  30  31  34  35  38  39
           42  43  46  47  50  51  54  55  58  59
           62  63  66  67  70  71  74  75  78  79
           82  83  86  87  90  91  94  95  98  99: Is your number within this set?</li> </condition> </template>
</category>


I was using GaitoBot to test the bots responses and on the last category I don't seem to get a response. Any help would be greatly appreciated :)

Also, if anyone knows a better program to test the bot I would love to hear that as well. GaitoBot has been quite frustrating, as it shows errors even when the code is fine.
Title: Re: AIML issues
Post by: Art on September 07, 2017, 12:39:15 pm
Welcome Niko!

Not sure why you're experiencing issues with this but hopefully some others will chime in.

BTW, for those interested in Gaitobot, here is a link: https://www.gaitobot.de/gaitobot/Default.aspx (https://www.gaitobot.de/gaitobot/Default.aspx)
Title: Re: AIML issues
Post by: squarebear on September 07, 2017, 09:45:55 pm
It's because you have punctuation in your <that> tags. No punctuation allowed.
If you can't solve it, let me get the Loebner Prize out of the way on 16th September and I'll help further.