基于中心语驱动短语结构文法的句法和语义分析

作者
徐尔清
导师
梅德明
学校
上海外国语大学
专业
英语语言文学
分类号
H314 语法
学位
博士学位论文
年份
2007
下载次数
463
被引次数
0

摘要

句法?语义分析是现代语言学研究的热点之一。句法分析旨在获得输入句子的句法表达式。语义分析旨在获得输入句子的语义表达式。分析的传统方法是分析作为重写规则的推导。近年来出现的新方法是分析作为逻辑的演绎。中心语驱动短语结构文法(HPSG)是由Pollard和Sag于1994年提出来的。HPSG采用合一作为句法和语义分析的基本运算是非常理想的。由于在语言学理论和实际的自然语言应用之间存在巨大的差距。以及具体的识别过程并未显式地包含在文法之中,所以自然语言句法?语义分析应包括文法、算法和另外的表示方法。现已有词类最简文法(CMG)及HPSG粘贴语义等逻辑演绎系统,和基于重写规则推导的HPSG派生算法等。然而它们有时还有些问题,如多量词句子的界面不能被建立,某些句子属性传递的缺失,分析过程信息没有被全部记录,和UDC句子的语义规范化有待于解决。针对上述问题,本文主要作了以下五个方面的工作:第三章提出HDS。HDS是一个HPSG演绎系统作为部分可交换线性逻辑的片断。HDS的特点是:1.保留HPSG中被粘贴语义去掉的类型“参数化情势”。2. HDS处理了HPSG的次范畴原则、中心原则、语迹原则和语义原则。HDS由词汇项一般形式和十条演绎推理规则组成。词汇项在HDS中作为公理。它由PHON属性、类型,和PHON属性的λ?项三部分组成,词汇项还表示了类型和PHON属性之间的Curry–Howard对应。十条规则包括:逻辑蕴涵联结符的引入律和消去律,积的合成律,和放松假设的次序的熵规则。HDS的作用是:通过分析作为逻辑的演绎,可建立句法对象和语义对象,及其二者之间的界面。HDS能够解决词类最简文法(CMG)和粘贴语义有时难以得到多量词句子的句法-语义界面的问题。应用例子表明了HDS的有效性。第四章提出HDS的自动分析算法以解决HDS的可分析问题。(1)通过把“积对变量同时进行替换”提升至“通过积的投射进行扩展”的机制,提出了HDS的n元积?的消除规则,从而扩大了HDS的应用范围。(2)提出HDS的自动分析算法。HDS本身是一个逻辑演绎系统,因此它没有显式地包含具体的句法-语义分析演绎过程。而HDS的自动分析算法可以实现HDS的具体演绎过程。算法的特点是:类型驱动,归约演绎,和避免重复的局部分析。优点是:每个局部分析只需建立一次,即使它后来成为许多局部分析的一个成分。从而减少了归约次数。最后检查了应用实例。结果显示我们的工作是有效的。第五章提出基于句法结构树上属性依赖归纳机制(T-IDP)的HPSG属性分析的新方法。1.基于属性文法,定义了上下文有关文法的属性产生式。定义了适用于多种情况下的属性依赖关系。和给出了在HPSG句法结构树上归纳的属性依存关系的递归定义。它的特点是:具有T-IDP,即,在句法结构树中,把各个属性依赖关系的个别性情况,归纳成完整的属性结构树的一般性结论.2.提出基于T-IDP的HPSG属性分析算法。应用实例表明了算法的可行性。算法的时间复杂性为O(n3),从而算法是有效的。我们的工作可以解决下面的问题:某些HPSG分析算法没有考虑到自然语言结构中跨模板属性传递路径或者约束下的属性传递路径。第六章提出融自动实现HPSG句法/属性分析和记录分析过程信息为一体的谓词/变迁Petri网(Pr/T网)。Pr/T网由两个部分组成。第一部分分析输入字符串的结构。第二部分处理输入字符串中各部分之间的属性关系。并且建立相应的属性结构树。Pr/T网由多个令牌、库所和变迁组成。个性化令牌携带多种数据结构,动态谓词的库所储存信息,条件导向的变迁处理分析,自动实现HPSG句法/属性分析和记录分析过程中丰富的上下文有关信息,且回答了句法/属性的结构问题。我们给出了应用实例,结果显示Pr/T网分析和记录信息的可行性。Pr/T网除了能克服现有二种语言识别器,即下推自动机和双向有限自动机,有时不能处理HPSG中复杂的属性关系的局限性外,还能克服下推自动机不能记录分析过程全部信息和双向有限自动机不能记录分析过程全部信息的局限性。第七章提出形式语义融合法(FAFS)。该方法融合了λ-抽象,λ-演算和HPSG。FAFS旨在解决UDC句子语义的规范化表达式问题。首先,我们采用了HPSG的上下文有关属性文法。FAFS建立UDC句子的S-结构,区分基于HPSG句子属性结构树的强弱UDC句子,提取与语迹相对应的填充词。然后,FAFS根据HPSG句法结构树得到UDC句子的合适表达式(WFF)。对句子PHON标记λ-抽象并施用于填空词,λ-演算获得UDC句子语义的规范化表达式的范式。在句子的相同直觉解释中,范式是最简形式。FAFS总体的计算复杂性是O(n3),因此FAFS是有效的。最后,应用实例表明了FAFS的可行性。FAFS可克服下述局限性:重写规则不能把UDC句子中相应的填空词填入语迹位置、更无法把弱UDC句子中没有出现的相应的共索引词填入语迹位置。本文工作的创新点如下:(1) HPSG扩展至HPSG演绎系统作为部分可交换线性逻辑的片断(HDS),及HDS自动分析算法。(2)具有属性依赖归纳机制(T-IDP)的、句子的HPSG属性分析的新算法。(3) HPSG-谓词/变迁Petri网(Pr/T网)。(4)融合λ-抽象、λ-演算和HPSG的新方法。

