人工智能标记语言aiml的解释器包
AIML-Bot的Python项目详细描述
- 原作者:Cort Stratton
- 维修人员:Aaron Hosford
- 项目主页:https://github.com/hosford42/aiml_bot
aiml bot是cort stratton的pyaiml的分支,一个纯python解释器 对于aiml(人工智能标记语言),为pep 8重构 一致性和易用性。它力求简单、朴素、100% 符合AIML 1.0.1标准。你可以找到cort的原版 在https://github.com/cdwfs/pyaiml实现。多谢他 为这个项目打下基础。
有关此版本中新增内容的信息,请参阅changes.md文件。
了解发展状况,包括当前水平 关于AIML 1.0.1的符合性,请参阅受支持的_tags.txt文件。
快速脏示例(假设您已经安装了aiml_集 套餐:
import aiml_bot # The Bot class is the public interface to the AIML interpreter. bot = aiml_bot.Bot(command='load std aiml') # Loop forever, reading user input from the command line and printing # responses. while True: # Use the 'respond' method to compute the response to a user's input # string. respond() returns the interpreter's response. print(bot.respond(input("> ")))