Foundations
Dependency Parsing
What you’ll learn
- Read a dependency tree: heads, dependents, arrows and levels
- Understand why the root is drawn as a self-loop
- Recognise the six relation families by colour
- Say what a dependency parse can express that a Reed-Kellogg diagram cannot, and the reverse
One rule: every word has one head
That is the entire system. Pick any word; there is exactly one other word it depends on, called its head. The word doing the depending is the dependent. The link between them is an arc, and the arc carries a relation label naming the kind of dependency.
One word in each sentence has no head — the root, almost always the main verb. Everything else hangs off it, directly or through a chain.
Find the root first
It is the main verb: the one word the sentence could not lose. Everything else will attach to it or to something that attaches to it.For each remaining word, ask what it belongs to
Not “what does it mean” but “what would I have to delete for this word to become stranded?” In the tall pilot, deleting pilot strands both the and tall, so pilot is their head.Name the relation
A subject isnsubj, a direct objectdobj, a determinerdet, an adjective on a nounamod. The full list is below — but a handful covers most sentences.
“Snow fell.”
- nsubjNominal subject
- ROOTRoot of the sentence
The root is its own head
The root has nothing above it, so the parser records it as being its own head. That is not a trick — it is how the data is genuinely stored, and it is why the root is drawn with a short stub rising out of the top of its box rather than an arc from somewhere else.
It matters in practice: in the Dependencies exercise, the root takes one click, not two. Every other relation asks you to click a head and then a dependent; for the root there is only one word to click.
Depth, and why arcs cross
Words stay in sentence order horizontally, which means arcs sometimes cross. That is accepted deliberately: rearranging words to avoid crossings would destroy the one thing that makes a tree easy to check against the sentence above it.
“The pilot landed the plane safely.”
- detDeterminer
- nsubjNominal subject
- ROOTRoot of the sentence
- dobjDirect object
- advmodAdverbial modifier
Comparing the two views
The six relation families
There are forty-six relation labels, which is far too many to give distinct colours that stay readable in every theme. They are grouped into six families instead, and the colour tells you the family, the label tells you the relation. Two arcs of the same colour are relatives, not the same thing.
Every label above is a link. The Dependency Relations group explains all forty-six in full, with a worked example of each use case — including the handful this parser never produces, and the one that reaches the corpus only because an administrator put it there.
What each view cannot say
The clearest way to understand either notation is to find the thing it is bad at.
A dependency parse cannot show a phrase. There is no arc meaning “these four words are one unit”. You can recover it — a word plus everything hanging below it is a phrase — but the picture never says so directly.
So a relation names the head of a phrase, while a Reed-Kellogg role names the whole of it: in the Dependencies exercise nsubj marks passengers alone, and in the Roles exercise the Subject is the passengers. The two labels can read alike — pobj and “Object of preposition” — and still point at different amounts of the sentence.
A Reed-Kellogg diagram cannot name a relationship. A slant says “modifier” and nothing more; whether it is a determiner, an adjective or a possessive is left to the reader. The dependency parse distinguishes all three.
The practical upshot: use the Reed-Kellogg diagram when you want to see structure, and the dependency tree when you want to see relationships. This app draws both for every sentence so you never have to choose.
“Nina left because the music stopped.”
- nsubjNominal subject
- ROOTRoot of the sentence
- markMarker
- detDeterminer
- advclAdverbial clause modifier
Comparing the two views
advcl arc; the second clause is present, but only as a subtree you have to notice. Conversely the tree tells you because is specifically a mark, which the dashed line does not.A dependency tree cannot give a word two heads. Every word has exactly one incoming arc. That rule is what makes the picture a tree, and it is what the Dependencies exercise asks you to find: one relation and one head per word. Most sentences never put it under strain. This one does — She both knows and corresponds with the queen.
Queen is the direct object of knows and the object of the preposition with. The Reed-Kellogg diagram can say both at once: the two verbs fork, knows ends in the direct object’s upright separator, with hangs from corresponds, and the two lines run back together so that queen stands where they meet. The tree has to choose. The parser attaches queen to with as pobj, and knows is left with no object at all — the dobj relation is not hidden somewhere in the tree, it is absent from it.
So the Roles exercise accepts the queen as both Direct object and Object of preposition, while the Dependencies exercise asks for one arc, pobj, because that is all the tree contains. Richer representations exist — enhanced dependency graphs let a word carry a second, secondary head — but this app draws the basic tree deliberately: it is what the parser produces, and the point of showing both views is that each says something the other cannot. Try both exercises on this sentence in the Practice Lab.
“She both knows and corresponds with the queen.”
- nsubjNominal subject
- preconjPre-correlative conjunction
- ROOTRoot of the sentence
- ccCoordinating conjunction
- conjConjunct
- prepPrepositional modifier
- detDeterminer
- pobjObject of preposition
Comparing the two views
preconj and and as cc, two different jobs the diagram gives one dashed line.Key terms
- Head
- The word another word depends on. Every word has exactly one, except the root. In Birds sing. the head of birds is sing. In the tired birds the head of both the and tired is birds.
See: Grammar Basics
- Dependent
- The word doing the depending — the arrow points at it. Birds sing. — birds is the dependent of sing. Birds sing loudly. — loudly is a second dependent of the same verb.
- Arc
- One head-to-dependent link, carrying a relation label. The Dependencies exercise asks you to identify the ordered triple: relation, head, dependent. Birds sing. has one arc,
nsubj, from sing to birds. Birds sing loudly. has two; the second is labelledadvmod. - Root
- The one word with no head, stored as being its own head. Almost always the main verb. Birds sing. — the root is sing. The kettle had been whistling. — the root is whistling, not either auxiliary.
See: Root & Leftovers
- Level
- Distance from the root, which is what fixes a word’s vertical position. Computed once from the whole parse, so the tree never reflows as you answer. Birds sing. — sing is level 0, birds level 1. The tired birds slept. — the and tired sit at level 2, one row below birds.
- Crossing arcs
- When a dependent sits far from its head, arcs cross. Not an error — a consequence of keeping the words in sentence order. A letter arrived that changed everything. — the clause belongs to letter but follows arrived, so its arc crosses. She looked the word up. — up belongs to looked, across the word.
Practice on a real sentence
ROOT, which takes a single click. The sentence has two prepositional phrases, so prep and pobj each occur twice.“She sat on the chair in the corner.”
Word dependencies
Pick a relation, click the head, then click the dependent.
Sentence — select a relation below, then click the words it connects
She sat on the chair in the corner.
Dependency tree — word-order columns
The dependency tree is built here as each relation is confirmed