Tuesday, March 10, 2009

New AIML Learning File

AIML Botmaster Steve Worswick (Square Bear) has written a file that will allow users to teach your bot new facts rather than just correcting its replies using badanswer.aiml. The user should say LEARN then the fact. For example:

Human: Learn the sun is hot
Bot: Ok I will learn that the sun is hot.

Human: Learn London is in England
Bot: Ok I will learn that London is in England.

Human: Learn a cat has four legs.
Bot: Ok I will learn that a cat has 4 legs.

Human: What has 4 legs?
Bot: a cat.

Human: What is the sun
Bot: hot.

Human: Learn the sun is hot and yellow
Bot: Ok I will learn that the sun is hot and yellow.

Human: What is hot and yellow
Bot: the sun.

Human: What is the sun
Bot: hot and yellow.

Human: Where is London
Bot: in England.

Human: What is in England
Bot: London.

Human: Learn Dr Wallace is an AI expert
Bot: Ok I will learn that Dr Wallace is an AI expert.

Human: What is an AI expert
Bot: Dr Wallace.

Human: Who is an AI expert
Bot: Dr Wallace.

Human: Who is Dr Wallace
Bot: an AI expert.

Human: What is hot
Bot: the sun.

Human: What has a cat?
Bot: 4 legs.

Square-Bear will update this file to cover more complicated knowledge such as "Learn the 2012 Olympic Games will be held in London", "Where will the 2012 Olympic Games be?". The current version of the file is available, along with all my other public AIML files at: http://square-bear.co.uk/aiml Square-Bear says, "Feel free to use it in your bots!"

4 comments:

  1. why add "LEARN"?
    making bots learn from a common sentence is much better i think
    because without "LEARN" a bot server can learn a lot from the net

    ReplyDelete
  2. Square Bear here,

    I've actually amended this file since this post so that if both sides of the pattern are *, it also learns.

    For example:
    * IS *
    * ARE *
    * IS A *
    and so on.

    Human: gateau is a type of cake
    Bot: Ok I will add that fact about gateau to my database

    Humans: what is gateau?
    Bot: type of cake

    ReplyDelete
  3. how about developing a bot that can manage vista to make it more friendly, rather then looking up the trouble shooter the bot could suggest a solution and learn what the user needs. many programmers fail to appreciate that simple problems can be create a big problems for beginners. Micro Soft should see the value in a friendly bot will hope Linux will be the dominate OS in 2020 but a windows bot that could learn could be open source and over time could become the dominate core over time making windows irrelevant

    ReplyDelete
  4. So where will it save the learned info.

    ReplyDelete

 

blogger templates | Make Money Online