Skip to Content
Learning Robotics using Python
book

Learning Robotics using Python

by Lentin Joseph
May 2015
Intermediate to advanced
330 pages
7h 18m
English
Packt Publishing
Content preview from Learning Robotics using Python

Working with A.L.I.C.E. AIML files

The AIML files of A.L.I.C.E. chatter are freely available at https://code.google.com/p/aiml-en-us-foundation-alice/.

Extract the AIML files to a folder on the desktop or in the home directory and copy startup.xml to these AIML files. This startup.xml file will load all the other AIML files into memory. The following code is an example of a typical startup.xml file:

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

  </template>
</category>
</aiml>

The preceding XML file will learn all the AIML files when we call the LOAD AIML B pattern.

Loading AIML files into memory

The following code will load all the AIML files into memory:

#!/usr/bin/env ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Robotics using Python - Second Edition

Learning Robotics using Python - Second Edition

Lentin Joseph
Python Robotics Projects

Python Robotics Projects

Prof. Diwakar Vaish

Publisher Resources

ISBN: 9781783287536Supplemental Content