AIML issues

  • 2 Replies
  • 1119 Views
*

Niko

  • Roomba
  • *
  • 1
AIML issues
« 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.

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Global Moderator
  • *********************
  • Deep Thought
  • *
  • 5337
Re: AIML issues
« Reply #1 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
In the world of AI, it's the thought that counts!

*

squarebear

  • Trusty Member
  • ********
  • Replicant
  • *
  • 721
  • It's Hip to be Square
Re: AIML issues
« Reply #2 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.
Feeling Chatty?
www.mitsuku.com

 


XKCD Comic : New Robot
by Tyler (XKCD Comic)
Today at 12:00:20 pm
The Minds of Men - All of the creators and pioneers of computing science! ...
by LOCKSUIT (AI in Film and Literature.)
March 25, 2019, 09:02:47 pm
Chatterbot Collection Update
by Freddy (Announcements)
March 25, 2019, 04:31:09 am
Rubik's Cube solves itself
by Art (Video)
March 24, 2019, 06:53:47 pm
advanced mix
by LOCKSUIT (Video)
March 24, 2019, 01:42:24 am
XKCD Comic : Panama Canal
by Tyler (XKCD Comic)
March 23, 2019, 12:00:18 pm
Friday Funny
by LOCKSUIT (General Chat)
March 23, 2019, 05:49:42 am
The Orville
by Freddy (AI in Film and Literature.)
March 22, 2019, 10:10:57 pm

Users Online

73 Guests, 0 Users

Most Online Today: 100. Most Online Ever: 259 (February 07, 2019, 07:00:00 am)

Articles