Lecture 8
Lecture 8
Today
• Parsing with CFGs
– Bottom-up, top-down
– Ambiguity
– CKY parsing
Parsing
• Parsing with CFGs refers to the task of
assigning proper trees to input strings
• Proper here means a tree that covers all and
only the elements of the input and has an S
at the top
• It doesn’t actually mean that the system can
select the correct tree from among all the
possible trees
Parsing
• As with everything of interest, parsing
involves a search which involves the making
of choices
• We’ll start with some basic methods before
moving on to the one or two that you need to
know
For Now
• Assume…
– You have all the words already in some buffer
– The input isn’t POS tagged
– We won’t worry about morphological analysis
– All the words are known