1 / 84

CS 388: Natural Language Processing: Syntactic Parsing

CS 388: Natural Language Processing: Syntactic Parsing. Raymond J. Mooney University of Texas at Austin. 1. Phrase Chunking. Find all non-recursive noun phrases (NPs) and verb phrases (VPs) in a sentence. [NP I ] [VP ate ] [NP the spaghetti ] [PP with ] [NP meatball s].

sleah
Download Presentation

CS 388: Natural Language Processing: Syntactic Parsing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 388: Natural Language Processing:Syntactic Parsing Raymond J. Mooney University of Texas at Austin 1

  2. Phrase Chunking Find all non-recursive noun phrases (NPs) and verb phrases (VPs) in a sentence. [NP I] [VP ate] [NP the spaghetti] [PP with] [NP meatballs]. [NP He ] [VPreckons] [NP the current account deficit ] [VPwill narrow] [PP to ] [NP only # 1.8 billion ] [PP in ] [NP September ]

  3. Phrase Chunking as Sequence Labeling • Tag individual words with one of 3 tags • B (Begin) word starts new target phrase • I (Inside) word is part of target phrase but not the first word • O (Other) word is not part of target phrase • Sample for NP chunking • He reckons thecurrent account deficit will narrow to only# 1.8 billion in September. BeginInside Other

  4. Evaluating Chunking • Per token accuracy does not evaluate finding correct full chunks. Instead use: • Take harmonic mean to produce a single evaluation metric called F measure.

  5. Current Chunking Results • Best system for NP chunking: F1=96% • Typical results for finding range of chunk types (CONLL 2000 shared task: NP, VP, PP, ADV, SBAR, ADJP) is F1=92−94%

  6. Syntactic Parsing Produce the correct syntactic parse tree for a sentence.

  7. Context Free Grammars (CFG) N a set of non-terminal symbols (or variables)  a set of terminal symbols (disjoint from N) R a set of productions or rules of the form A→, where A is a non-terminal and  is a string of symbols from ( N)* S, a designated non-terminal called the start symbol

  8. Simple CFG for ATIS English Grammar Lexicon S → NP VP S → Aux NP VP S → VP NP → Pronoun NP → Proper-Noun NP → Det Nominal Nominal → Noun Nominal → Nominal Noun Nominal → Nominal PP VP → Verb VP → Verb NP VP → VP PP PP → Prep NP Det → the | a | that | this Noun → book | flight | meal | money Verb → book | include | prefer Pronoun → I | he | she | me Proper-Noun → Houston | NWA Aux → does Prep → from | to | on | near | through

  9. Sentence Generation Sentences are generated by recursively rewriting the start symbol using the productions until only terminals symbols remain. S Derivation or Parse Tree VP Verb NP Det Nominal book Nominal PP the Prep NP Noun Proper-Noun flight through Houston

  10. Parsing Given a string of terminals and a CFG, determine if the string can be generated by the CFG. Also return a parse tree for the string Also return all possible parse trees for the string Must search space of derivations for one that derives the given string. Top-Down Parsing: Start searching space of derivations for the start symbol. Bottom-up Parsing: Start search space of reverse deivations from the terminal symbols in the string.

  11. Parsing Example S VP Verb NP book that flight Det Nominal book that Noun flight

  12. Top Down Parsing S NP VP Pronoun

  13. Top Down Parsing S NP VP Pronoun X book

  14. Top Down Parsing S NP VP ProperNoun

  15. Top Down Parsing S NP VP ProperNoun X book

  16. Top Down Parsing S NP VP Det Nominal

  17. Top Down Parsing S NP VP Det Nominal X book

  18. Top Down Parsing S Aux NP VP

  19. Top Down Parsing S Aux NP VP X book

  20. Top Down Parsing S VP

  21. Top Down Parsing S VP Verb

  22. Top Down Parsing S VP Verb book

  23. Top Down Parsing S VP Verb X book that

  24. Top Down Parsing S VP Verb NP

  25. Top Down Parsing S VP Verb NP book

  26. Top Down Parsing S VP Verb NP Pronoun book

  27. Top Down Parsing S VP Verb NP Pronoun book X that

  28. Top Down Parsing S VP Verb NP ProperNoun book

  29. Top Down Parsing S VP Verb NP ProperNoun book X that

  30. Top Down Parsing S VP Verb NP Det Nominal book

  31. Top Down Parsing S VP Verb NP Det Nominal book that

  32. Top Down Parsing S VP Verb NP Det Nominal book that Noun

  33. Top Down Parsing S VP Verb NP Det Nominal book that Noun flight

  34. Bottom Up Parsing book that flight

  35. Bottom Up Parsing Noun book that flight

  36. Bottom Up Parsing Nominal Noun book that flight

  37. Bottom Up Parsing Nominal Nominal Noun Noun book that flight

  38. Bottom Up Parsing Nominal Nominal Noun X Noun book that flight

  39. Bottom Up Parsing Nominal Nominal PP Noun book that flight 39

  40. Bottom Up Parsing Nominal Nominal PP Noun Det book that flight 40

  41. Bottom Up Parsing Nominal Nominal PP NP Noun Nominal Det book that flight 41

  42. Bottom Up Parsing Nominal Nominal PP NP Noun Nominal Det book that Noun flight 42

  43. Bottom Up Parsing Nominal Nominal PP NP Noun Nominal Det book that Noun flight 43

  44. Bottom Up Parsing Nominal S Nominal PP NP VP Noun Nominal Det book that Noun flight 44

  45. Bottom Up Parsing Nominal S Nominal PP NP VP Noun Nominal Det X book that Noun flight 45

  46. Bottom Up Parsing Nominal Nominal PP X NP Noun Nominal Det book that Noun flight 46

  47. Bottom Up Parsing NP Verb Nominal Det book that Noun flight

  48. Bottom Up Parsing VP NP Verb Nominal Det book that Noun flight

  49. Bottom Up Parsing S VP NP Verb Nominal Det book that Noun flight

  50. Bottom Up Parsing S X VP NP Verb Nominal Det book that Noun flight 50

More Related