如何在Prolog中实现AIML?
AIML 文件:http://www.alicebot.org/aiml/aaa/ 我想让这些 AIML 文件成为我的 Prolog 程序的知识库。 帮我。提前致谢。
PS请原谅我的英语不好。
AIML files: http://www.alicebot.org/aiml/aaa/
I want to make these AIML files the knowledge base of my Prolog program.
Help me. Thanks in advance.
P.S. Excuse my bad english.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://pycdep.sourceforge.net 包含在 prolog 中实现的类似 AIML 的内容。
也许它可以作为一个起点。
http://pycdep.sourceforge.net contains something AIML-like implemented in prolog.
Maybe it can serve as a starting point.
您可能需要查阅以下书籍(从当地图书馆租借,不要购买整本书):
《Perl 和 Prolog 语言处理简介》
皮埃尔·M·努格斯(Pierre M. Nugues)(作者)
教科书
在深入研究图表解析器等之前,本书包含两个处理类似 eliza 模板匹配的部分。这些部分是:
它具有 Prolog 代码片段。代码片段并未针对速度或大容量进行优化,但它们显示了算法的总体思路。
这本书在计算机语言学方面很不错,但您可能需要咨询有关问答逻辑等的其他资源。
最好的祝福
P.S.:目前也在研究 Java/Prolog 混合提取管道的 Prolog 端口
猫
You might want to consult (rent it from your local library, don't buy the whole book) the following book:
An Introduction to Language Processing with Perl and Prolog
Pierre M. Nugues (Autor)
Text Book
Before delving into chart parsers and the like, the book contains two sections that deal with eliza like template matching. The sections are:
It has Prolog code snipets. The code snipets are not optimized for speed or large volumes, but they show the general idea of the algorithms.
The book is good in computer linguistics, but you might want to consult additional sources for Q&A logic etc..
Best Regards
P.S.: Currently working as well on a Prolog port of a Java/Prolog hybrid extraction pipeline
CAT