2016-04-14 5 views

答えて

1

はここでスタートだ:

スタックオーバーフローに関する質問を尋ねたとき、あなたが利用できるマニュアルを読み、作ったことを実証するために、少なくともトークン努力をしなければならない
CLIPS> 
(deftemplate sentence 
    (multislot text) 
    (slot deleted_count (default 0))) 
CLIPS> 
(defrule delete 
    ?f <- (sentence (text $?b ?word&:(< (str-length ?word) 4) $?e) 
        (deleted_count ?count)) 
    => 
    (modify ?f (text ?b ?e) (deleted_count (+ 1 ?count)))) 
CLIPS> (assert (sentence (text the quick brown fox jumped over the lazy dogs))) 
<Fact-1> 
CLIPS> (run) 
CLIPS> (facts) 
f-0  (initial-fact) 
f-4  (sentence (text quick brown jumped over lazy dogs) (deleted_count 3)) 
For a total of 2 facts. 
CLIPS> 

この問題を解決する努力をしています。

+0

thx!私はこのような何かをしようとした '(defmethod壱 \t() \t(バインド?入力()) "ハンマーdrilはネジを見て" $を爆発 \t(?バインド \t(ループ-FOR-) "" 結果カウント(?I 1〜4)を行う \t \t(バインド?ワード(n番目の$?I?入力)) \t \t(IF(<(長さ$?語)4)その後、 \t \t \t(STR-猫?単語?結果) \t \t \t \t \t(プリントアウトトン?ワードCRLF) \t) \t? を引き起こします) ' – IchigoWalker

関連する問題