figure-reorder-base-phrase-translation.tex 820 Bytes
Newer Older
曹润柘 committed
1 2 3 4 5 6 7
%%%------------------------------------------------------------------------------------------------------------
%%% 调序模型1:基于距离的调序
\begin{center}
\begin{tikzpicture}

\begin{scope}[minimum height = 20pt]

单韦乔 committed
8
\node[anchor=east] (s0) at (-0.5em, 0) {$\seq{s}$};
曹润柘 committed
9 10 11
\node[anchor=west,fill=green!20] (s1) at (0, 0) {\footnotesize{在 桌子 上 的}};
\node[anchor=west,fill=red!20] (s2) at ([xshift=1em]s1.east) {\footnotesize{苹果}};

单韦乔 committed
12
\node[anchor=east] (t0) at (-0.5em, -1.5) {$\seq{t}$};
曹润柘 committed
13 14 15 16 17 18 19 20 21
\node[anchor=west,fill=red!20] (t1) at (0, -1.5) {\footnotesize{the apple}};
\node[anchor=west,fill=green!20] (t2) at ([xshift=1em]t1.east) {\footnotesize{on the table}};

\path[<->, thick] (s1.south) edge (t2.north);
\path[<->, thick] (s2.south) edge (t1.north);

\end{scope}
\end{tikzpicture}
\end{center}