%%%------------------------------------------------------------------------------------------------------------ %%% Admissible Node的定义 \begin{center} \begin{tikzpicture} {\small \begin{scope}[sibling distance=25pt, level distance=20pt] \Tree[.\node(n1){IP}; [.\node(n2){NP}; [.\node(n3){PN}; \node(cw1){他}; ]] [.\node(n4){VP}; [.\node(n5){PP}; [.\node(n6){P}; \node(cw2){对}; ] [.\node(n7){NP}; [.\node(n8){NN}; \node(cw3){回答}; ] ] ] [.\node(n9){VP}; [.\node(n10){VV}; \node(cw4){表示}; ] [.\node(n11){NN}; \node(cw5){满意}; ] ] ] ] \node[anchor=north,minimum size=18pt,align=center] (tw1) at ([yshift=-6.0em]cw1.south){he\\\footnotesize{1}}; \node[anchor=west,minimum size=18pt,align=center] (tw2) at ([yshift=-0.1em,xshift=1.1em]tw1.east){was\\\footnotesize{2}}; \node[anchor=west,minimum size=18pt,align=center] (tw3) at ([yshift=0.1em,xshift=1.1em]tw2.east){satisfied\\\footnotesize{3}}; \node[anchor=west,minimum size=18pt,align=center] (tw4) at ([xshift=1.1em]tw3.east){with\\\footnotesize{4}}; \node[anchor=west,minimum size=18pt,align=center] (tw5) at ([xshift=1.1em]tw4.east){the\\\footnotesize{5}}; \node[anchor=west,minimum size=18pt,align=center] (tw6) at ([yshift=-0.1em,xshift=1.1em]tw5.east){answer\\\footnotesize{6}}; \draw[dashed] (cw1.south) -- ([yshift=-0.4em]tw1.north); \draw[dashed] (cw2.south) .. controls +(south:1.6) and +(north:0.6) .. ([yshift=-0.4em]tw4.north); \draw[dashed] (cw3.south) -- ([yshift=-0.4em]tw5.north); \draw[dashed] (cw3.south) -- ([yshift=-0.4em]tw6.north); \draw[dashed] (cw4.south) .. controls +(south:2.0) and +(north:0.6) .. ([yshift=-0.4em]tw3.north); \draw[dashed] (cw5.south) .. controls +(south:2.0) and +(north:0.6) .. ([yshift=-0.4em]tw3.north); \node [anchor=south west,align=left,fill=red!20,drop shadow] (label1) at ([xshift=0.5em,yshift=-1.3em]n11.north east) {\footnotesize{可达范围=\{3\}}\\\footnotesize{补充范围=\{1,3-6\}}}; \node [anchor=south west,align=left,fill=blue!20,drop shadow] (label2) at ([xshift=0.5em,yshift=-0.5em]n4.north east) {\footnotesize{可达范围=\{3-6\}}\\\footnotesize{补充范围=\{1\}}}; \begin{pgfonlayer}{background} \node [rectangle,fill=red!20,inner sep=0] [fit = (n11)] (n11box) {}; \node [rectangle,fill=blue!20,inner sep=0] [fit = (n4)] (n4box) {}; { \node [rectangle,fill=blue!20,inner sep=0] [fit = (n1)] (n1box) {}; \node [rectangle,fill=blue!20,inner sep=0] [fit = (n2)] (n2box) {}; \node [rectangle,fill=blue!20,inner sep=0] [fit = (n3)] (n3box) {}; \node [rectangle,fill=blue!20,inner sep=0] [fit = (n5)] (n5box) {}; \node [rectangle,fill=blue!20,inner sep=0] [fit = (n6)] (n6box) {}; \node [rectangle,fill=blue!20,inner sep=0] [fit = (n7)] (n7box) {}; \node [rectangle,fill=blue!20,inner sep=0] [fit = (n8)] (n8box) {}; \node [rectangle,fill=blue!20,inner sep=0] [fit = (n9)] (n9box) {}; \node [rectangle,fill=red!20,inner sep=0] [fit = (n10)] (n10box) {}; } \end{pgfonlayer} { \node [anchor=north] (n11boxlabel) at (label1.south) {\footnotesize{{\red{不可信}}}}; \node [anchor=north] (n4boxlabel) at (label2.south) {\footnotesize{{{\color{ublue} 可信}}}}; } { \node [anchor=north west, minimum size=1.2em, fill=blue!20] (land1) at ([xshift=1.5em,yshift=-1em]cw5.south east) {}; \node [anchor=west] (land1label) at (land1.east) {\footnotesize{可信}}; \node [anchor=north west, minimum size=1.2em, fill=red!20] (land2) at ([yshift=-0.3em]land1.south west) {}; \node [anchor=west] (land2label) at (land2.east) {\footnotesize{不可信}}; } \end{scope} } \end{tikzpicture} \end{center}