用于上下文解析的环境敏感词典消歧
Environment-Sensitive Lexicographic Disambiguation for Contextual Parsing
AI总结:
研究解析树歧义解决问题,提出用全局可变上下文的确定性算法,通过锦标赛式选择过程及维护语义状态,实现基于文档环境的句法消歧,能建模复杂关系来解决解析树歧义。
摘要:
本文提出一种确定性算法,使用全局可变上下文来解决解析树中的歧义。该方法在每个非终结符处对竞争推导应用锦标赛式选择过程,系统地丢弃其非终结符子树未被上下文决策机制选中的替代方案。与依赖后处理的方法不同,该算法在增量抽象语法树构建过程中维护语义状态,使早期决策能影响未来歧义的解决。这种上下文感知策略在解析后实现一致且程序式的消歧,基于文档环境进行句法消歧,而非依赖临时规则,能够对先前结构与同一非终结符的不同推导之间的复杂关系进行建模。
英文摘要:
This paper presents a deterministic algorithm for resolving ambiguity in parse trees using a global mutable context. The proposed method applies a tournament-style selection process to competing derivations at each non-terminal, systematically discarding alternatives whose non-terminal subtrees are not selected by the contextual decision mechanism. Unlike approaches that rely on post-processing, the algorithm maintains semantic state throughout incremental Abstract Syntax Tree (AST) building, allowing earlier decisions to influence the resolution of future ambiguities. This context-aware strategy enables consistent and procedural disambiguation after parsing. It features syntactic disambiguation based on a document environment instead of relying on ad-hoc rules, thus able to model complex relationships between previous constructs and the different derivations for a same non-terminal.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。