I’ve put in several hours on this and can’t get anything to work.
Can anyone advise me on how to preview multi-sentence input to get some stats on it before proceeding with regular analysis?
Specifically, my chatbot-patient, in a patient-exam situation, typically faces user input that is very structured. Almost all of it is either a list of lab values, or { response . } { transition . } { question .} I’m paraphrasing—there is one, two, or three sentences, and the ones that occur always occur in that order.
It would help me, before analyzing the input any further, to determine which of those 9 cases I’m facing. I can tell, looking at a single sentence, which one it is.
I can even read through the entire input, using (%more) and nextInput(), etc. to determine what I have. I can put the pattern I’m facing into a variable. I can capture all of the input into a $tmp string like “fine. let’s look at your eyes. When was your last eye exam?”.
What I cannot figure out is the probably very simple thing of how, at that point, to fail the topic that did the analysis of the multi-sentence structure and have the rest of simpletopic.top act as if the 1-4 sentences had just arrived, except I also know now what is coming down the pike while I’m analyzing the first sentence.
I’ve tried all the combinations I can think of, like ^input($tmp) ^fail(topic) , or ^disable(topic thisone) (re-enabling it in the preprocessing step in simplecontrol.top), or adding “priority” to the analysis topic, and what I get is either
(a) the analysis topic (with pattern (*) ) is ignored entirely (despite repeat noerase) or
(b) the analysis topic is processed, and failed, but then no other topic picks up the ball.
Does that make sense?