Hi all,
I have a topic called ~generic_data_extraction, which as you can guess, encapsulate some generic scripts that extract some basic information that other topics can use.
I was thinking to use the control script to invoke this topic before any other topic, I’ve tried some ways to do so but I’m afraid it interfere with the “natural flow” of the system.
I want everything to work the same as if this script were never executed. the only affect of the generic data extraction script should be to create some facts about the input.
So far, I’m using simplecontrol.top from the HARRY bot. I think the code that invoke the generic_data_extraction topic should be somewhere in this part, but I’m not sure how to implement it:
simplecontrol.top…
u: () # main per-sentence processing
$$currenttopic = %topic # get the current topic at start of volley
if ( %response == 0 ) {nofail(TOPIC ^rejoinder())} # try for rejoinders. might generate an answer directly from what we are looking for.
if (%length == 0 AND %response == 0 )
{
nofail(TOPIC ^gambit($$currenttopic)) # gambit current topic since no input (usually start of conversation)
}
...
Thanks for any advice,
Sam