figure-an-example-of-phrase-system.tex 1.49 KB
Newer Older
曹润柘 committed
1 2 3 4 5
%%%------------------------------------------------------------------------------------------------------------
%%%  短语系统的问题 - 一个实例
\begin{center}
\begin{tikzpicture}
\begin{scope}
6
\node [anchor=east] (shead) at (0,0) {源语言句子:};
7
\node [anchor=west] (swords) at (shead.east) {东北大学\ \ \ \ \ \ 东软\ \ \ \ 合作\ \ \ \ 众多\ \ 高校\ \ 之一};
8
\node [anchor=north east] (thead) at ([yshift=-0.8em]shead.south east) {系统输出:};
9 10
\node [anchor=west] (twords) at (thead.east) {NEU  is collaborative relations with Neusoft};
\node [anchor=north west] (twords2) at ([yshift=-0.2em]twords.south west) {is one of the many universities};
曹润柘 committed
11
\node [anchor=north east] (rhead) at ([yshift=-2.2em]thead.south east) {参考译文:};
12 13
\node [anchor=west] (rwords) at (rhead.east) {NEU  is one of the many universities that have};
\node [anchor=north west] (rwords2) at ([yshift=-0.2em]rwords.south west) {collaborative relations with Neusoft};
曹润柘 committed
14 15 16

\begin{pgfonlayer}{background}
{
17 18 19 20
\draw[fill=red!20,draw=white] ([xshift=-5.8em]twords.north) rectangle ([xshift=9.6em]twords.south);
\draw[fill=blue!20,draw=white] ([xshift=-5.4em]twords2.north) rectangle ([xshift=6.7em]twords2.south);
\node [anchor=south east,inner sep=1pt,fill=black] (l1) at ([xshift=9.6em]twords.south) {\tiny{{\color{white} 1}}};
\node [anchor=south east,inner sep=1pt,fill=black] (l2) at ([xshift=6.7em]twords2.south) {\tiny{{\color{white} 2}}};
曹润柘 committed
21 22 23 24 25 26 27 28
}
\end{pgfonlayer}

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