Dependency Parsing
Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20
12 cards in “20.1 Dependency relations” · whole deck
20.1 Dependency relations
- What are the two arguments of a dependency relation?A head, the central organizing word, and a dependent, a kind of modifier.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 450
- Why is labeling grammatical functions especially important in flexible word-order languages?In English, functions like subject and object correlate with position and constituent type, so they are partly redundant with phrase structure; in freer word-order languages the relation labels carry information phrase structure barely provides.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 450
- What is Universal Dependencies (UD)?An open community effort to annotate dependencies and other grammatical properties across more than 100 languages with a shared inventory of 37 relations.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 451
- Into which two sets can the core UD relations be divided?Clausal relations, describing syntactic roles with respect to a predicate (often a verb), and modifier relations, describing how words modify their heads.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 451
- Give core UD relations and their meanings.
relation meaning nsubj nominal subject obj direct object iobj indirect object ccomp clausal complement nmod nominal modifier amod adjectival modifier appos appositional modifier det determiner case preposition, postposition, case marker conj conjunct cc coordinating conjunction - Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 451
- Identify the relations in “We booked her the first flight to Miami.”We nsubj of booked; her iobj; flight obj; the det and first amod of flight; Miami nmod of flight, with to as its case marker.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 452
- How is a dependency structure represented formally?As a directed graph \(G = (V, A)\): vertices \(V\) (usually the words; possibly punctuation, or stems and affixes) and arcs \(A\) encoding head–dependent relations and their functions.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 451
- What constraints make a dependency structure a dependency tree?(1) A single root node with no incoming arcs; (2) every other vertex has exactly one incoming arc; (3) a unique path from the root to every vertex. So each word has one head and the structure is connected.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 452
- What is projectivity?An arc from head to dependent is projective if the head has a path to every word between them in the sentence; a tree is projective if all its arcs are, i.e. it can be drawn with no crossing arcs.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 452
- Give an example of a non-projective dependency.In “JetBlue canceled our flight this morning which was already late”, the arc from flight to its modifier late must cross the arc linking morning to its head; flexible word order languages have many such cases.
The two arcs cross: the tree is non-projective. - Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 452
- Why does projectivity matter for dependency parsing?English dependency treebanks converted from phrase-structure treebanks via head rules are always projective (so wrong for non-projective cases), and transition-based parsers can only produce projective trees.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 453
- How are dependency treebanks created?By annotators directly building dependency structures, by hand-correcting parser output, or (for some early treebanks) by deterministically converting constituency treebanks.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 20, §20.1, p. 453
Source
- Daniel Jurafsky and James H. Martin. Speech and Language Processing. 3rd edition (draft). https://web.stanford.edu/~jurafsky/slp3/