Presentation is loading. Please wait.

Presentation is loading. Please wait.

Powerpoint Templates Page 1 Powerpoint Templates Using Databases in AIML by Steve Worswick 1.

Similar presentations


Presentation on theme: "Powerpoint Templates Page 1 Powerpoint Templates Using Databases in AIML by Steve Worswick 1."— Presentation transcript:

1 Powerpoint Templates Page 1 Powerpoint Templates Using Databases in AIML by Steve Worswick 1

2 Powerpoint Templates Page 2 The problem Where does a dog live? Which animal has 2 legs? What lives on a farm and says, ‘moo’? How many legs has the animal that eats flies? Which animals say nothing? Does a cow have more legs than a chicken? … AnimalLegsLivesEatsSays dog4in a kennelmeatwoof chicken2on a farmcorncluck giraffe4in Africaleavesnothing spider8in a webfliesnothing cow4on a farmgrassmoo 2

3 Powerpoint Templates Page 3 Setting up the database XCHECKANIMAL DOG dog 4 in a kennel meat woof AnimalLegsLivesEatsSays dog4in a kennelmeatwoof chicken2on a farmcorncluck giraffe4in Africaleavesnothing spider8in a webfliesnothing cow4on a farmgrassmoo 3

4 Powerpoint Templates Page 4 XCHECKANIMAL DOG dog 4 in a kennel meat woof WHERE DOES A * LIVE XCHECKANIMAL A lives. Where does a dog live? 4

5 Powerpoint Templates Page 5 XCHECKANIMAL * UNKNOWN UNKOWN UNKNOWN WHERE DOES A * LIVE XCHECKANIMAL I haven’t heard of a. A lives. Where does a dog live? 5

6 Powerpoint Templates Page 6 Which animal has 2 legs? WHICH ANIMAL HAS 2 LEGS Results: XCHECKANIMAL DOG XCHECKMATCH 2 LEGS XCHECKANIMAL CHICKEN XCHECKMATCH 2 LEGS XCHECKANIMAL GIRAFFE XCHECKMATCH 2 LEGS XCHECKANIMAL SPIDER XCHECKMATCH 2 LEGS XCHECKANIMAL COW XCHECKMATCH 2 LEGS. AnimalLegs dog4 chicken2 giraffe4 spider8 cow4 6

7 Powerpoint Templates Page 7 XCHECKANIMAL DOG XCHECKMATCH 2 LEGS XCHECKANIMAL CHICKEN XCHECKMATCH 2 LEGS XCHECKANIMAL GIRAFFE XCHECKMATCH 2 LEGS XCHECKANIMAL SPIDER XCHECKMATCH 2 LEGS XCHECKANIMAL COW XCHECKMATCH 2 LEGS XCHECKMATCH 2 LEGS Which animal has 2 legs? AnimalLegs dog4 chicken2 giraffe4 spider8 cow4 7

8 Powerpoint Templates Page 8 and tags WHEN I SAY * YOU SAY * If you say " " to me again, I will remember what you told me. Human: Jump. Bot: I can’t jump, I have no legs. Human: When I say jump, you say how high. Bot: If you say "jump" to me again, I will remember what you told me. Human: Jump. Bot: How high. 8

9 Powerpoint Templates Page 9 Botcompare.aiml ARE * AND * THE SAME THING BOTCOMPARE XSPLIT Yes they are. No, they are different. Human: Are Homer Simpson and Marge Simpson the same thing? Bot: No, they are different. Human: Are Bart Simpson and Bart Simpson the same thing? Bot: Yes they are. www.square-bear.co.uk/aiml 9

10 Powerpoint Templates Page 10 BOTCOMPARISON BOTCHECK YES botcheck botremovecomparison 10 Botcompare.aiml

11 Powerpoint Templates Page 11 XSCANANIMALDATABASE Results: XCHECKANIMAL DOG XCHECKMATCH XCHECKANIMAL CHICKEN XCHECKMATCH XCHECKANIMAL GIRAFFE XCHECKMATCH XCHECKANIMAL SPIDER XCHECKMATCH XCHECKANIMAL COW XCHECKMATCH. Which animal has 2 legs? AnimalLegs dog4 chicken2 giraffe4 spider8 cow4 11

12 Powerpoint Templates Page 12 Which animal has 2 legs? AnimalLegs dog4 chicken2 giraffe4 spider8 cow4 WHICH ANIMAL HAS * LEGS XCHECKMATCH BOTCOMPARE XSPLIT XSCANANIMALDATABASE 12

13 Powerpoint Templates Page 13 What lives on a farm and says ‘moo’? WHAT LIVES * AND SAYS * XCHECKMATCH BOTCOMPARE XSPLIT XSCANANIMALDATABASE AnimalLivesSays dogin a kennelwoof chickenon a farmcluck giraffein Africanothing spiderin a webnothing cowon a farmmoo 13

