Syntactic Parsing Flashcards
What is syntactic parsing?
It is the process of assigning a syntactic structure to a sentence
What are two parsing structures?
Constituency structures and Dependency structures
What is the biggest challenge to syntactic parsing?
Ambiguity - specifically structural ambiguity
What is structural ambiguity?
It is where multiple parse trees are possible in a grammar for the same sentence
What is attachment ambiguity?
It is where a constituent could be attached to multiple places in a parse tree
What is coordination ambiguity?
It is where phrases can be conjoined in multiple ways
What is syntactic disambiguation?
It is choosing the correct parse
What is useful to address ambiguity?
Dynamic Programming
What algorithm is a classic dynamic programming approach to parsing?
The CKY algorithm
What is dynamic programming the same as?
Chart Parsing
What does CKY require grammars to be?
In Chomsky Normal Form (CNF)
What are the rules of Chomsky Normal Form?
The right side must be (i) two non-terminal nodes, or (ii) a single terminal node
How do we encode a parse tree in CNF?
We use a 2D matrix called a parse table. Indices before and after tokens are called fenceposts
What does each cell represent in a parse table?
An entry for i,j
i is the start fencepost index for span
j is the end fencepost index for span
n is the length of the sentence
span (i,j) is constituent phrase with j - i tokens
span (0,n) is the sentence
In a parse table, in what order do we move?
You move left to right, bottom to top