I've got a question about when there are matches in succession (in a row)...
The code below is a simple learn pattern (feel free to critique) that I'd like to function like:
input - learn a dog can jump high
pattern - can a dog jump high?
The problem is that since the matches are in succession, the pattern that activates is actually
pattern - can a dogjump high
I've considered a regex in between the matches that simply grabs a space "\s", rearranging the process tag, or throwing in a type of wildcard (they only grab words)...
Any suggestions would be greatly appreciated!
Code: Select all
<Model>
<Pattern>LEARN * CAN *</Pattern>
<Response>Alright, I'll remember that <Match Index="1" /> can <Match Index="2" />.
<Learn>
<Concept Name="Learn" Type="Public" Repeat="True">
<Model>
<Pattern>CAN <Process><Match Index="1" /><Match Index="2" /></Process></Pattern>
<Response>Yes, <Process><Match Index="1" /></Process> can <Process><Match Index="2" /></Process></Response>
</Model>
</Concept>
</Learn>
</Response>
</Model>