%%%------------------------------------------------------------------------------------------------------------ %%% 基于串的解码方法 \begin{center} \begin{tikzpicture} \begin{scope}[scale=0.9,level distance=30pt,sibling distance=7pt] {\small \Tree[.\node(bsn0){IP}; [.\node(bsn1){NP}; [.\node(bsn2){NN}; \node(bsw1){猫}; ] ] [.\node(bsn3){VP}; [.\node(bsn4){VV}; \node(bsw2){喜欢}; ] [.\node(bsn5){VP}; \edge[roof]; \node(bsw3){吃 \ 鱼}; ] ] ] \node [anchor=west] (target) at ([xshift=1em]bsw3.east) {Cats like eating fish}; \node [anchor=north,inner sep=3pt] (cap1) at ([yshift=-1em]target.south west) {(a) 基于树的解码}; \draw [->,thick] (bsw3.east) -- (target.west); \node [anchor=west] (sourcelabel) at ([xshift=6em,yshift=-1em]bsn0.east) {显式输入的结构}; \node [anchor=west] (source2) at ([xshift=3.3em]target.east) {猫$\ \ \;$喜欢$\ \;$吃\ 鱼}; \node [anchor=west] (target2) at ([xshift=1em]source2.east) {Cats like eating fish}; \node [anchor=north,inner sep=3pt] (cap2) at ([xshift=1.1em,yshift=-1em]target2.south west) {(b) 基于串的解码}; \draw [->,thick] (source2.east) -- (target2.west); \begin{pgfonlayer}{background} { \path [draw,dashed,rectangle,inner sep=1em,thick,blue,rounded corners=5pt] ([xshift=-3em,yshift=0.5em]bsn0.north west) -- ([xshift=5.3em,yshift=0.5em]bsn0.north east) -- ([xshift=5.3em,yshift=-10.5em]bsn0.north east) -- ([xshift=-3em,yshift=-10.5em]bsn0.north west) -- ([xshift=-3em,yshift=0.5em]bsn0.north west); } \end{pgfonlayer} \begin{scope}[xshift=3.18in,yshift=-0em,sibling distance=10pt] \Tree[.\node(bsn0){IP}; [.\node(bsn1){NP}; [.\node(bsn2){NN}; ] ] [.\node(bsn3){VP}; [.\node(bsn4){VV}; ] [.\node(bsn5){VP}; ] ] ] \begin{pgfonlayer}{background} \node [draw,dashed,rectangle,inner sep=1em,thick,red,rounded corners=5pt] (box) [fit = (bsn0) (bsn1) (bsn2) (bsn3) (bsn4) (bsn5)] {}; \node [anchor=north west] (boxlabel) at ([xshift=2em,yshift=-2em]box.north east) {隐含结构}; \end{pgfonlayer} \end{scope} } \end{scope} \end{tikzpicture} \end{center}