Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
Toy-MT-Introduction
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
单韦乔
Toy-MT-Introduction
Commits
5acc4f13
Commit
5acc4f13
authored
Dec 26, 2019
by
xiaotong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new pages
parent
d9d8616e
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
293 行增加
和
19 行删除
+293
-19
Section04-Phrasal-and-Syntactic-Models/section04-test.tex
+23
-16
Section04-Phrasal-and-Syntactic-Models/section04.tex
+270
-3
没有找到文件。
Section04-Phrasal-and-Syntactic-Models/section04-test.tex
查看文件 @
5acc4f13
...
...
@@ -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=1
15
pt]
(tfrag2) at
\node
[scale=0.6, inner sep=0.1cm, draw, sibling distance=1
00
pt]
(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=-1
3
em, level distance=20pt]
\begin{scope}
[scale=0.6, xshift=-22em, yshift=-1
2
em, 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=-1
0em, yshift=-13
em, level distance=20pt]
\begin{scope}
[scale=0.6, xshift=-1
1em, yshift=-12
em, 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=-13
em, level distance=20pt]
\begin{scope}
[scale=0.6, xshift=
2em, yshift=-12
em, 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=1
7em, yshift=-13
em, level distance=20pt]
\begin{scope}
[scale=0.6, xshift=1
6em, yshift=-12
em, 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=-1
3
em, level distance=20pt]
\begin{scope}
[red, scale=0.6, xshift=-22em, yshift=-1
2
em, 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=-1
0em, yshift=-13
em, level distance=20pt]
\begin{scope}
[red, scale=0.6, xshift=-1
1em, yshift=-12
em, 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=-13
em, level distance=20pt]
\begin{scope}
[red, scale=0.6, xshift=
2em, yshift=-12
em, 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=1
7em, yshift=-13
em, level distance=20pt]
\begin{scope}
[red, scale=0.6, xshift=1
6em, yshift=-12
em, 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);
...
...
Section04-Phrasal-and-Syntactic-Models/section04.tex
查看文件 @
5acc4f13
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论