AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

using wildcards or brackets in a <that> statement?
 
 

I have a <template> which AIML (using Pandorabots) successfully parses out that <that> as the following (from the trace in Playground):

<that> <REMEMBER><KEYWORD>GRATITUDE</KEYWORD><MEMORY>JODIE</MEMORY></REMEMBER

from the developer, same thing:

"thats"
"<REMEMBER><KEYWORD>GRATITUDE</KEYWORD><MEMORY>COCONUT OIL AND GRASSFED BUTTER</MEMORY></REMEMBER>" 
]

However, I cannot write a <that> to match.

I have both tried a literal match, and also substituting with a ^ wildcard.

I read in the tutorial that <that> can use wildcard, so I would have thought at least using a ^ between each word would have resulted in a match.

Question: how can I write a <that> statement that will match?

 

 
  [ # 1 ]

I think you may struggle here as the <that> will strip out the tags which will turn:

<REMEMBER><KEYWORD>GRATITUDE</KEYWORD><MEMORY>JODIE</MEMORY></REMEMBER

into:

GRATITUDE JODIE 

How about inserting some characters such as XSPLITTER to split up the <that> like this:

<REMEMBER><KEYWORD>GRATITUDE</KEYWORDXSPLITTER <MEMORY>JODIE</MEMORY></REMEMBER

This will make your output:

GRATITUDE XSPLITTER JODIE 

Now you can check for:

<that>* XSPLITTER *</that
 

 
  [ # 2 ]

Hi, Steve—- thanks——I didn’t know that it got all stripped out.

I am coming up with a work around since I have other tags.  Looked into using the index for <that> tags as a possible work around.

 

 
  login or register to react