
Parsing in Natural Language Processing
Explore the world of parsing in NLP with insights into syntactic structure determination, CFG parsing, top-down vs. bottom-up parsing methods, and examples of parse trees. Learn how parsing plays a crucial role in identifying valid English sentences.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
PARSING David Kauchak CS159 Spring 2019
Admin Assignment 3 Quiz #1 Q1: 28 (77%) Q2: 32 (89%) Q3: 33 (92%) Average: 30 (84%)
Parsing Parsing is the field of NLP interested in automatically determining the syntactic structure of a sentence parsing can also be thought of as determining what sentences are valid English sentences
Parsing We have a grammar, determine the possible parse tree(s) Let s start with parsing with a CFG (no probabilities) I eat sushi with tuna NP VP S NP PRP NP N PP VP V NP VP V NP PP PP IN N PRP I V eat N sushi N tuna IN with approaches? algorithms?
Parsing Top-down parsing ends up doing a lot of repeated work doesn t take into account the words in the sentence until the end! Bottom-up parsing constrain based on the words avoids repeated work (dynamic programming) doesn t take into account the high-level structure until the end! CKY parser
Parsing Top-down parsing start at the top (usually S) and apply rules matching left-hand sides and replacing with right-hand sides Bottom-up parsing start at the bottom (i.e. words) and build the parse tree up from there matching right-hand sides and replacing with left-hand sides
Parsing Example S VP Verb NP book that flight Det Nominal book that Noun flight
Top Down Parsing S NP VP Pronoun
Top Down Parsing S NP VP Pronoun X book
Top Down Parsing S NP VP ProperNoun
Top Down Parsing S NP VP ProperNoun X book
Top Down Parsing S NP VP Det Nominal
Top Down Parsing S NP VP Det Nominal X book
Top Down Parsing S Aux NP VP
Top Down Parsing S Aux NP VP X book
Top Down Parsing S VP
Top Down Parsing S VP Verb
Top Down Parsing S VP Verb book
Top Down Parsing S VP Verb X that book
Top Down Parsing S VP Verb NP
Top Down Parsing S VP Verb NP book
Top Down Parsing S VP Verb NP Pronoun book
Top Down Parsing S VP Verb NP Pronoun book X that
Top Down Parsing S VP Verb NP ProperNoun book
Top Down Parsing S VP Verb NP ProperNoun X book that
Top Down Parsing S VP Verb NP Det Nominal book
Top Down Parsing S VP Verb NP Det Nominal book that
Top Down Parsing S VP Verb NP Det Nominal book that Noun
Top Down Parsing S VP Verb NP Det Nominal book that Noun flight
Bottom Up Parsing book that flight
Bottom Up Parsing Noun book that flight
Bottom Up Parsing Nominal Noun book that flight
Bottom Up Parsing Nominal Nominal Noun Noun book that flight
Bottom Up Parsing Nominal Nominal Noun X Noun book that flight
Bottom Up Parsing Nominal Nominal PP Noun book that flight
Bottom Up Parsing Nominal Nominal PP Noun Det book that flight
Bottom Up Parsing Nominal Nominal PP NP Noun Nominal Det book that flight
Bottom Up Parsing Nominal Nominal PP NP Noun Nominal Det book that Noun flight
Bottom Up Parsing Nominal Nominal PP NP Noun Nominal Det book that Noun flight
Bottom Up Parsing Nominal S Nominal PP NP VP Noun Nominal Det book that Noun flight
Bottom Up Parsing Nominal S Nominal PP NP VP X Noun Nominal Det book that Noun flight
Bottom Up Parsing Nominal Nominal PP X NP Noun Nominal Det book that Noun flight
Bottom Up Parsing NP Verb Nominal Det book that Noun flight
Bottom Up Parsing VP NP Verb Nominal Det book that Noun flight
Bottom Up Parsing S VP NP Verb Nominal Det book that Noun flight
Bottom Up Parsing S X VP NP Verb Nominal Det book that Noun flight
Bottom Up Parsing VP VP PP NP Verb Nominal Det book that Noun flight
Bottom Up Parsing VP VP PP X NP Verb Nominal Det book that Noun flight
Bottom Up Parsing VP NP NP Verb Nominal Det book that Noun flight
Bottom Up Parsing VP NP Verb Nominal Det book that Noun flight