ImageVerifierCode 换一换
格式:PPT , 页数:44 ,大小:451KB ,
资源ID:378237      下载积分:2000 积分
快捷下载
登录下载
邮箱/手机:
温馨提示:
如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝扫码支付 微信扫码支付   
注意:如需开发票,请勿充值!
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【http://www.mydoc123.com/d-378237.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Ambiguity Management in Deep Grammar Engineering.ppt)为本站会员(unhappyhay135)主动上传,麦多课文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文库(发送邮件至master@mydoc123.com或直接QQ联系客服),我们立即给予删除!

Ambiguity Management in Deep Grammar Engineering.ppt

1、Ambiguity Management in Deep Grammar Engineering,Tracy Holloway King,Ambiguity: bug or feature?,Bug in computer programming languages Feature in natural language People good at resolving ambiguity in context Ambiguity consequently often unperceived“Readjust paper holding clip”even though thousand-fo

2、ld ambiguities are common Ambiguity promotes conciseness Computers cant resolve ambiguity like humansIf we are going to build large-scale, linguistically sophisticated grammars, we need ways to handle ambiguity,Talk Outline,Sources of ambiguity Grammar engineering approaches Shallow markup (Dis)pref

3、erence marks Stochastic disambiguation Efficiency in ambiguity management,Sources of Ambiguity,Phonetic: “I scream” or “ice cream” Tokenization: “I like Jan.” - |Jan|. Or |Jan.|. (abbrev January) Morphological: “walks” - plural noun or 3sg verb “untieable knot” - un(tieable) or (untie)able Lexical:

4、“bank” - river bank or financial institution Syntactic: “The turkeys are ready to eat.” - fattened or hungry Semantic: “Two boys ate fifteen pizzas.” - 15 each or 15 total Pragmatic: “Sue won. Ed gave her a good luck charm.” - cause or result,PP Attachment A classic example of syntactic ambiguity,PP

5、 adjuncts can attach to VPs and NPs Strings of PPs in the VP are ambiguous I see the girl with the telescope. I see the girl with the telescope.I see the girl with the telescope. Ambiguities proliferate exponentially I see the girl with the telescope in the park I see the girl with the telescope in

6、the park I see the girl with the telescope in the park I see the girl with the telescope in the park I see the girl with the telescope in the park I see the girl with the telescope in the park The syntax has no way to determine the attachment, even if humans can.,Coverage entails ambiguity,I fell in

7、 the park. + I know the girl in the park.I see the girl in the park.,Ambiguity can be explosive,If alternatives multiply within or across components,Tokenize,Morphology,Syntax,Semantics,Discourse,Ambiguity figures,Deep grammars are massively ambiguous Example: 700 from section 23 of WSJ average # of

8、 words: 19.6 average # of optimal parses: 684 for 1-10 word sentences: 3.8 for 11-20 word sentences: 25.2 for 50-60 word sentences: 12,888,Managing Ambiguity,Grammar engineering approaches Trim early with shallow markup (Dis)preference marks on rules Choose most probable parse for applications that

9、need a single input Use packing to parse and manipulate the ambiguities efficiently,Talk Outline,Sources of ambiguity Grammar engineering approaches Shallow markup (Dis)preference marks Stochastic disambiguation Efficiency in ambiguity management,Shallow markup,Part of speech marking as filter I saw

10、 her duck/VB. accuracy of tagger (v. good for English) can use partial tagging (verbs and nouns) Named entities Goldman, Sachs & Co. bought IBM. good for proper names and times hard to parse internal structure Fall back technique if fail slows parsing accuracy vs. speed,Example shallow markup: Named

11、 entities,Allow tokenizer to accept marked up input:parse Mr. Thejskt Thejs arrived.tokenized string:Mr. Thejskt Thejs TB +NEperson Mr(TB). TB Thejskt TB Thejs,Add lexical entries and rules for NE tags,Resulting C-structure,Resulting F-structure,Results for shallow markup,Kaplan and King 2003,(Dis)p

12、reference marks (OT marks),Want to (dis)prefer certain constructions prefer: use when possible disprefer: do not use unless no other analysis Implementation Put marks in rules and lexical entries Rank those marks ranking can be different for different grammars/corpora Use most prefered parse(s) can

13、use as a two pass system for robust parsing,Ungrammatical input,Real world text contains ungrammatical input Deep grammars tend to only cover grammatical output Common errors can be coded in the rules may want to know that error occurred(e.g., provide feedback in CALL grammars) Disprefer parses of u

14、ngrammatical structures tools for grammar writer to rank rules two+ pass system standard rules rules for known ungrammatical constructions default fall back rules,Sample ungrammatical structures,Mismatched subject-verb agreementVerb3Sg = SUBJ PERS = 3SUBJ NUM = sg|BadVAgr Missing copulaVPcop = Vcop:

15、 =!|e: ( PRED)=NullBeMissingCopularVerb NP: ( XCOMP)=!|AP: ( XCOMP)=!| ,Dispreferred grammatical structures,Prefer subcategorized infinitives to adverbials I want it. I finished up (in order) to leave. I want it to leave.VP V(NP: ( OBJ)=!)(VPinf: ( XCOMP)=! +InfSubcat|! $ ( ADJUNCT) InfAdjunct ).Pos

16、t-copular gerunds He is a boy. (His) going is difficult. He is going.,OT Mark summary,Use (dis)preference marks to (dis)prefer constructions or words Allows inclusion of marginal/ungrammatical constructions Issues: Only works with ambiguities with known preferences (not PP attachment) Hard to determ

