亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? animal.clp

?? 一個有關專家系統的CLISP 源代碼
?? CLP
字號:
;;;======================================================
;;;   Animal Identification Expert System
;;;
;;;     A simple expert system which attempts to identify
;;;     an animal based on its characteristics.
;;;     The knowledge base in this example is a 
;;;     collection of facts which represent backward
;;;     chaining rules. CLIPS forward chaining rules are
;;;     then used to simulate a backward chaining inference
;;;     engine.
;;;
;;;     CLIPS Version 6.0 Example
;;; 
;;;     To execute, merely load, reset, and run.
;;;     Answer questions yes or no.
;;;======================================================

;;;***************************
;;;* DEFTEMPLATE DEFINITIONS *
;;;***************************

(deftemplate rule 
   (multislot if)
   (multislot then))

;;;**************************
;;;* INFERENCE ENGINE RULES *
;;;**************************

(defrule propagate-goal ""
   (goal is ?goal)
   (rule (if ?variable $?)
         (then ?goal ? ?value))
   =>
   (assert (goal is ?variable)))

(defrule goal-satified ""
   (declare (salience 30))
   ?f <- (goal is ?goal)
   (variable ?goal ?value)
   (answer ? ?text ?goal)
   =>
   (retract ?f)
   (format t "%s%s%n" ?text ?value))

(defrule remove-rule-no-match ""
   (declare (salience 20))
   (variable ?variable ?value)
   ?f <- (rule (if ?variable ? ~?value $?))
   =>
   (retract ?f))

(defrule modify-rule-match ""
   (declare (salience 20))
   (variable ?variable ?value)
   ?f <- (rule (if ?variable ? ?value and $?rest))
   =>
   (modify ?f (if ?rest)))

(defrule rule-satisfied ""
   (declare (salience 20))
   (variable ?variable ?value)
   ?f <- (rule (if ?variable ? ?value)
               (then ?goal ? ?goal-value))
   =>
   (retract ?f)
   (assert (variable ?goal ?goal-value)))

(defrule ask-question-no-legalvalues ""
   (declare (salience 10))
   (not (legalanswers $?))
   ?f1 <- (goal is ?variable)
   ?f2 <- (question ?variable ? ?text)
   =>
   (retract ?f1 ?f2)
   (format t "%s " ?text)
   (assert (variable ?variable (read))))

(defrule ask-question-legalvalues ""
   (declare (salience 10))
   (legalanswers ? $?answers)
   ?f1 <- (goal is ?variable)
   ?f2 <- (question ?variable ? ?text)
   =>
   (retract ?f1)
   (format t "%s " ?text)
   (printout t ?answers " ")
   (bind ?reply (read))
   (if (member (lowcase ?reply) ?answers) 
     then (assert (variable ?variable ?reply))
          (retract ?f2)
     else (assert (goal is ?variable))))

;;;***************************
;;;* DEFFACTS KNOWLEDGE BASE *
;;;***************************

