维基百科:“你的意思是”如何表达?工作原理以及如何利用它?

发布于 2024-09-29 19:00:29 字数 239 浏览 0 评论 0原文

我想知道维基百科的“您的意思是:...”是如何工作的,以及是否有一种方法(例如 API)可以使用它?因为我想从我的输入中获取相应的页面,但这可能包含错误。 示例 。有没有直接返回建议的查询?

感谢您的帮助。

I want to know how does the "Did you mean : ..." of Wikipedia works and if there's a way, like with the API, to use it? Because I want to get the corresponding page from my input but this one could include errors. Example . Is there a query that returns directly the suggestion?

Thank you for your help.

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

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

发布评论

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

评论(3

木落 2024-10-06 19:00:29

(我不确定维基百科的实现细节,但这是一种方法)
它可能使用语音算法,例如Soundex 并将其与预先计算的数据库进行匹配。
PHP 提供了一些内置的语音算法,如果您想使用它们的话。

(I am not sure of Wikipedia's implementation details, but this is one way to do it)
It probably uses a phonetic algorithm, such as Soundex and matches it against a precomputed database.
PHP offers some phonetic algorithms built in if you want to play with them.

我偏爱纯白色 2024-10-06 19:00:29

这属于计算机科学中的“信息检索”。 Lucene 是实现这些概念的开源库,可能就是您正在寻找的库。有关信息检索的更多详细信息,您可以搜索Google。有关如何使用 Lucene 实现“您的意思是”的具体信息,请访问以下链接

This comes under "information retrieval" in computer science. Lucene is the open source library implementing these concepts and could be the library you are looking for. For more details on information retrieval you can search Google. For specifics on how "Did you mean" can be implemented using Lucene, go through the below links

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