【发布时间】:2017-09-24 09:47:01
【问题描述】:
我想让一个人过敏,然后将过敏逐个过敏分开来断言每个人。为此,我使用do-backward-chaining、assert-string 和readline。
(do-backward-chaining allergies)
(defrule ask-allergies
(need-allergies nil)
=>
(printout t "Tell me your allergies (tomato, cheese): ")
(assert-string (str-cat "(allergies " (readline) ")")))
(defrule assert-allergies
(allergies $? ?a $?)
=>
(assert (allergy ?a)))
(reset)
(run)
但是输出这个错误:
Jess reported an error in routine Context.getVariable
while executing (reset).
Message: No such variable _blank_mf1.
【问题讨论】: