๐ŸŒณ Parsing

= checking if words or statements conform to the rules of a ๐Ÿ“– Formal grammar1

How?

โ†’ use ๐ŸŽฐ Automata

Directions

  • โฌ‡๏ธ Top-Down (= goal-driven)
    • Start at S and progressively replace left-hand sides with right hand sides that match the string
    • Problems:
      • Left recursion (= NT at left edge of left-hand side)
      • Ambiguity
  • ๐Ÿ”ผ Bottom-Up (= data-driven)
    • Start at word level, progressively replace strings that match right-hand sides with left-hand sides
  • Problems when only using TD/BU parsing:

Strategies

Evaluation

  • Correctness
  • Completeness
  • Efficiency

๐Ÿ“– Example result:

  • Bracketing: [(S)[(NP) The children][(VP) ate[(NP) the cake]]]
  • Trees:

Footnotes

  1. Syntactic Analysis (Tutorialsprint) โ†ฉ