Questions: Computational Parsing Algorithms and Complexity

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An NLP team replaces a CKY chart parser with a neural parser because the neural model scores higher on a benchmark of standard news text. Months later, the system fails badly on technical documents with unusual syntactic constructions. What does this failure most directly illustrate?

ACKY is always more accurate than neural parsers because it uses explicit grammar rules that generalize better
BNeural parsers are O(n³) on technical text, causing them to time out on long sentences
CBenchmark accuracy and out-of-distribution robustness are different properties; a faster, higher-scoring parser can still fail in ways a grammar-based parser would not
DThe team should have used an Earley parser, which handles arbitrary context-free grammars and therefore generalizes to any text
Question 2 Multiple Choice

A shift-reduce parser, processing the sentence 'The horse raced past the barn fell,' successfully reduces 'the horse raced past the barn' as a complete verb phrase before encountering 'fell' — and then cannot recover. Why does this happen?

AShift-reduce requires Chomsky Normal Form, and this sentence contains a reduced relative clause that violates CNF
BThe O(n³) complexity of shift-reduce causes it to time out on garden-path constructions
CShift-reduce makes early, irrevocable commitments — once it reduces 'raced past the barn' as a main verb, it cannot reanalyze it as a relative clause modifier
DShift-reduce processes input right-to-left and therefore misses the main verb 'fell' at the end
Question 3 True / False

CKY can parse any context-free grammar as long as the sentence is unambiguous.

TTrue
FFalse
Question 4 True / False

An O(n) neural parser will generally be less accurate than an O(n³) chart parser, because higher time complexity reflects more thorough examination of the input.

TTrue
FFalse
Question 5 Short Answer

Explain the core tradeoff between shift-reduce and chart parsing approaches like CKY or Earley. Why is shift-reduce faster, and what does it sacrifice?

Think about your answer, then reveal below.