【发布时间】:2015-07-23 22:36:57
【问题描述】:
(defrule amphibian ""
(water-aniaml yes)
(aquatic yes)
(eats-instencts no)
(not(guess ?))
=>
(assert (guess("guess not amphibian"))))
(defrule skin-dddeceptionn ""
(water-aniaml yes)
(aquatic yes)
(eats-instencts yes)
(has-four-legs yes)
(has-long-tongue yes)
(can-jump yes)
(has-poison no)
(skin-deception yes)
(not(guess ?))
=>
(assert (guess( "guess it's european common toad frog"))))
**我收到了这个错误
[PRNTUTIL2] 语法错误:检查 defrule 的适当语法。
错误:
(defrule MAIN::not-skin-ddeceptionn ""
(或 (water-aniaml 是的)
(水生是)
(吃——是的)
(有四脚是的)
(有长舌是的)
(可以跳是的)
(有毒无)
(皮肤欺骗没有)
(不是(猜?))
=> **
出了什么问题,我尝试使用 or 但使用 (or) 和不使用 (or) 时仍然出错 我该如何解决这个问题>>?????请帮忙?!!!
【问题讨论】:
标签: decision-tree clip clips expert-system