crimeSTAR wrote: What is the difference between clicking "install" and clicking "submit"?
zemaj wrote: I don't know of any other extensive collection of AIML files. I believe that those 40-50 are about all your going to find anywhere. I'd be happy for someone to prove me wrong, but I've found no other files in my search - reasonable sized (i.e. more than a few entries) ones anyway.
Code: Select all
<category>
<pattern>* HOT CHOCOLATE</pattern>
<template>
With or without whipcream?
</template>
</category>
<category>
<pattern>WITH *</pattern>
<that>WITH OR WITHOUT WHIPCREAM</that>
<template>
Hot chocolate with whipcream comming up :)
</template>
</category>
<category>
<pattern>WITHOUT *</pattern>
<that>WITH OR WITHOUT WHIPCREAM</that>
<template>
Plain hot chocolate comming up (y)
</template>
</category>
The Pelican wrote: About this AIML file I am building I am having a question:I have loaded only this file into her brain. After a question on which Alice responds with "With or without whipcream?" I post "WITHOUT whipcream" and Alice has no response. Same thing for the "WITH whipcream": no response...Code: Select all
<category> <pattern>* HOT CHOCOLATE</pattern> <template> With or without whipcream? </template> </category> <category> <pattern>WITH *</pattern> <that>WITH OR WITHOUT WHIPCREAM</that> <template> Hot chocolate with whipcream comming up :) </template> </category> <category> <pattern>WITHOUT *</pattern> <that>WITH OR WITHOUT WHIPCREAM</that> <template> Plain hot chocolate comming up (y) </template> </category>
![]()
What am I doing wrong in the code? And spelling errors can't be the problem since I am copy-pasting from the file to be absolutely sure (first get the technology working, than getting the typo's out).
Code: Select all
<category>
<pattern>* HOT CHOCOLATE</pattern>
<template>
With or without whipcream
</template>
</category>
<category>
<pattern>_</pattern>
<that>WITH OR WITHOUT WHIPCREAM</that>
<template>
<think><set name='qar'><norm><star/></norm</set></think>
<condition>
<li name='qar' value='WITH *'>Hot chocolate with whipcream comming up :)</li>
<li name='qar' value='WITHOUT *'>Plain hot chocolate comming up (y)</li>
<li>With or without whipcream</li>
</condition>
</template>
Code: Select all
//
// QAR normalisation function
//
function ct_norm($xmlnode,$inputstar,$thatstar,$topicstar)
{
// this is specially for normalising the sentences for QAR (Question Answer Responsse) system
$content = recursechildren(realchild($xmlnode),$inputstar,$thatstar,$topicstar);
$this_result = normalsentences($content);
return strtoupper($this_result[0]);
}
Code: Select all
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
carebear wrote: I know the mod basically takes a post and responds and enters both posts at pretty much the same time, but is there a way to delay the posting so it is more realistically like another user? Maybe 30 seconds, 2 minutes, etc...