![]() |
Evaluation flow, declaring new :response sentences and miscelany |
Okay, I'm stumped. I think I've simplified the POS tagging to simply associating everything. I've successfully done that and had it check if all words of a statement are associated. I can't however bifurcate the evaluation into a question or an assertion routine. I want to divert to a question routine if there is an "is" present, but loop through the remaining words. Got that, but I'm not seeing a way to loop through all words without the "is" without instructions to loop on :anything (which disregards the "is" diversion). I think what is needed is an 'case NOT "is" ..' statement, which I tried with no success. Any ideas?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 // Initial Self programmed state machine for Comprehension // This state machine is used by the bot to program itself. State:Associate0 { case :input goto State:processState for each #word of :sentence; // case :input goto State:sentenceState for each #word of :sentence; :input { set #input to :sentence; set #speaker to :speaker; set #comment to "// case :input goto State:sentenceState for each #word of :sentence; "; set #comment to " "; set #conversation to :conversation; set #target to :target; } :sentence { set #instantiation to #sentence; } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 // Initial Self programmed state machine for Comprehension // This state machine is used by the bot to program itself. State:Associate0 { case :input goto State:processState for each #word of :sentence; // case :input goto State:sentenceState for each #word of :sentence; :input { set #input to :sentence; set #speaker to :speaker; set #comment to "// case :input goto State:sentenceState for each #word of :sentence; "; set #comment to " "; set #conversation to :conversation; set #target to :target; } :sentence { set #instantiation to #sentence; } |
|
|
|
|