支持后缀协议的解析器生成器或库
我正在为某种语言开发语法解析器。但这种语言对后缀一致要求很高。例如,在英语中,动词必须与代词一致,如 I、we、you-do 或 he、she、it、this-does 等。在这种语言中,动词对每个代词都有不同的形式。我知道在文献中这是通过统一方法处理的。但我在 Java 中找不到它的任何实现。我还研究了斯坦福解析器和 ANTLR,但我找不到任何证据表明它们支持后缀协议。
那么哪个工具或库。在这种情况下你愿意给我吗?
提前致谢。
I'm working on a syntactic parser for some language. But this language requires suffix agreement highly. For example in English a verb must agree with pronoun as I,we,you-do or he,she,it,this-does etc. In this language a verb has different forms for each pronoun. I know in literature this is handled by unification method. But I couldn't find any implementation of it in Java. I also researched Stanford parser and ANTLR but I couldn’t find any evidence that they support suffix agreement.
So which tool or lib. would you offer me in this situation?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尽管我们确实在研究生课程中使用了统一解析器,但我还没有见过可以直接执行此操作的解析器。不幸的是,我忘记了这个名字,而且即使在那时它也已经很古老了。我 99% 确定它不是开源的。
您可以尝试 KIMMO 解析器,尽管我从未使用过它,所以无法证明它的对你的问题的适用性。
I haven't seen a parser than can do this directly, though we did use a unification parser in a grad school class I had. Unfortunately, the name escapes me and it was really old even then. I'm 99% sure it wasn't open source.
You could try the KIMMO parser, though I have never used it, so can't attest to its applicability to your problem.