Download Latest Version PyAIMLng-0.8.5.tar.gz (86.9 kB)
Email in envelope

Get an email when there's a new version of PyAIMLng

Home
Name Modified Size InfoDownloads / Week
README.txt 2018-03-28 1.2 kB
PyAIMLng-0.8.5.tar.gz 2018-03-28 86.9 kB
Totals: 2 Items   88.1 kB 0
PyAIMLng -- The Next Generation of Python AIML Interpreter
  author: HLPC
  web: http://pyaimlng.sourceforge.net/

Based on Cort Stratton's pyaiml:
  author: Cort Stratton (cort@users.sourceforge.net)
  web: http://pyaiml.sourceforge.net/

PyAIMLng is an interpreter for AIML (the Artificial Intelligence Markup
Language), forked from Cort Stratton's PyAIML.  PyAIMLng adds additional
features which are not part of the AIML 1.0.1 specification in order to 
provide the bot master with a rich set of tools from which to build a
more believable AIML bot.

Basic implementation is the same as PyAIML (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("> "))
Source: README.txt, updated 2018-03-28