figure-phrase-structure-tree-and-dependency-tree.tex 1.7 KB
Newer Older
曹润柘 committed
1 2 3 4 5 6 7 8 9 10 11 12
\definecolor{ublue}{rgb}{0.152,0.250,0.545}
\definecolor{ugreen}{rgb}{0,0.5,0}



%%% outline
%-------------------------------------------------------------------------
\begin{tikzpicture}

\begin{scope}[sibling distance=7pt,level distance=22pt]


孟霞 committed
13 14 15
\Tree[.\node[inner sep=1pt,fill=red!20](sn0){IP\scriptsize{ 句子}};
          [.\node[inner sep=1pt,fill=red!20](sn1){NP\scriptsize{}};
               [.\node[inner sep=1pt,fill=blue!20](sn2){NN\tiny{ 名词}}; \node(sw1){}; ]
曹润柘 committed
16
          ]
孟霞 committed
17 18 19 20 21
          [.\node[inner sep=1pt,fill=red!20](sn3){VP\scriptsize{}};
               [.\node[inner sep=1pt,fill=blue!20](sn4){VV\tiny{ 动词}}; \node(sw2){喜欢}; ]
               [.\node[inner sep=1pt,fill=green!20](sn5){VP\scriptsize{}};
                     [.\node[inner sep=1pt,fill=green!20](sn6){VV\tiny{ 动词}}; \node(sw1){}; ]
                     [.\node[inner sep=1pt,fill=green!20](sn7){NN\tiny{ 名词}}; \node(sw1){}; ]
曹润柘 committed
22 23 24 25
               ]
          ]
     ]

孟霞 committed
26

曹润柘 committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

\end{scope}

\begin{scope}[xshift=1.7in,yshift=-0.4in]

\node [,inner sep=2pt] (w1) at (0,0) {};
\node [anchor=west,inner sep=2pt] (w2) at ([xshift=0.8em,yshift=3em]w1.east) {喜欢};
\node [anchor=west,inner sep=2pt] (w3) at ([xshift=4.5em]w1.east) {};
\node [anchor=west,inner sep=2pt] (w4) at ([xshift=2em,yshift=-3em]w3.east) {};

\draw [-,ultra thick,ublue] (w1.north east) -- (w2.south) node [pos=0.3, above, xshift=-0.5em] {\color{red}{\tiny{主谓}}};
\draw [-,ultra thick,red] (w3.north west) -- (w2.south) node [pos=0.3, above, xshift=0.5em] {\color{red}{\tiny{连动}}};
\draw [-,ultra thick,ugreen] (w3.south east) -- (w4.north west) node [pos=0.5, above, xshift=0.5em] {\color{red}{\tiny{谓宾}}};

\end{scope}

\end{tikzpicture}