figure-examples-of-translation-with-complex-ordering.tex 2.81 KB
Newer Older
曹润柘 committed
1 2 3 4 5 6 7 8 9
%------------------------------------------------------------------------------------------------------------
%%% 在MT中使用句法带来的好处

\begin{tikzpicture}

\begin{scope}[yshift=-0in]

{\scriptsize

10
\node[anchor=west] (ref) at (0,0) {{\sffamily\bfseries{参考答案:}} The Xiyanghong star performance troupe presented a wonderful Peking opera as well as singing and dancing };
曹润柘 committed
11

曹润柘 committed
12
\node[anchor=north west] (ref2) at (ref.south west) {{\color{white} \sffamily\bfseries{Reference:}} performance to the national audience .};
曹润柘 committed
13

14
\node[anchor=north west] (hifst) at (ref2.south west) {{\sffamily\bfseries{层次短语系统:}} Star troupe of Xiyanghong, highlights of Peking opera and dance show to the audience of the national .};
曹润柘 committed
15

16
\node[anchor=north west] (synhifst) at (hifst.south west) {{\sffamily\bfseries{句法系统:}} The XYH star troupe};
曹润柘 committed
17 18 19 20 21 22 23

\node[anchor=west, fill=green!20!white, inner sep=0.25em] (synhifstpart2) at (synhifst.east) {presented};

\node[anchor=west, fill=blue!20!white, inner sep=0.25em] (synhifstpart3) at ([xshift=0.2em]synhifstpart2.east) {a wonderful Peking opera singing and dancing};

\node[anchor=west, fill=red!20!white, inner sep=0.40em] (synhifstpart4) at ([xshift=0.2em]synhifstpart3.east) {to};

曹润柘 committed
24
\node[anchor=west, fill=purple!20!white, inner sep=0.25em] (synhifstpart5) at ([xshift=0.2em]synhifstpart4.east) {the national audience};
曹润柘 committed
25 26 27

\node[anchor=west] (synhifstpart6) at (synhifstpart5.east) {.};

28
\node[anchor=north west] (input) at ([yshift=-6.5em]synhifst.south west) {\sffamily\bfseries{源语言句法树:}};
曹润柘 committed
29 30 31 32

\begin{scope}[scale = 0.9, grow'=up, sibling distance=5pt, level distance=30pt, xshift=3.49in, yshift=-3.1in]

\Tree[.\node(tn1){IP};
33
        [.\node(tn2){NP}; \edge[roof]; \node[](seg1){夕阳红$_1$ 明星$_2$ 艺术团$_3$}; ]
曹润柘 committed
34 35 36 37 38 39 40 41
        [.\node(tn3){VP};
            [.\node(tn4){BA}; \node[fill=red!20!white](seg2){$_4$}; ]
            [.\node(tn5){NP}; \edge[roof]; \node[fill=blue!20!white](seg3){$_5$$_6$ 精彩$_7$$_8$ 京剧$_9$ 歌舞$_{10}$}; ]
            [.\node(tn6){VP};
                [.\node(tn7){VV}; \node[fill=green!20!white](seg4){呈现$_{11}$}; ]
            ]
            [.\node(tn8){PP};
                [.\node(tn9){P}; \node[fill=red!20!white](seg5){$_{12}$}; ]
曹润柘 committed
42
                [.\node(tn10){NP}; \edge[roof]; \node[fill=purple!20!white](seg6){全国$_{13}$ 观众$_{14}$}; ]
曹润柘 committed
43 44 45 46 47 48 49
            ]
        ]
        [.\node(tn11){.}; ]
     ]

\end{scope}

曹润柘 committed
50 51 52 53 54
\path [draw,->,dashed] (seg2.north) .. controls +(north:1.0) and +(south:1.5) ..  (synhifstpart4.south);
\path [draw,->,dashed] (seg3.north) --  (synhifstpart3.south);
\path [draw,->,dashed] (seg4.north) --  (synhifstpart2.south);
\path [draw,->,dashed] (seg5.north) .. controls +(north:0.5) ..  (synhifstpart4.south);
\path [draw,->,dashed] (seg6.north) --  (synhifstpart5.south);
曹润柘 committed
55 56 57 58

}
\end{scope}
\end{tikzpicture}