可与 Ruby 交互的轻量级推理引擎

发布于 2024-12-07 05:49:52 字数 186 浏览 5 评论 0原文

我有一个大型 Rub​​y 应用程序,迫切需要添加推理引擎;我不需要很多功能,也不害怕集成 C 库,并且在我的谷歌搜索中一无所获。

Python 和 JVM 上似乎有很多规则引擎;虽然我更喜欢使用 Python,但我不会仅仅为了添加推理引擎而重写整个该死的应用程序,所以我真的很想看看这样的东西是否存在。

有人有什么想法吗?

I have a large Ruby application that is just crying out for the addition of an inference engine; I don't need a lot of functionality, am not afraid of integrating C libraries, and am coming up empty in my Googling.

There seem to be plenty of rules engines in Python and on the JVM; while I'd prefer to be using Python, I'm not rewriting the whole damned application just to add an inference engine, so I'd really like to see if such a thing exists.

Anyone have any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

晨敛清荷 2024-12-14 05:49:52

以下是我在谷歌搜索时发现的一些提示。我在特定宝石之后添加了最后一个活动,以指示它们是否仍在维护,并按该日期排序。

很多选项,也许这里有你喜欢的东西?

Here are some pointers I found while Googling. I've added the last activity after specific gems to give an indication if they are still being maintained, and sorted by that date.

Plenty of options, maybe there is something to your liking here?

水染的天色ゝ 2024-12-14 05:49:52

为旧问题添加新答案

wongi-engine 是目前 Ruby 规则引擎的最佳(唯一?)选择。它基于 Rete 算法,并且在 github 上有一些追随者。

rdvdijk 上面给出的所有选项要么不再维护,要么完全消失。

另外,Ruby Quiz 有一个非常轻量级的推理引擎,完全用 Ruby 编写,使用有向图。

Adding a new answer to an old question:

The wongi-engine is currently the best (only?) choice for a Ruby rules engine. It's based on the Rete algorithm and has some following on github.

All the options given by rdvdijk above are either no longer maintained, or completely dead and gone.

Alternatively, over on Ruby Quiz there is an awesomely lightweight inference engine written entirely in Ruby using a directed graph.

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