(deffacts knowledge-base 
   (goal is type.animal)
   (legalanswers are yes no)
   (rule (if backbone is yes) 
         (then superphylum is backbone))
   (rule (if backbone is no) 
         (then superphylum is jellyback))
   (question backbone is "Does your animal have a backbone?")
   (rule (if superphylum is backbone and
          warm.blooded is yes) 
         (then phylum is warm))
   (rule (if superphylum is backbone and
          warm.blooded is no) 
         (then phylum is cold))
   (question warm.blooded is "Is the animal warm blooded?")
   (rule (if superphylum is jellyback and
          live.prime.in.soil is yes) 
         (then phylum is soil))
   (rule (if superphylum is jellyback and
          live.prime.in.soil is no) 
         (then phylum is elsewhere))
   (question live.prime.in.soil is "Does your animal live primarily in soil?")
   (rule (if phylum is warm and
          has.breasts is yes) 
         (then class is breasts))
   (rule (if phylum is warm and
          has.breasts is no) 
         (then type.animal is bird/penguin))
   (question has.breasts is "Normally, does the female of your animal nurse its young with milk?")
   (rule (if phylum is cold and
          always.in.water is yes) 
         (then class is water))
   (rule (if phylum is cold and
          always.in.water is no) 
         (then class is dry))
   (question always.in.water is "Is your animal always in water?")
   (rule (if phylum is soil and
          flat.bodied is yes) 
         (then type.animal is flatworm))
   (rule (if phylum is soil and
          flat.bodied is no) 
         (then type.animal is worm/leech))
   (question flat.bodied is "Does your animal have a flat body?")
   (rule (if phylum is elsewhere and
          body.in.segments is yes) 
         (then class is segments))
   (rule (if phylum is elsewhere and
          body.in.segments is no) 
         (then class is unified))
   (question body.in.segments is "Is the animals body in segments?")
   (rule (if class is breasts and
          can.eat.meat is yes) 
         (then order is meat))
   (rule (if class is breasts and
          can.eat.meat is no) 
         (then order is vegy))
   (question can.eat.meat is "Does your animal eat red meat?")
   (rule (if class is water and
          boney is yes) 
         (then type.animal is fish))
   (rule (if class is water and
          boney is no) 
         (then type.animal is shark/ray))
   (question boney is "Does your animal have a boney skeleton?")
   (rule (if class is dry and
          scally is yes) 
         (then order is scales))
   (rule (if class is dry and
          scally is no) 
         (then order is soft))
   (question scally is "Is your animal covered with scaled skin?")
   (rule (if class is segments and
          shell is yes) 
         (then order is shell))
   (rule (if class is segments and
          shell is no) 
         (then type.animal is centipede/millipede/insect))
   (question shell is "Does your animal have a shell?")
   (rule (if class is unified and
          digest.cells is yes) 
         (then order is cells))
   (rule (if class is unified and
          digest.cells is no) 
         (then order is stomach))
   (question digest.cells is "Does your animal use many cells to digest it's food instead of a stomach?")
   (rule (if order is meat and
          fly is yes) 
         (then type.animal is bat))
   (rule (if order is meat and
          fly is no) 
         (then family is nowings))
   (question fly is "Can your animal fly?")
   (rule (if order is vegy and
          hooves is yes) 
         (then family is hooves))
   (rule (if order is vegy and
          hooves is no) 
         (then family is feet))
   (question hooves is "Does your animal have hooves?")
   (rule (if order is scales and
          rounded.shell is yes) 
         (then type.animal is turtle))
   (rule (if order is scales and
          rounded.shell is no) 
         (then family is noshell))
   (question rounded.shell is "Does the animal have a rounded shell?")
   (rule (if order is soft and
          jump is yes) 
         (then type.animal is frog))
   (rule (if order is soft and
          jump is no) 
         (then type.animal is salamander))
   (question jump is "Does your animal jump?")
   (rule (if order is shell and
          tail is yes) 
         (then type.animal is lobster))
   (rule (if order is shell and
          tail is no) 
         (then type.animal is crab))
   (question tail is "Does your animal have a tail?")
   (rule (if order is cells and
          stationary is yes) 
         (then family is stationary))
   (rule (if order is cells and
          stationary is no) 
         (then type.animal is jellyfish))
   (question stationary is "Is your animal attached permanently to an object?")
   (rule (if order is stomach and
          multicelled is yes) 
         (then family is multicelled))
   (rule (if order is stomach and
          multicelled is no) 
         (then type.animal is protozoa))
   (question multicelled is "Is your animal made up of more than one cell?")
   (rule (if family is nowings and
          opposing.thumb is yes) 
         (then genus is thumb))
   (rule (if family is nowings and
          opposing.thumb is no) 
         (then genus is nothumb))
   (question opposing.thumb is "Does your animal have an opposing thumb?")
   (rule (if family is hooves and
          two.toes is yes) 
         (then genus is twotoes))
   (rule (if family is hooves and
          two.toes is no) 
         (then genus is onetoe))
   (question two.toes is "Does your animal stand on two toes/hooves per foot?")
   (rule (if family is feet and
          live.in.water is yes) 
         (then genus is water))
   (rule (if family is feet and
          live.in.water is no) 
         (then genus is dry))
   (question live.in.water is "Does your animal live in water?")
   (rule (if family is noshell and
          limbs is yes) 
         (then type.animal is crocodile/alligator))
   (rule (if family is noshell and
          limbs is no) 
         (then type.animal is snake))
   (question limbs is "Does your animal have limbs?")
   (rule (if family is stationary and
          spikes is yes) 
         (then type.animal is sea.anemone))
   (rule (if family is stationary and
          spikes is no) 
         (then type.animal is coral/sponge))
   (question spikes is "Does your animal normally have spikes radiating from it's body?")
   (rule (if family is multicelled and
          spiral.shell is yes) 
         (then type.animal is snail))
   (rule (if family is multicelled and
          spiral.shell is no) 
         (then genus is noshell))
   (question spiral.shell is "Does your animal have a spiral-shaped shell?")
   (rule (if genus is thumb and
          prehensile.tail is yes) 
         (then type.animal is monkey))
   (rule (if genus is thumb and
          prehensile.tail is no) 
         (then species is notail))
   (question prehensile.tail is "Does your animal have a prehensile tail?")
   (rule (if genus is nothumb and
          over.400 is yes) 
         (then species is 400))
   (rule (if genus is nothumb and
          over.400 is no) 
         (then species is under400))
   (question over.400 is "Does an adult normally weigh over 400 pounds?")
   (rule (if genus is twotoes and
          horns is yes) 
         (then species is horns))
   (rule (if genus is twotoes and
          horns is no) 
         (then species is nohorns))
   (question horns is "Does your animal have horns?")
   (rule (if genus is onetoe and
          plating is yes) 
         (then type.animal is rhinoceros))
   (rule (if genus is onetoe and
          plating is no) 
         (then type.animal is horse/zebra))
   (question plating is "Is your animal covered with a protective plating?")
   (rule (if genus is water and
          hunted is yes) 
         (then type.animal is whale))
   (rule (if genus is water and
          hunted is no) 
         (then type.animal is dolphin/porpoise))
   (question hunted is "Is your animal, unfortunately, commercially hunted?")
   (rule (if genus is dry and
          front.teeth is yes) 
         (then species is teeth))
   (rule (if genus is dry and
          front.teeth is no) 
         (then species is noteeth))
   (question front.teeth is "Does your animal have large front teeth?")
   (rule (if genus is noshell and
          bivalve is yes) 
         (then type.animal is clam/oyster))
   (rule (if genus is noshell and
          bivalve is no) 
         (then type.animal is squid/octopus))
   (question bivalve is "Is your animal protected by two half-shells?")
   (rule (if species is notail and
          nearly.hairless is yes) 
         (then type.animal is man))
   (rule (if species is notail and
          nearly.hairless is no) 
         (then subspecies is hair))
   (question nearly.hairless is "Is your animal nearly hairless?")
   (rule (if species is 400 and
          land.based is yes) 
         (then type.animal is bear/tiger/lion))
   (rule (if species is 400 and
          land.based is no) 
         (then type.animal is walrus))
   (question land.based is "Is your animal land based?")
   (rule (if species is under400 and
          thintail is yes) 
         (then type.animal is cat))
   (rule (if species is under400 and
          thintail is no) 
         (then type.animal is coyote/wolf/fox/dog))
   (question thintail is "Does your animal have a thin tail?")
   (rule (if species is horns and
          one.horn is yes) 
         (then type.animal is hippopotamus))
   (rule (if species is horns and
          one.horn is no) 
         (then subspecies is nohorn))
   (question one.horn is "Does your animal have one horn?")
   (rule (if species is nohorns and
          lives.in.desert is yes) 
         (then type.animal is camel))
   (rule (if species is nohorns and
          lives.in.desert is no) 
         (then type.animal is giraffe))
   (question lives.in.desert is "Does your animal normally live in the desert?")
   (rule (if species is teeth and
          large.ears is yes) 
         (then type.animal is rabbit))
   (rule (if species is teeth and
          large.ears is no the type.animal is rat/mouse/squirrel/beaver/porcupine))
   (question large.ears is "Does your animal have large ears?")
   (rule (if species is noteeth and
          pouch is yes) 
         (then type.animal is "kangaroo/koala bear"))
   (rule (if species is noteeth and
          pouch is no) 
         (then type.animal is mole/shrew/elephant))
   (question pouch is "Does your animal have a pouch?")
   (rule (if subspecies is hair and
          long.powerful.arms is yes) 
         (then type.animal is orangutan/gorilla/chimpanzie))
   (rule (if subspecies is hair and
          long.powerful.arms is no) 
         (then type.animal is baboon))
   (question long.powerful.arms is "Does your animal have long, powerful arms?")
   (rule (if subspecies is nohorn and
          fleece is yes) 
         (then type.animal is sheep/goat))
   (rule (if subspecies is nohorn and
          fleece is no) 
         (then subsubspecies is nofleece))
   (question fleece is "Does your animal have fleece?")
   (rule (if subsubspecies is nofleece and
          domesticated is yes) 
         (then type.animal is cow))
   (rule (if subsubspecies is nofleece and
          domesticated is no) 
         (then type.animal is deer/moose/antelope))
   (question domesticated is "Is your animal domesticated?")
   (answer is "I think your animal is a " type.animal))

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲影院免费观看| 欧美一区二区免费视频| 国产欧美一区视频| 激情五月婷婷综合网| 欧美不卡激情三级在线观看| 日韩精品五月天| 欧美大度的电影原声| 国产综合久久久久久久久久久久| 欧美精品一区二区三| 国产成人精品免费在线| 国产精品电影一区二区三区| 91欧美一区二区| 亚洲不卡一区二区三区| 日韩色在线观看| 国产成人免费视频网站| 亚洲美女视频一区| 日韩一区二区三区视频在线观看| 久久99精品久久久| 中文字幕在线一区二区三区| 91国产成人在线| 日韩不卡手机在线v区| ww亚洲ww在线观看国产| 99久久婷婷国产| 日韩精品亚洲一区二区三区免费| 久久久蜜桃精品| 色综合久久综合中文综合网| 日韩激情视频在线观看| 欧美激情中文不卡| 欧美精品在线一区二区| 国产成人在线视频网站| 亚洲国产精品久久不卡毛片| 久久久午夜电影| 日韩一区二区精品葵司在线| 国产精品资源网| 洋洋成人永久网站入口| 久久香蕉国产线看观看99| 色婷婷综合激情| 九色综合国产一区二区三区| 国产精品二三区| 欧美xfplay| 欧美三级韩国三级日本一级| 国产91色综合久久免费分享| 亚洲成av人片在线观看| 国产精品无人区| 欧美mv和日韩mv国产网站| 色哟哟亚洲精品| 成人性生交大片免费看中文网站| 午夜精彩视频在线观看不卡| 中文字幕日韩一区二区| 欧美成人乱码一区二区三区| 欧美在线观看一区| 成人白浆超碰人人人人| 久久99久久久久| 天天色图综合网| 一区二区三区在线免费| 中文字幕不卡一区| 久久品道一品道久久精品| 欧美日高清视频| 91久久精品国产91性色tv| 风间由美一区二区三区在线观看| 日韩主播视频在线| 亚洲曰韩产成在线| 亚洲精品欧美专区| 亚洲欧洲另类国产综合| 久久久久青草大香线综合精品| 欧美另类久久久品| 欧美在线观看视频一区二区 | 国内国产精品久久| 日韩影院精彩在线| 日韩精品91亚洲二区在线观看| 亚洲午夜三级在线| 一区2区3区在线看| 亚洲摸摸操操av| 成人免费一区二区三区在线观看 | 不卡的电影网站| 国产一区二区三区久久久| 看电影不卡的网站| 麻豆精品一区二区三区| 蜜臀av性久久久久av蜜臀妖精| 亚洲超丰满肉感bbw| 午夜亚洲国产au精品一区二区| 亚洲一卡二卡三卡四卡无卡久久| 亚洲男人的天堂在线观看| 一区二区三区国产精品| 亚洲一区精品在线| 亚洲国产人成综合网站| 亚洲成人av一区二区三区| 天堂蜜桃91精品| 日本 国产 欧美色综合| 激情综合网激情| 国产精品1区二区.| caoporm超碰国产精品| 91免费观看在线| 欧美日韩一区国产| 日韩三级在线观看| 欧美精品一区二区三区蜜桃| 久久综合九色综合欧美98| 国产偷国产偷精品高清尤物| 国产精品久久久久久久浪潮网站| 亚洲欧洲精品一区二区三区不卡| 一区二区三区欧美激情| 日韩精品免费专区| 国产一区视频导航| 99在线精品视频| 欧美顶级少妇做爰| 国产无遮挡一区二区三区毛片日本| 国产精品美女久久久久久久久久久| 亚洲日本va午夜在线影院| 亚洲国产中文字幕在线视频综合| 男男视频亚洲欧美| 懂色av一区二区三区免费看| 91看片淫黄大片一级在线观看| 欧美日韩中文字幕精品| 久久这里只有精品首页| 亚洲精品一卡二卡| 狂野欧美性猛交blacked| 成人丝袜高跟foot| 欧美日韩激情在线| 国产三级欧美三级| 亚洲综合成人网| 激情都市一区二区| 欧美性大战久久久久久久| 欧美岛国在线观看| 亚洲欧美电影一区二区| 麻豆视频一区二区| 色婷婷精品久久二区二区蜜臀av | 久久精品久久99精品久久| www.亚洲精品| 日韩欧美视频在线| 亚洲视频小说图片| 国产在线视频精品一区| 91国偷自产一区二区三区观看| 2021中文字幕一区亚洲| 亚洲国产精品久久人人爱 | 久久成人免费网站| 在线精品视频一区二区三四| 久久久国产精品不卡| 视频一区二区三区中文字幕| 北条麻妃一区二区三区| 欧美sm美女调教| 性欧美疯狂xxxxbbbb| 99国产欧美另类久久久精品| 精品福利av导航| 奇米综合一区二区三区精品视频 | 樱桃视频在线观看一区| 国产一区久久久| 欧美成人福利视频| 亚洲不卡av一区二区三区| 91在线视频免费观看| 久久色中文字幕| 久久国产人妖系列| 91麻豆精品国产91久久久久久久久| 国产精品久久久久久久浪潮网站| 国产在线精品免费| 日韩一卡二卡三卡四卡| 午夜久久久久久| 欧洲生活片亚洲生活在线观看| 国产精品久久一级| 国产成人综合自拍| 亚洲精品在线三区| 久久精品国产99久久6| 欧美乱妇一区二区三区不卡视频 | 视频一区中文字幕国产| 色狠狠综合天天综合综合| 综合av第一页| youjizz久久| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产一区中文字幕| 日本一区二区免费在线观看视频 | 欧美日韩综合在线免费观看| 亚洲综合一区二区| 欧美自拍偷拍一区| 亚洲国产精品久久久久婷婷884| 在线免费视频一区二区| 一区二区三区毛片| 欧美日韩性生活| 视频一区二区三区中文字幕| 欧美精品三级日韩久久| 天堂va蜜桃一区二区三区漫画版| 欧美剧情片在线观看| 日韩国产欧美在线视频| 日韩视频不卡中文| 国产黄人亚洲片| 中文字幕欧美国产| 97国产一区二区| 亚洲小少妇裸体bbw| 91精品国产麻豆| 韩国av一区二区三区四区 | 亚洲精品国产精华液| 欧美中文字幕一区二区三区亚洲| 午夜欧美一区二区三区在线播放 | 精品欧美黑人一区二区三区| 久久99精品国产麻豆婷婷| 久久九九久精品国产免费直播| 99久久99久久综合| 亚洲第一电影网| 国产午夜三级一区二区三| 欧洲一区在线电影| 激情五月播播久久久精品| 国产精品久久久一区麻豆最新章节|