14 Powerpoint Templates Page 14 How many legs has the animal that eats flies? HOW MANY LEGS HAS THE ANIMAL THAT EATS * XCHECKMATCH BOTCOMPARE XSPLIT A eats and has legs. XSCANANIMALDATABASE AnimalLegsEats dog4meat chicken2corn giraffe4leaves spider8flies cow4grass 14

15 Powerpoint Templates Page 15 Which animals say nothing? WHICH ANIMALS SAY * XCHECKMATCH BOTCOMPARE XSPLIT XSCANANIMALDATABASE AnimalSays dogwoof chickencluck giraffenothing spidernothing cowmoo 15

16 Powerpoint Templates Page 16 Does a cow have more legs than a chicken? DOES A * HAVE MORE LEGS THAN A * XCHECKANIMAL XCHECKANIMAL They both have 2 legs. A has more legs. A has 4 times as many legs. A has more legs. They both have 4 legs. A has twice as many legs. A has 4 times as many legs. A has twice as many legs. They both have 8 legs. 16

17 Powerpoint Templates Page 17 Sorry but I have never heard of either of those animals. Well, I have not heard of a. However, a only has 2 legs and so I guess a has more legs. Well, I have not heard of a. However, a has 4 legs and so I guess a has more legs. Well, I have not heard of a. However, a has 8 legs and so I guess a has more legs. Well, I have not heard of a. However, a only has 2 legs and so I guess a has more legs. Well, I have not heard of a. However, a has 4 legs and so I guess a has more legs. Well, I have not heard of a. However, a has 8 legs and so I guess a has more legs. The one that runs fastest probably has more legs. Does a cow have more legs than a chicken? 17

18 Powerpoint Templates Page 18 What if there is no unique index? AnimalLegsLivesEatsSays dog4in a kennelmeatwoof chicken2on a farmcorncluck giraffe4in Africaleavesnothing spider8in a webfliesnothing cow4on a farmgrassmoo XCHECKANIMAL DOG dog 4 in a kennel meat woof 18

19 Powerpoint Templates Page 19 First nameSurnameDepartmentEmployed since JanePetersonSales1992 MichaelBrownMail Room2003 JaneHargreavesMarketing1996 SimonBrownSales2001 PaulaHarrisonLegal1992 What if there is no unique index? XCHECKEMPLOYEE JANE Jane Peterson Sales 1992 19

20 Powerpoint Templates Page 20 What if there is no unique index? IndexFirst nameSurnameDepartmentEmployed since 1JanePetersonSales1992 2MichaelBrownMail Room2003 3JaneSmithMarketing1996 4SimonBrownSales2001 5PaulaHarrisonLegal1992 XCHECKEMPLOYEE 1 Jane Peterson Sales 1992 20

21 Powerpoint Templates Page 21 XSCANDATABASE Results: XCHECKEMPLOYEE 1 XCHECKMATCH XCHECKEMPLOYEE 2 XCHECKMATCH XCHECKEMPLOYEE 3 XCHECKMATCH XCHECKEMPLOYEE 4 XCHECKMATCH XCHECKEMPLOYEE 5 XCHECKMATCH. What if there is no unique index? 21

22 Powerpoint Templates Page 22 What use is it? (facts and figures) CountryCapitalCurrencyAreaLanguagePopulation USAWashington DCDollar3,718,691English307,212,123 IndiaNew DelhiRupee1,269,338Hindi1,166,079,217 Animalchickencow Babychickcalf Maleroosterbull Femalehencow Legs24 Soundcluckmoo Eatscorngrass Livescoopfarm Gives useggsmeat Nounbroodherd Descriptiongallinebovine LetterAB Boy’s nameAndrewBrian Girl’s nameAnneBrenda CityAthensBerlin CountryAlgeriaBelgium FruitAppleBanana VegetableAsparagusBean AnimalAnteaterBear JobActorBanker SportArcheryBaseball TransportAirshipBicycle 22

23 Powerpoint Templates Page 23 WordSyllablesPluralSizeDoes carrot2carrotsCgrows underground HasVolume a stalk0 UseSpeedLengthSpellColour lets you see in the dark NONE6C A R R O Torange What is itRhymeSynonymWhereMade From vegetableparrotroot vegetable in a grocersplant matter What use is it? (word knowledge database) A database with 2,000 records takes approximately 10 seconds to search 23

24 Powerpoint Templates Page 24 What use is it? (word knowledge database) XCHECKWORD CARROT carrot 2 carrots C grows underground helps you see in the dark … vegetable a stalk 0 XP2S CARROTS carrot 24

25 Powerpoint Templates Page 25 Any questions? steve@mitsuku.com www.mitsuku.com www.square-bear.co.uk/aiml 25


Download ppt "Powerpoint Templates Page 1 Powerpoint Templates Using Databases in AIML by Steve Worswick 1."

Similar presentations


Ads by Google