Dependency Tree Editor

Draw and edit a dependency tree for a sentence. Assign each token a head and relation, preview labeled arcs, and export SVG or CoNLL-U.

Separate tokens and punctuation with spaces.

Import CoNLL-U

Paste one CoNLL-U sentence with tab-separated columns.

TokenHeadRelation
1 She
2 reads
3 books
4 .

Dependency tree

Dependency treensubjobjpunctrootShe1reads2books3.4

Draw a dependency tree for a sentence

Start with the example or enter a sentence with spaces between tokens, including punctuation. Choose Use tokens to begin a new annotation. Each row represents a token. An arrow runs from the head to its dependent and carries the name of their relationship. The tree updates as you edit the rows.

Choose a head and dependency relation

In the example She reads books ., reads is the root. Set the head of She to reads and enter nsubj for its subject relation. Set the head of books to reads and enter obj for its object relation. Use punct for punctuation. A complete basic tree has one root and gives every other token a path to that root through its heads.

Reuse a dependency tree in CoNLL-U or SVG

Use Import CoNLL-U to paste one annotated sentence. The editor updates the HEAD and DEPREL columns of word rows and carries the remaining fields and comments through to the download. Choose Download CoNLL-U to reuse the completed annotation or Download SVG to add the diagram to a worksheet, slide, or document. See the Universal Dependencies format guide for the ten columns and their meanings.