Hey folks, as my first post-tutorial project I’m trying to build a system that will input phrases one word at a time, and then answer questions. So when I input (one word at a time)
JOHN KICK BALL PERIOD
JOHN goes into the the subject state (spa.State with feedback=1), KICK goes into verb state, and BALL goes into object state. PERIOD triggers putting the whole phrase into a memory state.
So I have (in part):
model.vision = spa.State(D) model.verb = spa.State(D, feedback=1) model.subject = spa.State(D, feedback=1) model.object = spa.State(D, feedback=1) model.phrase = spa.State(D) model.randompointer = spa.State(D) bg_actions = spa.Actions( 'dot(vision, BUILT+ATE+KICK) --> verb=vision', 'dot(vision, JOHN+SUSAN+MIKE) --> subject=vision', 'dot(vision, HOUSE+SUSHI+BALL) --> object=vision', 'dot(vision, PERIOD) --> memory=phrase*randompointer', )
cortical_actions = spa.Actions(
‘phrase = subject * WHO + verb * WHAT + object * TO_WHAT’,
model.cortical = spa.Cortical(cortical_actions)
What I would like to do is have PERIOD trigger multiple actions, namely
- put phrase into memory
- clear subject, verb, and object
- generate a new randompointer
So what is the best way to have one input trigger multiple actions? Also, what is the best way to generate a random pointer?