figure-basic-process-of-translation.tex 3.64 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
\node[anchor=west,fill=green!20,draw,thick,rounded corners=0.3em] (s1) at (0, 0) {\footnotesize{桌子 上}};
\node[anchor=west,fill=green!20,draw,thick,rounded corners=0.3em] (s2) at ([xshift=1em]s1.east) {\footnotesize{}};
\node[anchor=west,fill=green!20,draw,thick,rounded corners=0.3em] (s3) at ([xshift=1em]s2.east) {\footnotesize{一个 苹果}};
曹润柘 committed
11

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

曹润柘 committed
14
\node[anchor=north] (l) at ([xshift=7em,yshift=-0.5em]t0.south) {\small{(a)\ 初始化状态}};
曹润柘 committed
15 16 17 18
\end{scope}



曹润柘 committed
19
\begin{scope}[xshift=17em,minimum height = 18pt]
曹润柘 committed
20

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

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

曹润柘 committed
32
\node[anchor=north] (l) at ([xshift=7em,yshift=-0.5em]t0.south) {\small{(b)\ 找到译文第一个词 }};
曹润柘 committed
33 34 35 36 37 38
\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
\node[anchor=west,fill=green!20,draw,thick,rounded corners=0.3em] (s1) at (0, 0) {\footnotesize{桌子 上}};
\node[anchor=west,fill=green!20,draw,thick,rounded corners=0.3em] (s2) at ([xshift=1em]s1.east) {\footnotesize{}};
\node[anchor=west,fill=red!20,draw,thick,rounded corners=0.3em] (s3) at ([xshift=1em]s2.east) {\footnotesize{一个 苹果}};
曹润柘 committed
43

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




曹润柘 committed
59
\begin{scope}[xshift=17em,yshift=-9.5em,minimum height = 18pt]%[scale=0.5]
曹润柘 committed
60

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

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