\documentclass{standalone}
\usepackage{tikz-dependency}

\begin{document}
% In the preamble:

% In the document:
\begin{dependency}[theme = simple]
   \begin{deptext}[column sep=1em]
      I \& saw \& the \& Queen \& of \& England \& 's \& hat \\
   \end{deptext}
   \deproot{2}{ROOT}
   \depedge{2}{1}{NSUBJ}
   \depedge{2}{8}{DOBJ}
   \depedge{8}{4}{POSSESSIVE}
   \depedge{4}{7}{POSS}
   \depedge{4}{3}{DET}
   \depedge{4}{6}{NMOD}
   \depedge{6}{5}{CASE}
\end{dependency}
\end{document}
