A human Language - AIML

Category: , By Mourya
When i first used ALICE in my 6th grade, i was mesmerized with the response it gave to every question i posted.I used to chat with it for hours and hours...I noticed that it used to respond same way for question in different ways.I wondered because i knew at that time it was a program and programs are not capable for thinking on there own.Then after months i found some glitches when i posted weird question.It used to something else.Soon i got bored of it and stopped playing with it.After 8 years i found out that there are ways to make a program or in fact a bot which can logically answer the question though the syntax is different.Welcome to the world of AIML

* What is AIML?
AIML stands for Artificial Intelligence Markup Language , a dialect of the noted XML family.

* The History

The XML dialect called AIML was developed by Richard Wallace and a worldwide free software community between the years of 1995 and 2002. It formed the basis for what was initially a highly extended Eliza called "A.L.I.C.E." ("Artificial Linguistic Internet Computer Entity"), which won the annual Loebner Prize Contest for Most Human Computer three times, and was also the Chatterbox Challenge Champion in 2004.

* Structure

A AIML basically consists of categories and templates.Categories in AIML are the fundamental unit of knowledge. A category consists of at least two further elements: the pattern and template elements.

An example of a category


WHAT IS THE TIME



When this category is loaded, an AIML bot will respond to the input "What is the time" with response "The time is 9 o'clock.


* Pattern

A pattern is a string of characters intended to match one or more user inputs. A literal pattern like
WHAT IS YOUR NAME
will match only one input, ignoring case: "what is your name". But patterns may also contain wildcards, which match one or more words. A pattern like
WHAT IS YOUR *
will match an infinite number of inputs, including "what is your name", "what is your shoe size", "what is your purpose in life", etc.
The AIML pattern syntax is a very simple pattern language, far less complicated than regular expressions. It tends to suffice for most chat-oriented purposes, and where it lacks, AIML interpreters can provide preprocessing functions to expand abbreviations, remove misspellings, etc.

* Template

A template specifies the response to a matched pattern. A template may be as simple as some literal text, like
My name is Mourya.
A template may use variables, such as the example
My name is .
which will substitute the bot's name into the sentence, or
You told me you are years old.
which will substitute the user's age (if known) into the sentence.
Template elements include basic text formatting, conditional response (if-then/else), and random responses.

So in future expect lots of development in AIML.

For an AIML File creator click here

When i first used ALICE in my 6th grade, i was mesmerized with the response it gave to every question i posted.I used to chat with it for hours and hours...I noticed that it used to respond same way for question in different ways.I wondered because i knew at that time it was a program and programs are not capable for thinking on there own.Then after months i found some glitches when i posted weird question.It used to something else.Soon i got bored of it and stopped playing with it.After 8 years i found out that there are ways to make a program or in fact a bot which can logically answer the question though the syntax is different.Welcome to the world of AIML

* What is AIML?
AIML stands for Artificial Intelligence Markup Language , a dialect of the noted XML family.

* The History

The XML dialect called AIML was developed by Richard Wallace and a worldwide free software community between the years of 1995 and 2002. It formed the basis for what was initially a highly extended Eliza called "A.L.I.C.E." ("Artificial Linguistic Internet Computer Entity"), which won the annual Loebner Prize Contest for Most Human Computer three times, and was also the Chatterbox Challenge Champion in 2004.

* Structure

A AIML basically consists of categories and templates.Categories in AIML are the fundamental unit of knowledge. A category consists of at least two further elements: the pattern and template elements.

An example of a category


WHAT IS THE TIME



When this category is loaded, an AIML bot will respond to the input "What is the time" with response "The time is 9 o'clock.


* Pattern

A pattern is a string of characters intended to match one or more user inputs. A literal pattern like
WHAT IS YOUR NAME
will match only one input, ignoring case: "what is your name". But patterns may also contain wildcards, which match one or more words. A pattern like
WHAT IS YOUR *
will match an infinite number of inputs, including "what is your name", "what is your shoe size", "what is your purpose in life", etc.
The AIML pattern syntax is a very simple pattern language, far less complicated than regular expressions. It tends to suffice for most chat-oriented purposes, and where it lacks, AIML interpreters can provide preprocessing functions to expand abbreviations, remove misspellings, etc.

* Template

A template specifies the response to a matched pattern. A template may be as simple as some literal text, like
My name is Mourya.
A template may use variables, such as the example
My name is .
which will substitute the bot's name into the sentence, or
You told me you are years old.
which will substitute the user's age (if known) into the sentence.
Template elements include basic text formatting, conditional response (if-then/else), and random responses.

So in future expect lots of development in AIML.

For an AIML File creator click here

 

0 comments so far.

Something to say?