Commit 5acc4f13 by xiaotong

new pages

parent d9d8616e
......@@ -256,6 +256,13 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
%%% 规则的组装对应翻译过程
\begin{frame}{使用规则定义翻译过程}
\begin{itemize}
\item 规则的推导描述双语句子同步生成(和分析)的过程
\begin{itemize}
\item \raisebox{0.3em}{\tikz{\draw[*-*] (0,0)--(0.5,0);}}表示对边缘阶段(变量)的替换操作
\end{itemize}
\end{itemize}
\begin{tikzpicture}
% target side
......@@ -263,11 +270,11 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
\node[scale=0.8] at (1.5, 2.2) {目标语言};
\node[scale=0.6, inner sep=0.1cm, draw] (tfrag1) at
\node[scale=0.6, inner sep=0.1cm, draw,xshift=1em] (tfrag1) at
(0,0.05) {\Tree[.NP [.DT the ] [.NNS imports ]]};
\visible<4->{
\node[scale=0.6, inner sep=0.1cm, draw, sibling distance=115pt] (tfrag2) at
\node[scale=0.6, inner sep=0.1cm, draw, sibling distance=100pt] (tfrag2) at
(1.4,1.4) {\Tree[.S [.NP ] [.VP ]]};
}
......@@ -281,9 +288,9 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
(2.8,-1.8) {\Tree[.RB drastically ]};
}
\visible<4->{\draw[<->] (0.00,0.7) -- (0.00,1.0);}
\visible<4->{\draw[<->] (2.9,0.7) -- (2.9,1.0);}
\visible<3->{\draw[<->] (2.4,-1.4) .. controls +(north:0.6) and +(south:0.6) .. (3.0,-0.6);}
\visible<4->{\draw[*-*] (0.15,0.7) -- (0.15,1.05);}
\visible<4->{\draw[*-*] (2.7,0.7) -- (2.7,1.05);}
\visible<3->{\draw[*-*] (2.4,-1.4) .. controls +(north:0.6) and +(south:0.6) .. (3.0,-0.6);}
\end{scope}
% source side
......@@ -311,14 +318,14 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
(1.3,-1.3) {\Tree[.AD 大幅度 ]};
}
\visible<4->{\draw[<->] (0.05,0.5) -- (0.05,0.95);}
\visible<4->{\draw[<->] (4.15,0.5) -- (4.15,0.95);}
\visible<3->{\draw[<->] (1.55,-0.95) .. controls +(east:1.0) and +(south:0.4) .. (3.5,-0.6);}
\visible<4->{\draw[*-*] (0.05,0.5) -- (0.05,0.95);}
\visible<4->{\draw[*-*] (4.15,0.5) -- (4.15,0.95);}
\visible<3->{\draw[*-*] (1.55,-0.95) .. controls +(east:1.0) and +(south:0.4) .. (3.5,-0.6);}
\end{scope}
% rule 1
\begin{scope}[scale=0.6, xshift=-22em, yshift=-13em, level distance=20pt]
\begin{scope}[scale=0.6, xshift=-22em, yshift=-12em, level distance=20pt]
\begin{scope}[anchor=north east, xshift=-6em] \Tree[.NN 进口 ] \end{scope}
\draw[->] (-1.7,0.1) -- (-0.9,0.1);
......@@ -327,7 +334,7 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
\end{scope}
% rule 2
\begin{scope}[scale=0.6, xshift=-10em, yshift=-13em, level distance=20pt]
\begin{scope}[scale=0.6, xshift=-11em, yshift=-12em, level distance=20pt]
\begin{scope}[anchor=north east, xshift=-6em] \Tree[.AD 大幅度 ] \end{scope}
\draw[->] (-1.7,0.1) -- (-0.9,0.1);
......@@ -336,7 +343,7 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
\end{scope}
% rule 3
\begin{scope}[scale=0.6, xshift=3em, yshift=-13em, level distance=20pt]
\begin{scope}[scale=0.6, xshift=2em, yshift=-12em, level distance=20pt]
\begin{scope}[anchor=north east, xshift=-7em] \Tree[.VP [.AD ] [.ADVP [.VV 下降 ] [.AS 了 ]]] \end{scope}
\draw[->] (-1.7,0.1) -- (-0.9,0.1);
......@@ -345,7 +352,7 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
\end{scope}
% rule 4
\begin{scope}[scale=0.6, xshift=17em, yshift=-13em, level distance=20pt]
\begin{scope}[scale=0.6, xshift=16em, yshift=-12em, level distance=20pt]
\begin{scope}[anchor=north east, xshift=-6em] \Tree[.IP [.NN ] [.VP ]] \end{scope}
\draw[->] (-1.7,0.1) -- (-0.9,0.1);
......@@ -354,7 +361,7 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
\end{scope}
% red rule 1
\begin{scope}[red, scale=0.6, xshift=-22em, yshift=-13em, level distance=20pt]
\begin{scope}[red, scale=0.6, xshift=-22em, yshift=-12em, level distance=20pt]
\visible<1>{
\begin{scope}[anchor=north east, xshift=-6em] \Tree[.NN 进口 ] \end{scope}
......@@ -366,7 +373,7 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
\visible<2>{
% red rule 2
\begin{scope}[red, scale=0.6, xshift=-10em, yshift=-13em, level distance=20pt]
\begin{scope}[red, scale=0.6, xshift=-11em, yshift=-12em, level distance=20pt]
\begin{scope}[anchor=north east, xshift=-6em] \Tree[.AD 大幅度 ] \end{scope}
\draw[->] (-1.7,0.1) -- (-0.9,0.1);
......@@ -377,7 +384,7 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
\visible<3>{
% red rule 3
\begin{scope}[red, scale=0.6, xshift=3em, yshift=-13em, level distance=20pt]
\begin{scope}[red, scale=0.6, xshift=2em, yshift=-12em, level distance=20pt]
\begin{scope}[anchor=north east, xshift=-7em] \Tree[.VP [.AD ] [.ADVP [.VV 下降 ] [.AS 了 ]]] \end{scope}
\draw[->] (-1.7,0.1) -- (-0.9,0.1);
......@@ -388,7 +395,7 @@ $x$表示叶子非终结符(可替换的变量),显然这是调序规则
\visible<4>{
% rule 4
\begin{scope}[red, scale=0.6, xshift=17em, yshift=-13em, level distance=20pt]
\begin{scope}[red, scale=0.6, xshift=16em, yshift=-12em, level distance=20pt]
\begin{scope}[anchor=north east, xshift=-6em] \Tree[.IP [.NN ] [.VP ]] \end{scope}
\draw[->] (-1.7,0.1) -- (-0.9,0.1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论