亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
狠狠狠色丁香婷婷综合激情| 日本系列欧美系列| 国产精品久久久久久亚洲伦| 日本一区二区三区四区| 亚洲国产精品激情在线观看| 国产精品毛片久久久久久| 国产欧美久久久精品影院| 久久久久久电影| 一区二区国产视频| 亚洲午夜久久久久久久久久久| 亚洲免费资源在线播放| 亚洲一区二区av电影| 香港成人在线视频| 岛国一区二区在线观看| 色婷婷av一区二区三区之一色屋| 色综合久久99| 精品久久久久久久久久久院品网| 久久精品夜色噜噜亚洲a∨| 亚洲三级在线播放| 麻豆成人综合网| 欧美在线免费视屏| 国产精品欧美极品| 精品一区二区三区免费播放| 日本精品免费观看高清观看| 欧美成人性战久久| 美女网站视频久久| 欧美视频完全免费看| 国产精品成人免费在线| 麻豆freexxxx性91精品| 91精品久久久久久蜜臀| 中文字幕欧美一| 国产成人亚洲综合a∨婷婷| 日韩午夜av一区| 日本午夜一本久久久综合| 色94色欧美sute亚洲线路二| 国产亚洲一区字幕| 国产激情一区二区三区四区| 3atv在线一区二区三区| 亚洲6080在线| 欧美成人vr18sexvr| 久久国产生活片100| 日韩亚洲电影在线| 精品在线视频一区| 亚洲在线中文字幕| 91成人免费在线| 视频一区在线视频| 欧美一级艳片视频免费观看| 天天综合色天天综合| 欧美电影精品一区二区| 国产老妇另类xxxxx| 中文字幕久久午夜不卡| 欧洲一区在线电影| 日本欧美肥老太交大片| 国产日韩av一区| 亚洲国产日韩精品| 国产在线视频一区二区| 国产亚洲婷婷免费| 91精品国产品国语在线不卡| 国产一区二区三区不卡在线观看 | 在线观看91av| 国产69精品久久99不卡| 亚洲老司机在线| 久久一夜天堂av一区二区三区| 国产精品996| 奇米一区二区三区| 亚洲视频一区在线| 久久久久久久综合日本| 欧美三级蜜桃2在线观看| 国产成人在线影院| 日本vs亚洲vs韩国一区三区二区 | 色综合一个色综合亚洲| 国产一区中文字幕| 丝袜美腿一区二区三区| 中文字幕一区二区三区在线观看| 精品日韩在线一区| 欧美一区二区三区视频在线观看| 91精品国产一区二区人妖| 高清国产一区二区三区| 久久国产综合精品| 日韩在线一区二区| 视频一区视频二区中文字幕| 亚洲天堂av老司机| 夜夜嗨av一区二区三区四季av| 国产欧美一区二区三区沐欲| 欧美大肚乱孕交hd孕妇| 日韩欧美在线一区二区三区| 欧美老女人第四色| 91精品国产一区二区三区| 欧美高清dvd| 91精品国产91久久综合桃花| 欧美三级韩国三级日本三斤| 在线免费观看视频一区| 欧美日韩综合在线| 日韩视频一区二区三区在线播放 | 亚洲丶国产丶欧美一区二区三区| 中文字幕一区二区日韩精品绯色| 中文字幕欧美一| 亚洲成人av资源| 精品一区二区三区免费| 韩国精品免费视频| av电影在线观看一区| 欧美午夜影院一区| 亚洲精品在线三区| 亚洲老司机在线| 精一区二区三区| 一本到不卡精品视频在线观看| 欧美色中文字幕| 国产欧美日韩视频在线观看| 成人免费一区二区三区视频| 一区二区三区在线影院| 精品一区二区影视| 91久久线看在观草草青青| 亚洲精品在线免费观看视频| 一区二区三区在线不卡| 国产成人激情av| 欧美一卡在线观看| 极品少妇一区二区三区精品视频| 国产高清不卡一区二区| 欧美福利视频导航| 亚洲高清在线视频| 色综合久久88色综合天天6 | 日韩电影一区二区三区四区| www.亚洲免费av| 日本一区二区久久| 精品亚洲成a人| 日韩女优电影在线观看| 日日夜夜免费精品视频| 欧美日韩在线播放三区| 亚洲一区二区三区美女| 欧美亚洲一区三区| 夜夜揉揉日日人人青青一国产精品| 99精品欧美一区二区蜜桃免费| 精品成人一区二区三区| 精品在线免费观看| 国产日韩欧美一区二区三区乱码| 免费成人性网站| 国产精品色呦呦| 91色九色蝌蚪| 日韩激情视频在线观看| 6080日韩午夜伦伦午夜伦| 美国十次了思思久久精品导航| 欧美一区二区黄色| 国产精品亚洲专一区二区三区 | 丰满白嫩尤物一区二区| 国产精品二区一区二区aⅴ污介绍| 9i看片成人免费高清| 亚洲最大成人综合| 日韩美女视频在线| 91免费版在线看| 老司机免费视频一区二区三区| 久久久精品中文字幕麻豆发布| 成人av电影观看| 久99久精品视频免费观看| 中文字幕永久在线不卡| 日韩精品中文字幕在线一区| 成人午夜在线播放| 成人午夜激情在线| 日韩电影免费一区| 亚洲免费观看高清在线观看| 8x8x8国产精品| 91麻豆免费在线观看| 精久久久久久久久久久| 亚洲精品乱码久久久久久| 久久综合色综合88| 欧美日韩一区不卡| 91成人免费网站| 91免费视频观看| 99热这里都是精品| 成人精品鲁一区一区二区| 美女视频一区在线观看| 亚洲一二三四久久| 一区二区欧美国产| 一区二区三区四区精品在线视频| 2021国产精品久久精品| 精品国产免费一区二区三区香蕉| 欧美午夜片在线观看| 欧美亚洲禁片免费| 在线免费不卡视频| 欧美亚洲国产一区二区三区va| 9色porny自拍视频一区二区| 99国产麻豆精品| 色老汉av一区二区三区| 在线国产电影不卡| 91精品国产综合久久精品性色| 538prom精品视频线放| 日韩精品在线网站| 国产精品美女久久福利网站| 亚洲欧美日韩中文播放| 日韩精品午夜视频| 国产成人自拍在线| 91福利国产精品| 日韩欧美一区电影| 国产精品福利在线播放| 亚洲成人av福利| 高清beeg欧美| 欧美色成人综合| 中文字幕va一区二区三区| 亚洲一区影音先锋| 国产成人在线看| 精品捆绑美女sm三区|