figure-basic-process-of-translation.tex 2.99 KB
Newer Older
曹润柘 committed
1 2 3 4 5 6
%%%------------------------------------------------------------------------------------------------------------
%%% 什么是解码
\begin{tikzpicture}

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

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

单韦乔 committed
12
\node[anchor=east] (t0) at (-0.5em, -1.5) {$\seq{t}$};
曹润柘 committed
13 14 15 16 17 18 19 20

\node[anchor=north] (l) at ([xshift=7em,yshift=-0.5em]t0.south) {\footnotesize{(a)\ }};
\end{scope}



\begin{scope}[xshift=15em,minimum height = 18pt]

单韦乔 committed
21
\node[anchor=east] (s0) at (-0.5em, 0) {$\seq{s}$};
曹润柘 committed
22 23 24 25
\node[anchor=west,fill=gray!20] (s1) at (0, 0) {\footnotesize{桌子 上}};
\node[anchor=west,fill=red!20] (s2) at ([xshift=1em]s1.east) {\footnotesize{}};
\node[anchor=west,fill=gray!20] (s3) at ([xshift=1em]s2.east) {\footnotesize{一个 苹果}};

单韦乔 committed
26
\node[anchor=east] (t0) at (-0.5em, -1.5) {$\seq{t}$};
曹润柘 committed
27 28 29 30 31 32 33 34 35 36 37 38
{
\node[anchor=west,fill=red!20] (t1) at (0, -1.5) {\footnotesize{There is}};
\path[<->, thick] (s2.south) edge (t1.north);
}

\node[anchor=north] (l) at ([xshift=7em,yshift=-0.5em]t0.south) {\footnotesize{(b)\ }};
\end{scope}



\begin{scope}[yshift=-9.5em,minimum height = 18pt]

单韦乔 committed
39
\node[anchor=east] (s0) at (-0.5em, 0) {$\seq{s}$};
曹润柘 committed
40 41 42 43
\node[anchor=west,fill=gray!20] (s1) at (0, 0) {\footnotesize{桌子 上}};
\node[anchor=west,fill=gray!20] (s2) at ([xshift=1em]s1.east) {\footnotesize{}};
\node[anchor=west,fill=red!20] (s3) at ([xshift=1em]s2.east) {\footnotesize{一个 苹果}};

单韦乔 committed
44
\node[anchor=east] (t0) at (-0.5em, -1.5) {$\seq{t}$};
曹润柘 committed
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
{
\node[anchor=west,fill=gray!20] (t1) at (0, -1.5) {\footnotesize{There is}};
\path[<->, thick] (s2.south) edge (t1.north);
}
{
\node[anchor=west,fill=red!20] (t2) at ([xshift=1em]t1.east) {\footnotesize{an apple}};
\path[<->, thick] (s3.south) edge (t2.north);
}
\node[anchor=north] (l) at ([xshift=7em,yshift=-0.5em]t0.south) {\footnotesize{(c)\ }};
\end{scope}




\begin{scope}[xshift=15em,yshift=-9.5em,minimum height = 18pt]%[scale=0.5]

单韦乔 committed
61
\node[anchor=east] (s0) at (-0.5em, 0) {$\seq{s}$};
曹润柘 committed
62 63 64 65
\node[anchor=west,fill=red!20] (s1) at (0, 0) {\footnotesize{桌子 上}};
\node[anchor=west,fill=gray!20] (s2) at ([xshift=1em]s1.east) {\footnotesize{}};
\node[anchor=west,fill=gray!20] (s3) at ([xshift=1em]s2.east) {\footnotesize{一个 苹果}};

单韦乔 committed
66
\node[anchor=east] (t0) at (-0.5em, -1.5) {$\seq{t}$};
曹润柘 committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
{
\node[anchor=west,fill=gray!20] (t1) at (0, -1.5) {\footnotesize{There is}};
\path[<->, thick] (s2.south) edge (t1.north);
}
{
\node[anchor=west,fill=gray!20] (t2) at ([xshift=1em]t1.east) {\footnotesize{an apple}};
\path[<->, thick] (s3.south) edge (t2.north);
}
{
\node[anchor=west,fill=red!20] (t3) at ([xshift=1em]t2.east) {\footnotesize{on the table}};
\path[<->, thick] (s1.south) edge (t3.north);
}
\node[anchor=north] (l) at ([xshift=7em,yshift=-0.5em]t0.south) {\footnotesize{(d)\ }};
\end{scope}
\end{tikzpicture}