目录

Acknowledgements 4-5 Abstract 5-9 摘要 9-18 Chapter One INTRODUCTION 18-27 1.1 The Concept of Parsing 18-19 1.2 Parsing as Deduction 19-20 1.3 Parsing as Derivation 20-21 1.4 The Work of This Dissertation 21-25 1.5 The Innovative Points in This Dissertation 25-26 1.6 The Organization of This Dissertation 26-27 Chapter Two RELATED WORK IN LITERATURE 27-41 2.1 Head-Driven Phrase Structure Grammar (HPSG) 27-31 2.1.1 The semantic principle 28-29 2.1.2 The head feature principle and the subcategorization principle 29-30 2.1.3 The trace principle 30-31 2.2 Semantic Parsing and Formal Semantics 31-34 2.2.1 Type-driven Semantic Parsing 31 2.2.2 Montague Grammar 31-33 2.2.3 Glue semantics for HPSG 33-34 2.3 Syntactic Parsing Methods and Algorithms 34-39 2.3.1 Syntactic parsing formalism 35-37 2.3.1.1 Pushdown automata 35-37 2.3.2 Syntactic parsing algorithm 37-39 2.3.2.1 CYK algorithm 37-39 2.4 Turing machines 39-41 Chapter Three EXTENDING HPSG TOWARD HPSG DEDUCTIVE SYSTEM AS A FRAGMENT OF pCLL 41-59 3.1 Introduction 42-43 3.2 Main Point of the Handling of psoa and Four Principles in HDS 43-48 3.2.1 The handling of psoa and the semantic principle in HDS 43-46 3.2.2 The handling of the head feature principle and the subcategorization principle in HDS 46-47 3.2.3 The handling of the trace principle 47-48 3.3 Rules and Lexicon for a HPSG Deductive System 48-50 3.4 A Logical Analysis of the Syntax of HPSG 50-51 3.5 A Logical Analysis of the Trace Principle 51-53 3.6 Semantic Interpretation 53-59 Chapter Four AN HPSG-DEDUCTIVE-SYSTEM-BASED AUTOMATIC PARSING ALGORITHM 59-77 4.1 Introduction 59-60 4.2 The Main Content of This Chapter 60-64 4.2.1 The structure of HDS rules 60 4.2.2 Explanation of rule deductions of HDS 60-61 4.2.3 The concise points of n-component product elimination rule [(?)E] 61-63 4.2.4 The concise points of HDS-based automatic parsing algorithm 63-64 4.3 Preliminaries 64-67 4.4 The Generalization of HDS Rule [E] 67-70 4.4.1 Describing the n-component elimination rule [E] with meta-language 67-68 4.4.2 Example explaining the definition 68-70 4.5 An HDS-based Parsing Algorithm 70-73 4.6 Application Example 73-77 Chapter Five A T-IDP-BASED HPSG PARSING ALGORITHM 77-95 5.1 Introduction 77-78 5.2 The Main Content of This Chapter 78-85 5.3 Relevant Concepts of Attribute Grammars 85-86 5.4 Attribute Dependencies of the Structure Tree 86-87 5.5 HPSG Parsing Algorithm 87-90 5.5.1 An outline of the algorithm 87-88 5.5.2 Procedures 88-90 5.6 Analysis of Time Complexity 90-92 5.7 Application Example of the Algorithm 92-95 Chapter Six A Pr/T-NET FORMALISM FOR HPSG PARSING 95-111 6.1 Introduction 96-97 6.2 The Main Content of This Chapter 97-101 6.3 Preliminaries 101-102 6.3.1 Pr/T-Net 101-102 6.4 The HPSG-Pr/T-Net Model 102-106 6.4.1 Constituents include tokens, places and transitions 103-105 6.4.2 The overall structure of the net 105-106 6.5 Application Example of the HPSG-Pr/T-Net model 106-109 6.6 Comparison with related work 109-111 Chapter Seven FUSION APPROACH OF FORMAL SEMANTICS FOR HPSG PARSING 111-140 7.1 Introduction 111-113 7.2 The Main Content of This Chapter 113-118 7.2.1 An outline for the extraction algorithm which obtains filler co-indexed terms 113-114 7.2.2 An outline for the procedure FOPC which obtains WFFs of UDC sentences 114-117 7.2.3 Normalization of UDC sentence structures 117-118 7.3 Preliminaries 118-120 7.3.1 First order predicate calculus 118-119 7.3.2 The theoretical basis for employing λ-abstraction and λ-calculus to represent UDCs 119 7.3.3 The characteristics of strong and weak UDCs 119-120 7.3.4 The significance/justification of λ-abstraction and λ-calculus for UDCs 120 7.4 An filler-extraction-algorithm for a type of UDCs 120-124 7.4.1 The Procedure FILLER_EXTRACTION 120-122 7.4.2 The procedure HPSG_PARSING 122-124 7.5 λ-abstraction and λ-calculus for UDCs 124-125 7.5.1 λ-abstraction 124-125 7.5.2 λ-calculus 125 7.6 Approach to the Derivation of Semantic Expressions of UDCs 125-131 7.6.1 WFF of UDCs 126-129 7.6.1.1 Procedure FOPC 126-127 7.6.1.2 Explanation of this algorithm 127-129 7.6.2 λ-calculus for the derivation of D-structure of UDC sentences 129-130 7.6.3 The handling of WFF with λ-abstraction and λ-calculus 130-131 7.7 Application Examples 131-138 7.7.1 Example of SUDC 131-132 7.7.1.1 The predicate formula 131-132 7.7.1.2 λ-abstraction 132 7.7.1.3 λ-calculus 132 7.7.2 Example of WUDC 132-134 7.7.2.1 The predicate formula 133 7.7.2.2 λ-abstraction 133-134 7.7.2.3 λ-calculus 134 7.7.3 Application example 3 134-136 7.7.3.1 The predicate formula 135 7.7.3.2 λ-abstraction 135-136 7.7.3.3 λ-calculus 136 7.7.4. Application example of parasitic gaps 136-138 7.7.4.1 The predicate formula 137 7.7.4.2 λ-abstraction 137 7.7.4.3 λ-calculus 137-138 7.8 Time Complexity 138-140 Chapter Eight CONCLUSION 140-144 8.1 Parsing as Deduction 140-141 8.2 Parsing as Derivation 141-142 8.3 Innovative Points of This Dissertation 142-144 BIBLIOGRAPHY 144-152