Following up my previous message...
My system works by asserting a "query" and then letting the rules take
over. Strictly within the context of jess, it ends up looking like this:
(deftemplate query
(slot words))
(assert (query (words (create$ Tell me what is in my 401k))))
My question is, if I'm in raw Java to collect my input and tokenize it,
how do I then assert this template? I tried calling Funcall("assert", ...)
with my list, but it seems like I would need to have a nested list in
order to do that. I tried this:
list = ...my ValueVector...
w = new ValueVector();
w.add(new Value("words", RU.ATOM));
w.add(new ValueVector(list, RU.LIST));
q = new ValueVector();
q.add(new Value("query", RU.ATOM));
q.add(new ValueVector(list, RU.LIST));
Now, in my too lispy brain, q would be the equivalent of (query (words (my
list of tokens))). But, that doesn't work.
Duane
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------