Am trying to built a chat bot using aiml with python
问题 import aiml import os kernel = aiml.kernel() if os.path.isfile("bot_brain.brn"): kernel.bootstrap(brainFile = "bot_brain.brn") else: kernel.bootstrap(learnFiles = "std-startup.xml", commands = "load aiml b") kernel.savebrain("bot_brain.brn") while True: print kernel.respond(raw_input("Enter Your Message")).strip() aiml.kernel() It is throwing an error like Traceback (most recent call last): File " init .py", line 3, in kernel = aiml.kernel() AttributeError: 'module' object has no attribute