一种高效的头角分析器的实现
An Efficient Implementation of the Head-Corner Parser
摘要:
本文描述了一个高效和强大的实现双向,头部驱动的语法分析器的约束为基础的语法。这个解析器是为OVIS系统开发的:一个荷兰语口语对话系统,可以通过电话获得有关公共交通的信息。在回顾了中心语驱动句法分析策略,尤其是中心语角句法分析的研究现状后,提出了一种非确定性的中心语角句法分析器。一个memoization技术,以获得一个快速的分析器。一个目标弱化技术,大大提高了平均情况下的效率,无论是在速度和空间要求。我主张这样一个memoization战略与普通的图表分析器相比,目标弱化,因为这样的策略可以选择性地应用,因此大大降低了空间的要求,分析器,而没有实际损失的时间效率观察。相反,实验中描述的头角和左角解析器实现选择性memoization和目标弱化优于“标准”图表解析器。实验包括OVIS系统的文法和Alvey NL Tools文法。头角分析是自底向上和自顶向下处理的混合。某些实现健壮解析的方法需要纯粹的自底向上处理。因此,它似乎是头角解析不适合这样的强大的解析技术。然而,它示出了如何欠规范(这是非常自然地出现在逻辑编程环境中),可以使用在头角解析器,以允许这种强大的解析技术。一个特定的鲁棒解析模型描述了这是在OVIS实现。
英文摘要:
This paper describes an efficient and robust implementation of a bi-directional, head-driven parser for constraint-based grammars. This parser is developed for the OVIS system: a Dutch spoken dialogue system in which information about public transport can be obtained by telephone. After a review of the motivation for head-driven parsing strategies, and head-corner parsing in particular, a non-deterministic version of the head-corner parser is presented. A memoization technique is applied to obtain a fast parser. A goal-weakening technique is introduced which greatly improves average case efficiency, both in terms of speed and space requirements. I argue in favor of such a memoization strategy with goal-weakening in comparison with ordinary chart-parsers because such a strategy can be applied selectively and therefore enormously reduces the space requirements of the parser, while no practical loss in time-efficiency is observed. On the contrary, experiments are described in which head-corner and left-corner parsers implemented with selective memoization and goal weakening outperform `standard' chart parsers. The experiments include the grammar of the OVIS system and the Alvey NL Tools grammar. Head-corner parsing is a mix of bottom-up and top-down processing. Certain approaches towards robust parsing require purely bottom-up processing. Therefore, it seems that head-corner parsing is unsuitable for such robust parsing techniques. However, it is shown how underspecification (which arises very naturally in a logic programming environment) can be used in the head-corner parser to allow such robust parsing techniques. A particular robust parsing model is described which is implemented in OVIS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。