17、ine ranking for many marks Two-pass parsing can be slow,Talk Outline,Sources of ambiguity Grammar engineering approaches Shallow markup (Dis)preference marks Stochastic disambiguation Efficiency in ambiguity management,Packing & Pruning in XLE,XLE produces (too) many candidates All valid (with respe

18、ct to grammar and OT marks) Not all equally likely Some applications require a single best parse or at most just a handful (n best) Grammar writer cant specify correct choices Many implicit properties of words and structures with unclear significance,Pruning in XLE,Appeal to probability model to cho

19、ose best parse Assume: previous experience is a good guide for future decisions Collect corpus of training sentences, build probability model that optimizes for previous good results partially labelled training data is okNP-SBJ They see NP-OBJ the girl with the telescope Apply model to choose best a

20、nalysis of new sentences efficient (XLE English grammar: 5% of parse time),Exponential models are appropriate (aka Maximum Entropy or Log-linear models),Assign probabilities to representations, not to choices in a derivation No independence assumption Arithmetic combined with human insight Human: De

21、fine properties of representations that may be relevant Based on any computable configuration of features, trees Arithmetic: Train to figure out the weight of each property,Properties employed in WSJ Experiment,800 property-functions: c-structure nodes and subtrees recursively embedded phrases f-str

22、ucture attributes (grammatical functions) atomic attribute-value pairs left/right branching (non)parallelism in coordination lexical elements (subcategorization frames) Some end up with no discrimination power after training,Stochastic Disambiguation Summary,Training: Define a set of features by han

23、d Train on partially labelled data Can train on low-ambiguity data Use: Choose just one structure for applications that want just one XLE displays most probable first 5% of parse time to disambiguate 30% gain in F-score,Talk Outline,Sources of ambiguity Grammar engineering approaches Shallow markup

24、(Dis)preference marks Stochastic disambiguation Efficiency in ambiguity management,Computational consequences of ambiguity,Serious problem for computational systems Broad coverage, hand written grammars frequently produce thousands of analyses, sometimes millions Machine learned grammars easily prod

25、uce hundreds of thousands of analyses if allowed to parse to completion Three approaches to ambiguity management: Pruning: block unlikely analysis paths early Procrastination: do not expand analysis paths that will lead to ambiguity explosion until something else requires them Also known as underspe

26、cification Packing: compact representation and computation of all possible analyses,The Problem with Pruning: premature disambiguation,The conventional approach: Use heuristics to prune as soon as possible,Tokenize,Morphology,Syntax,Semantics,Discourse,X,X,X,Fast computation, wrong result,X,The prob

27、lem with procrastination: passing the buck,Chunk parsing as an example: Collect noun groups, verb groups, PP groups Leave it to later processing to figure out the correct way of putting these together Not all combinations are grammatically acceptable Later processing must either Call parser to check

28、 grammatical constraints Have its own model of grammatical constraints In the best case, solve a set of constraints the partial parser includes with its output,The Problem with Packing,There may be too many analyses to pack efficiently A major problem for relatively unconstrained machine induced gra

29、mmars Grammars overgenerate massively Statistics used to prune out unlikely sub-analyses Less of a problem for carefully hand-coded broad coverage grammars,Packing,Explosion of ambiguity results from a small number of sub-analyses combining in different ways to produce a large number of total analys

30、es (e.g. PP attachment)Compute and represent each sub-analysis just once Compute a factored representation of how these sub-analyses combine,Generalizing Free Choice Packing,Dependent choices,Solution: Label dependent choices,Label each choice with distinct Boolean variables p, q, etc.Record accepta

31、ble combinations as a Boolean expression Each analysis corresponds to a satisfying truth-value assignment(a line from s truth table that assigns it “true”),The Free Choice Gamble,Worst case, where everything interacts: As many choice variables as there are readings Packing blows up, and becomes expo

32、nential Best case, no interactions N completely independent choices represent 2N readings Language interactions mostly limited & local Tends towards the best case Free choice packing pays off for linguistic analysis,Conclusions,Ambiguity has to be dealt with Deep grammars use a variety of approaches

33、 preprocessing grammar engineering stochastic disambiguation Why use deep grammars if they are so ambiguous?,Deep analysis matters if you care about the answer,Example:A delegation led by Vice President Philips, head of the chemical division, flew to Chicago a week after the incident. Question: Who

34、flew to Chicago?Candidate answers:division closest nounhead next closestV.P. Philips next,Applications of Language Engineering,Functionality,Domain Coverage,Low,Narrow,Broad,High,Deep,Shallow,Synthesis,Natural Dialogue,Knowledge Fusion,Microsoft Paperclip,Manually-tagged Keyword Search,Document Base

35、 Management,Restricted Dialogue,Useful Summary,Good Translation,What to do with them?,Define yes-no / 1-0 features, f, that seem important Training determines weights on these features, , to reflect their actual importance Select parse x: count occurrences of features (0,1) and multiply by correspon

36、ding weights, .f(x) Convert weighted feature counts to probabilities,Issues in Stochastic Disambiguation,What kind of probability model? What kind of training data? Efficiency of training, efficiency of disambiguation? Benefit vs. random choice of parse,Advantages of Free Choice Packing,Avoids procr

37、astination Nogoods are constraints that parser sends to other component Eliminating nogoods: other components dont do parsers workIndependence between choices: Allows processing relying on independence assumptions Counting number of readings Apparently trivial but of crucial importance, since statistical modelling requires the ability to count Hence, statistical processingA general mechanism extending beyond parsing,Simplifying Truth Tables,Freely choose any line from the truth table,

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1