In writing AIML response templates, certain forms of <srai> responses occur over and over again. They are common enough to be worth identifying and naming them. The following table summarizes the four basic types of common <srai> templates: the Synonym, Simple Wildcard, Multiple Wildcard and Divide and Conquer forms.
Synonym form:
<srai>PHRASE</srai>
Simple Wildcard forms:
<srai><star/></srai>
<srai>PHRASE <star/></srai>
<srai><star index="2"/></srai>
Multiple Wildcard forms:
<srai><star/> <star index="2"/></srai>
<srai><star/> PHRASE <star index="2"/></srai>
Divide and Conquer forms:
<srai><star/></srai>. <srai><star index="2"/></srai>
<srai>PHRASE1 <star/></srai>. <srai>PHRASE2 <star index="2"/></srai>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment