在 Google App Engine 上从句子中提取语法特征

发布于 2024-08-09 10:34:34 字数 382 浏览 4 评论 0原文

对于我的 GAE 应用程序,我需要进行一些自然语言处理,以从输入句子中提取主语和宾语。

显然NLTK无法安装 (很容易)在 GAE 上,所以我正在寻找另一个解决方案。 我注意到 GAE 附带了 Antlr3,但通过浏览其文档它解决了一种不同类型的语法问题。

有什么想法吗?

For my GAE app I need to do some natural language processing to extract the subject and object from an input sentence.

Apparently NLTK can't be installed (easily) on GAE so I am looking for another solution.
I noticed GAE comes with Antlr3 but from browsing their documentation it solves a different kind of grammar problem.

Any ideas?

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

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

发布评论

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

评论(2

野味少女 2024-08-16 10:34:34

您可以轻松地在某些机器上构建 NTLK RPC 服务器并访问它。

另一种选择是找到另一个已经做到这一点的基于网络的服务(例如 opencalais)。

You can easily build and NTLK RPC server on some machine and access it.

Another option is to find another web based service that already does that (such as opencalais).

怎樣才叫好 2024-08-16 10:34:34

具体到 NLTK 问题,我的解决方案可能是修复 NLTK 正在执行的奇怪导入,并按最初计划使用它。完成后,当然要提交补丁。

也就是说,如果这最终涉及到接触数据存储,那么答案是它可能无法以高性能的方式完成,除非您的数据集很小或者由于某种原因您的 NLP 内容不需要达到某种目的全文索引。 GAE 人员正在努力解决这个问题,但他们已经表示任何人都不应期望这一特定问题能够迅速得到解决。

With regards to the NLTK problem specifically, my solution would probably be to fix the weird imports that NLTK is doing, and use that as originally planned. When you're done, submit a patch of course.

That said, if this ultimately involves touching the data store, the answer is that it probably can't be done in a performant way, unless your data set is small or for some reason your NLP stuff doesn't need to hit some kind of full-text index. The GAE guys are working on it, but they have indicated that no one should be expecting a quick resolution to this particular issue.

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