I have a problem with <that> tag.My code this like this:
<category>
<pattern>HELLO</pattern>
<template>
<random>
<li>Hello there, wellcome to counselling service</li>
<li>Hello there what is your name?</li>
</random></template>
</category>
<category>
<pattern>_ NAME IS *</pattern>
<that>HELLO THERE WHAT IS YOUR NAME</that>
<template>Nice to meet you<set name="name"><star index="2"/></set></template>
</category>
But it does not work that way.When I use the “My name is Rangi” input after the “Hello there what is your name?” robot
input.I checked the syntax with the AIML reference manual at:
http://www.alicebot.org/documentation/aiml-reference.html#that
and other source files which uses the <that> tag.But is does not work.The interpreter I am using to check my aiml files is the PROGRAME# at:
http://ntoll.org/article/project-an-aiml-chatterbot-in-c
But if I use the code as :
<category>
<pattern>HELLO</pattern>
<template>
<random>
<li>Hello there, wellcome to counselling service</li>
<li>HELLO THERE WHAT IS</li>
</random></template>
</category>
<category>
<pattern>_ NAME IS *</pattern>
<that>HELLO THERE WHAT IS</that>
<template>Nice to meet you<set name="name"><star index="2"/></set></template>
</category>
it works.But both text inside <that> tag and the <li> tag should be in block capital and this works only for four words.
But I need the bot outputs to be in normal text . I checked in the research paper(page no 6) at :
http://www.scribd.com/doc/32243318/A-Comparison-Between-ALICE-and-Elizabeth-Chatbot-Systems
also it says the previous bot output normalized in the same way as the user input, therefore it matches with the text in the <that> tag.
Why this happens this way??
Is there anything wrong in the code??
Is the text in the <that> tag works for only few words??
How can I use this in the correct way??
Hope for a solution.Thank you very much.