Every sentence you speak is secretly a tree. The verb is usually the root; every other word depends on exactly one head. In "The dog chased the cat," chased is the root, dog and cat are its dependents, and each the depends on its noun. Dependency parsing is the problem of finding that tree automatically.
Why does this matter? Knowing who did what to whom — the dependency structure — is the first step for question answering, machine translation, information extraction, and virtually every task in natural language processing. Without it, a computer sees "dog bites man" and "man bites dog" as nearly identical bags of words.
The classic solution is a transition system: a tiny state machine that scans the sentence left to right and fires one of three actions at each step — Shift a word onto a stack, attach an Arc-Left (the top of the stack depends on the next word), or attach an Arc-Right (the next word depends on the top of the stack). Joakim Nivre formalized this arc-eager algorithm in 2003, and it parses an -word sentence in exactly steps — linear time.
Comments
Loading comments...