AIML tags

There is a set of AIML tags to represent knowledge inside files. The following are some of the important tags and their uses:

  • <aiml>: Each AIML file starts with this tag and ends with the </aiml> tag. Basically, it holds the version of AIML and character encoding of the file. The <aiml> tag is not mandatory, but it will be useful when handling a huge AIML dataset. Here is the basic usage of the <aiml> tag:
        <aiml version="1.0.1" encoding="UTF-8"?> 
        </aiml> 
  • <category>: Each knowledge segment is kept under this tag. This tag holds the input pattern from the user and outputs a response for it. The possible input from the user is kept under the <pattern> tag, and the corresponding response is under the <template> tag. Here is an ...

Get ROS Programming: Building Powerful Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.