TreeAdjoiningGrammars.ppt
《TreeAdjoiningGrammars.ppt》由会员分享,可在线阅读,更多相关《TreeAdjoiningGrammars.ppt(44页珍藏版)》请在三一办公上搜索。
1、Tree Adjoining Grammars,CIS 530 Intro to NLP,CIS 530-Intro to NLP,2,Context Free Grammars,S,NP,S,V,does,S,NP,V,think,VP,S,NP,who,Harry,Bill,Who does Bill think Harry likes?,Context Free Grammars:Derivations,CIS 530-Intro to NLP,3,Context Free Grammars,S,NP,S,V,does,S,NP,V,think,VP,S,NP,who,Harry,Bil
2、l,Who does Bill think Harry likes?,Context Free Grammars:Semantics,Meaning relations of the predicate/argument structures is lost in the treelikes(Harry,who),CIS 530-Intro to NLP,4,Context Free Grammars,CFGs can be parsed in time proportional to n3,where n is the length of the input in words by algo
3、rithms like CKY.,Context Free Grammars:Complexity,CIS 530-Intro to NLP,5,Transformational Grammars,S,NP,S,V,does,S,NP,V,think,VP,S,NP,V,NP,likes,VP,Harry,Bill,Who does Bill think Harry likes?,Context Free Deep StructureplusMovement Transformations,CIS 530-Intro to NLP,6,TGs can be parsed in exponent
4、ial time2n,where n is the length of the input in wordsExponential time is intractable,because exponentials grow so quickly,Transformational Grammars:Complexity,CIS 530-Intro to NLP,7,Lexicalized LTAG,Finite set of elementary trees anchored on lexical items-encapsulates syntactic and semantic depende
5、nciesElementary trees:Initial and Auxiliary,CIS 530-Intro to NLP,8,LTAG:A set of Elementary Trees,CIS 530-Intro to NLP,9,a1:,S,NP,V,NP,likes,a2:,S,NP,V,NP,likes,NP,e,S,transitive,object extraction,some other trees for likes:subject extraction,topicalization,subject relative,object relative,passive,e
6、tc.,VP,VP,LTAG:Examples,CIS 530-Intro to NLP,10,Lexicalized LTAG,Finite set of elementary trees anchored on lexical items-encapsulates syntactic and semantic dependenciesElementary trees:Initial and AuxiliaryOperations:Substitution and Adjoining,CIS 530-Intro to NLP,11,a:,X,b:,X,g:,X,b,Substitution,
7、CIS 530-Intro to NLP,12,a:,X,b:,X*,X,g:,X,X,b,Tree b adjoined to tree a at the node labeled X in the tree a,Adjoining,CIS 530-Intro to NLP,13,LTAG:A derivation,CIS 530-Intro to NLP,14,LTAG:A derivation,CIS 530-Intro to NLP,15,LTAG:A derivation,CIS 530-Intro to NLP,16,LTAG:A derivation,NP,S,a2:,CIS 5
8、30-Intro to NLP,17,LTAG:A derivation,NP,S,a2:,CIS 530-Intro to NLP,18,LTAG:A derivation,NP,S,a2:,NP,S,a2:,S,CIS 530-Intro to NLP,19,LTAG:A derivation,NP,S,a2:,S,NP,V,NP,likes,e,VP,b1:,S,CIS 530-Intro to NLP,20,LTAG:A derivation,NP,S,a2:,CIS 530-Intro to NLP,21,LTAG:Semantics,S,NP,S,V,does,S,NP,V,thi
9、nk,VP,S,NP,V,NP,likes,e,VP,who,Harry,Bill,who does Bill think Harry likes,Meaning relations of the predicate/argument structures are clear in the original base trees!,CIS 530-Intro to NLP,22,S,NP,V,NP,likes,NP,e,S,VP,S,NP,V,S*,b1:,think,VP,b2:,V,S,does,S*,NP,NP,NP,who,Harry,Bill,a3:,a2:,a4:,a5:,subs
10、titution,adjoining,who does Bill think Harry likes,LTAG:A Derivation,CIS 530-Intro to NLP,23,who does Bill think Harry likes,a2:,likes,a3:,who,b1:,think,a4:,Harry,b2:,does,a5:,Bill,*Compositional semantics on this derivation structure*Related to dependency diagrams,substitution,adjoining,LTAG:Deriva
11、tion Tree,TAGs:Complexity,TAGs can be parsed in polynomial timen5 rather than n3 for CFGsTAGS are a prime example of mildly context sensitive grammars(MCSGs)Plausible:MCSGs are sufficient to capture the grammars of all human languagesE.g.can parse Swiss German,CIS 530-Intro to NLP,24,CIS 530-Intro t
12、o NLP,25,Context Free Grammars Structure doesnt well represent“domains of locality”reflecting meaning Parsed in polynomial time n3(n is the length of the input)Transformational Grammars Captures domains of locality,accounting for surface word order by“movement”Parsing is intractable,requring 2n time
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- TreeAdjoiningGrammars

链接地址:https://www.31ppt.com/p-2428900.html