liveBook · Manning

Root node

As explained in Natural Language Processing in Action, Second Edition

The root is the single word in a dependency tree that does not depend on another word in that tree.

A root node is the single word in a dependency tree that does not depend on another word. It starts the tree’s trunk and branches; in a sentence, it is often the main verb. section 11.6

Finding the root

In “Gebru was unethically fired from her Ethical AI team,” fired is the ROOT because it functions as the sentence’s main verb. Its children include Gebru, was, unethically, from, and the punctuation mark. section 11.6

How Natural Language Processing in Action, Second Edition covers it

How deep it goes
Explains the root definition, identifies it in a sentence, and inspects its children with spaCy.
Examples
Uses the sentence about Gebru being fired, a dependency table, child-token output, and a rendered dependency diagram.
What it assumes
Assumes familiarity with sentences and words while introducing dependency trees, heads, dependents, and grammatical relations.
What you can do after
Apply spaCy parsing to identify a sentence’s ROOT and inspect the words that depend on it.
How it connects
Connects root nodes to dependency parsing, dependency trees, grammatical relations, children, and knowledge graphs.

Also explained in

Compare how 5 books explain root node →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Natural Language Processing in Action, Second Edition. The section links point to the parts of the book it draws on.