Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Tree [170afb] master /
History



File Date Author Commit
aiml 2010-08-14 cort cort [36035d] Added brief sleep() to _processSystem (Duncan G...
standard 2010-08-14 cort cort [24add2] Fix CRLF
.gitignore 2010-04-02 cort cort [2aea5f] Added .gitignore
CHANGES.txt 2010-08-14 cort cort [170afb] Added FreeBSD license
COPYING.txt 2010-08-14 cort cort [170afb] Added FreeBSD license
MANIFEST.in 2003-12-08 cort cort [1f1e19] Updated distribution files
README.txt 2010-08-14 cort cort [24add2] Fix CRLF
SUPPORTED_TAGS.txt 2010-08-14 cort cort [24add2] Fix CRLF
TODO.txt 2004-10-26 cort cort [a2e942] Added standards-compliant whitespace processing.
aimlvalidate.py 2010-08-14 cort cort [24add2] Fix CRLF
setup.cfg 2004-10-27 cort cort [c2b079] Removed skip_build=1 from the bdist_wininst sec...
setup.py 2005-08-12 cort cort [4d9852] Bumped version to 0.8.6
std-startup.xml 2010-08-14 cort cort [ce045f] Newlines and line endings
stress.py 2003-12-30 cort cort [7be18d] Added simple stress-test script. Still a few k...
test.py 2003-12-26 cort cort [9c37f9] Commented the example bot a bit.

Read Me

PyAIML -- The Python AIML Interpreter
author: Cort Stratton (cort@users.sourceforge.net)
web: http://pyaiml.sourceforge.net/

PyAIML is an interpreter for AIML (the Artificial Intelligence Markup
Language), implemented entirely in standard Python.  It strives for
simple, austere, 100% compliance with the AIML 1.0.1 standard, no less
and no more.

This is currently pre-alpha software.  Use at your
own risk!

For information on what's new in this version, see the
CHANGES.txt file.

For information on the state of development, including 
the current level of AIML 1.0.1 compliance, see the
SUPPORTED_TAGS.txt file.

Quick & dirty example (assuming you've downloaded the
"standard" AIML set):

	import aiml

	# The Kernel object is the public interface to
	# the AIML interpreter.
	k = aiml.Kernel()

	# Use the 'learn' method to load the contents
	# of an AIML file into the Kernel.
	k.learn("std-startup.xml")

	# Use the 'respond' method to compute the response
	# to a user's input string.  respond() returns
	# the interpreter's response, which in this case
	# we ignore.
	k.respond("load aiml b")

	# Loop forever, reading user input from the command
	# line and printing responses.
	while True: print k.respond(raw_input("> "))