Loading multiple AIML files

We have seen how to load a single AIML file to memory and retrieve response for a user input. In this section, we are going to see how to load multiple AIML files to memory; we are going to use these files for our AIML-based bots. Various AIML datasets are available on the Web, and some are also included in the code bundle. Given here is a file called startup.xml that helps us load all AIML files in a single run. It's a simple AIML file with a pattern called LOAD AIML B. When it gets this input from the user, it will learn all AIML files in that path using <learn>*.aiml</learn> tags:

 <aiml version="1.0"> <category> <pattern>LOAD AIML B</pattern> <template> <!-- Load standard AIML set --> <learn>*.aiml</learn> ...

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.