Syntax, Grammars & Parsing
CMSC 470 Marine Carpuat
Fig credits: Joakim Nivre, Dan Jurafsky & James Martin
Syntax, Grammars & Parsing CMSC 470 Marine Carpuat Fig - - PowerPoint PPT Presentation
Syntax, Grammars & Parsing CMSC 470 Marine Carpuat Fig credits: Joakim Nivre, Dan Jurafsky & James Martin Syntax & Grammar Syntax From Greek syntaxis, meaning setting out together refers to the way words are
Fig credits: Joakim Nivre, Dan Jurafsky & James Martin
in any given natural language
attain knowledge of sentence structure”
language
[Philips, 2003]
useful
words
noun
verbs
same data!
Note: equivalence between parse trees and bracket notation
(typed or untyped, directed or undirected)
They hid the letter on the shelf Compare with constituent parse… What’s the relation?
relations called dependencies
They hid the letter on the shelf Compare with constituent parse… What’s the relation? Dependencies form a tree:
all!)
Goal: learn a good predictor of dependency graphs Input: sentence Output: dependency graph/tree G = (V,A) Can be framed as a structured prediction task
2 dominant approaches: transition-based parsing and graph-based parsing
[Aho & Ullman, 1972]
desired goal state
LEFT-ARC
(under top)
RIGHT-ARC
word on top
SHIFT
Properties of this algorithm:
all!)