人工智能标记语言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第三方库


热门话题
java JavaFX项目未显示   java JOGL启动时间太长   在Java中运行perl脚本   java在安卓中从json获得空字符串   java libgdx设置未设置java_主页   java Tomcat术语:停止vs杀死   java Hibernate:在数据库中将缺少参数的数据集插入为null   java如何创建一个类来扩展Android中的SparseArray?   java媒体播放器﹕ 错误(12147483648)   java将list1添加到list2并在不影响list2的情况下更新list1   java在JdbcCursorItemReader中打开CURSOR之前和关闭CURSOR之后执行SQL查询   基于注释的项目的java Spring集成“Integrationgraph”视图   java通过使用try-catch避免了无休止的空/空检查   素数序列