人工智能标记语言aiml的解释器包

AIML-Bot的Python项目详细描述


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("> ")))

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Gson类中的java验证错误   If和elseif之间的java差异?   字典Java8地图。输入比较器   java连接到远程计算机以获得WMI支持   java如何使用改型处理JSON对象中的空值   在Java中使用Comparator时不可编译的源代码   java将Jar添加到JSP的运行时路径   带有随机对象的while循环的java大O时间复杂性   java可以在不考虑参数的情况下模拟方法吗?   java我有一个简单的代码,它不工作。无法修复错误“println”   向eclipse添加Xively java库   java是否可以启用本机代码的缓存?   全局变量如何在Java中的所有类之间共享要使用的语言环境?   Java内存游戏如何翻转单个卡?