Context-Free Grammars and Constituency Parsing

Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 19

5 cards in “19.5 Ambiguity” · whole deck

19.5 Ambiguity

  1. What is structural ambiguity?
    When a grammar can assign more than one parse to a sentence.
  2. Why is “I shot an elephant in my pajamas” structurally ambiguous?
    PP-attachment: in my pajamas can attach inside the NP headed by elephant (the elephant wears the pajamas) or to the VP headed by shot (the shooter wears them).
    NP attachmentshot [NP an elephant in my pajamas]
    VP attachment[VP shot an elephant] in my pajamas
  3. What is attachment ambiguity? Give a non-PP example.
    A constituent can attach to the tree at more than one place. E.g. in “We saw the Eiffel Tower flying to Paris”, the gerundive VP flying to Paris can belong to a clause whose subject is the Eiffel Tower, or modify saw.
  4. What is coordination ambiguity?
    Ambiguity in what a conjunction conjoins: old men and women = [old [men and women]] or [[old men] and women].
  5. Why is ambiguity such a serious problem for parsers?
    Real sentences contain many grammatically valid but semantically unreasonable parses, combining attachment and coordination ambiguities; a parser must handle them efficiently (CKY) and choose the right one (syntactic disambiguation).

Source