[alicebot-general] Python/PyAIML

Kris Schnee kschnee at xepher.net
Wed Nov 1 06:12:21 PST 2006


John D Murphy wrote:
> 10-24-06
> 3:45 PM
> 
> Kris,
> 
> Can you recommend any links?

Sorry for the delay. Some time ago I was able to get PyAIML here, I think:
http://pyaiml.sourceforge.net/

To make it work is easy. I put the file "std-startup" in the same 
directory as the code and had the rest in a subdirectory called 
"standard". The program went like this:

## Load.
import aiml
aimlbot = aiml.Kernel()
aimlbot.learn("std-startup.xml")
print "Loading AIML..."
aimlbot.respond("load aiml b")

## Run.
what_user_typed = raw_input("You say: > ")
response = aimlbot.respond( what_user_typed )
print "Bot says: " + response


Hopefully this is useful.

Kris


More information about the alicebot-general mailing list