如何在Prolog中实现AIML?

发布于 2024-11-17 05:48:04 字数 175 浏览 9 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我喜欢麦丽素 2024-11-24 05:48:05

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.

望她远 2024-11-24 05:48:05

您可能需要查阅以下书籍(从当地图书馆租借,不要购买整本书):

《Perl 和 Prolog 语言处理简介》
皮埃尔·M·努格斯(Pierre M. Nugues)(作者)
教科书

在深入研究图表解析器等之前,本书包含两个处理类似 eliza 模板匹配的部分。这些部分是:

9.2 Word Spotting and Template Matching  
9.3 Multiword Detection

它具有 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:

9.2 Word Spotting and Template Matching  
9.3 Multiword Detection

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文