This is a discussion on AIML with PHP within the PHP Programming forums, part of the Web Development category; HI, Can anyone tell me about AIML and how to implement it using PHP? Thanks, Ramkumar.B...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, I am also new this topic. I have shared few things which i know, AIML, or Artificial Intelligence Markup Language, is an XML dialect for creating natural language software agents. AIML set was released under the GNU GPL, and because most AIML interpreters are offered under a free or open source license, many "Alicebot clones" have been created based upon the original implementation of the program and its AIML knowledge base. Free AIML sets in several languages have been developed and made available by the user community. There are AIML interpreters available in Java, Ruby, Python, C++, C#, Pascal, and other languages (see below). A formal specification and a W3C XML Schema for AIML are available.
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| Elements of AIML AIML contains several elements. The most important of these are described in further detail below.
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| Categories in AIML are the fundamental unit of knowledge. A category consists of at least two further elements: the pattern and template elements. Here is a simple category: HTML Code: <category> <pattern>WHAT IS YOUR NAME</pattern> <template>My name is John.</template> </category>
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| A pattern is a string of characters intended to match one or more user inputs. A literal pattern like Code: WHAT IS YOUR NAME Code: WHAT IS YOUR * 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.
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| A template specifies the response to a matched pattern. A template may be as simple as some literal text, like Code: My name is John. Code: My name is <bot name="name"/>. Code: You told me you are <get name="user-age"/> years old. Template elements include basic text formatting, conditional response (if-then/else), and random responses. Templates may also redirect to other patterns, using an element called srai. This can be used to implement synonymy, as in this example: Code: <category>
<pattern>WHAT IS YOUR NAME</pattern>
<template>My name is <bot name="name"/>.</template>
</category>
<category>
<pattern>WHAT ARE YOU CALLED</pattern>
<template>
<srai>what is your name</srai>
</template>
</category> Templates can contain other types of content, which may be processed by whatever user interface the bot is talking through. So, for example, a template may use HTML tags for formatting, which can be ignored by clients that don't support HTML.
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| Hi, I found the answer for this. Quote:
Thanks, Ramkumar.B Last edited by ramkumaraol : 04-18-2008 at 10:25 PM. |
| |||
| HI, A bot (short for "robot") is a program that operates as an agent for a user or another program or simulates a human activity. On the Internet, the most ubiquitous bots are the programs, also called spiders or crawlers, that access Web sites and gather their content for search engine indexes. Thanks, Ramkumar.B |
| |||
| HI, A chatterbot is a program that can simulate talk with a human being. One of the first and most famous chatterbots (prior to the Web) was Eliza, a program that pretended to be a psychotherapist and answered questions with other questions. Thanks, Ramkumar.B |
| |||
| Hi, Red and Andrette were names of two early programs that could be customized to answer questions from users seeking service for a product. Such a program is sometimes called a virtual representative or a virtual service agent. Thanks, Ramkumar.B |
| |||
| HI, A shopbot is a program that shops around the Web on your behalf and locates the best price for a product you're looking for. There are also bots such as OpenSesame that observe a user's patterns in navigating a Web site and customize the site for that user. Thanks, Ramkumar.B |
| |||
| ACE ACE means Artificial Conversation Entity. It is a program capable of listening to the user's speech, processing it, and then outputting a response. It is very basic, having three components to it: the listening engine, the ALICE engine, and the speaking engine Thanks, Ramkumar.B |
![]() |
| Thread Tools | |
| Display Modes | |
| |