CKY Algorithm Explained: Parsing with Chomsky Normal Form

Added:

Overview & CNF
Parsing Setup
Fill Diagonal
Two-Word Checks
Longer Spans
Backpointers

Overview & CNF

0:00
Playing Section
  • 1

    Introduces the CKY algorithm for constituency parsing.

  • 2

    Explains Chomsky Normal Form requirements and conversion.

  • 3

    Details three conversion situations with corresponding solutions.

Fundamentals of Context-Free Grammars (CFGs), including terminals, non-terminals, and rewrite rules.
The concept of constituency parsing and how parse trees represent the syntactic structure of sentences.
Basic understanding of dynamic programming, specifically how tabular methods solve overlapping subproblems.
Familiarity with formal language theory, particularly how grammars generate strings.
Probabilistic Context-Free Grammars (PCFGs) and the Probabilistic CKY algorithm for resolving syntactic ambiguity.
Analyzing the computational complexity (O(n³ * |G|)) of the CKY algorithm and exploring optimization techniques like beam search parsing.
Alternative parsing algorithms, such as the Earley parser (which does not require Chomsky Normal Form conversion) and dependency parsing.
Modern deep learning-based approaches to syntactic parsing, including transition-based neural parsers and neural CRF parsers.
14.2K views198likes10:16@NatalieParde_NLPOriginal Release: 2020-12-27

The CKY algorithm is a dynamic programming approach for constituency parsing that requires context-free grammars to be in Chomsky Normal Form (CNF), which restricts production rules to either two non-terminals or one terminal; the algorithm uses a matrix where each cell stores non-terminals spanning input positions i-j, filled bottom-up from the diagonal, to efficiently determine whether a sentence can be parsed according to a specified grammar and optionally return all possible parse trees.