Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mtbookv2
概览
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
NiuTrans
mtbookv2
Commits
3ff9f20a
Commit
3ff9f20a
authored
Sep 08, 2020
by
曹润柘
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'master' 到 'caorunzhe'
Master 查看合并请求
!160
parents
3ab25770
27f0ccba
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
17 行增加
和
11 行删除
+17
-11
Chapter8/Figures/figure-cky-algorithm.tex
+3
-3
Chapter8/Figures/figure-combination-of-translation-with-different-rules.tex
+8
-5
Chapter8/Figures/figure-extract-hierarchical-phrase-rules.tex
+1
-1
Chapter8/Figures/figure-hierarchical-phrase-rule-match-generate.tex
+5
-2
Chapter8/chapter8.tex
+0
-0
没有找到文件。
Chapter8/Figures/figure-cky-algorithm.tex
查看文件 @
3ff9f20a
...
...
@@ -12,11 +12,11 @@
\node
[srcnode,anchor=north west]
(c21) at ([xshift=1.5em,yshift=0.4em]c1.south west)
{
\normalsize
{
\textbf
{
for
}
$
j
=
0
$
to
$
J
-
1
$}}
;
\node
[srcnode,anchor=north west]
(c22) at ([xshift=1.5em,yshift=0.4em]c21.south west)
{
\normalsize
{$
span
[
j,j
+
1
]
$
.Add(
$
A
\to
a
\in
G
$
)
}}
;
\node
[srcnode,anchor=north west]
(c3) at ([xshift=-1.5em,yshift=0.4em]c22.south west)
{
\normalsize
{
\textbf
{
for
}
$
l
$
= 1 to
$
J
$}}
;
\node
[srcnode,anchor=west]
(c31) at ([xshift=6em]c3.east)
{
\normalsize
{
//
length of span
}}
;
\node
[srcnode,anchor=west]
(c31) at ([xshift=6em]c3.east)
{
\normalsize
{
//
跨度长度
}}
;
\node
[srcnode,anchor=north west]
(c4) at ([xshift=1.5em,yshift=0.4em]c3.south west)
{
\normalsize
{
\textbf
{
for
}
$
j
$
= 0 to
$
J
-
l
$}}
;
\node
[srcnode,anchor=north west]
(c41) at ([yshift=0.4em]c31.south west)
{
\normalsize
{
//
beginning of span
}}
;
\node
[srcnode,anchor=north west]
(c41) at ([yshift=0.4em]c31.south west)
{
\normalsize
{
//
跨度起始位置
}}
;
\node
[srcnode,anchor=north west]
(c5) at ([xshift=1.5em,yshift=0.4em]c4.south west)
{
\normalsize
{
\textbf
{
for
}
$
k
$
=
$
j
$
to
$
j
+
l
$}}
;
\node
[srcnode,anchor=north west]
(c51) at ([yshift=0.4em]c41.south west)
{
\normalsize
{
//
partition of span
}}
;
\node
[srcnode,anchor=north west]
(c51) at ([yshift=0.4em]c41.south west)
{
\normalsize
{
//
跨度结束位置
}}
;
\node
[srcnode,anchor=north west]
(c6) at ([xshift=1.5em,yshift=0.4em]c5.south west)
{
\normalsize
{$
hypos
$
= Compose(
$
span
[
j, k
]
, span
[
k, j
+
l
]
$
)
}}
;
\node
[srcnode,anchor=north west]
(c7) at ([yshift=0.4em]c6.south west)
{
\normalsize
{$
span
[
j, j
+
l
]
$
.Update(
$
hypos
$
)
}}
;
\node
[srcnode,anchor=north west]
(c8) at ([xshift=-4.5em,yshift=0.4em]c7.south west)
{
\normalsize
{
\textbf
{
return
}
$
span
[
0
, J
]
$}}
;
...
...
Chapter8/Figures/figure-combination-of-translation-with-different-rules.tex
查看文件 @
3ff9f20a
...
...
@@ -22,13 +22,13 @@
\draw
[decorate,decoration={mirror,brace}]
([xshift=0.5em,yshift=-1em]q2.west) --([xshift=7em,yshift=-1em]q2.west) node [xshift=0em,yshift=-1em,align=center](label1)
{}
;
{
\scriptsize
\node
[anchor=west]
(h1) at ([xshift=1em,yshift=-1
2
em]q2.west)
{{
Span[0,3]下的翻译假设:
}}
;
\node
[anchor=west]
(h1) at ([xshift=1em,yshift=-1
5
em]q2.west)
{{
Span[0,3]下的翻译假设:
}}
;
\node
[anchor=west]
(h2) at ([xshift=0em,yshift=-1.3em]h1.west)
{{
X:imports and exports
}}
;
\node
[anchor=west]
(h6) at ([xshift=0em,yshift=-1.3em]h2.west)
{{
S:the import and export
}}
;
}
{
\scriptsize
\node
[anchor=west]
(h21) at ([xshift=9em,yshift=
2
em]h1.east)
{{
替换
$
\textrm
{
X
}_
1
$
后生成的翻译假设:
}}
;
\node
[anchor=west]
(h21) at ([xshift=9em,yshift=
5.0
em]h1.east)
{{
替换
$
\textrm
{
X
}_
1
$
后生成的翻译假设:
}}
;
\node
[anchor=west]
(h22) at ([xshift=0em,yshift=-1.3em]h21.west)
{{
X:imports and exports have drastically fallen
}}
;
\node
[anchor=west]
(h23) at ([xshift=0em,yshift=-1.3em]h22.west)
{{
X:the import and export have drastically fallen
}}
;
\node
[anchor=west]
(h24) at ([xshift=0em,yshift=-1.3em]h23.west)
{{
X:imports and exports have drastically fallen
}}
;
...
...
@@ -37,11 +37,14 @@
\node
[anchor=west]
(h27) at ([xshift=0em,yshift=-1.3em]h26.west)
{{
X:the import and export has drastically fallen
}}
;
}
\node
[rectangle,inner sep=0.1em,rounded corners=1pt,draw] [fit = (h1) (h
5
) (h6)] (gl1)
{}
;
\node
[rectangle,inner sep=0.1em,rounded corners=1pt,draw] [fit = (h1) (h
2
) (h6)] (gl1)
{}
;
\node
[rectangle,inner sep=0.1em,rounded corners=1pt,draw] [fit = (h21) (h25) (h27)] (gl2)
{}
;
\draw
[->,ublue,thick] ([xshift=0.6em,yshift=0.2em]n4.south) .. controls +(south:2em) and +(east:0em) .. ([xshift=-0em,yshift=2em]gl2.west);
\draw
[->,ublue,thick] ([xshift=0em,yshift=0em]gl1.east) .. controls +(north:2.2em) and +(east:0em) .. ([xshift=-0em,yshift=2em]gl2.west);
\node
[anchor=east,circle,inner sep=2pt,drop shadow,thick,draw=ublue,fill=white] (join) at ([xshift=4em,yshift=1em]gl1.north east)
{
\tiny
{
组合
}}
;
\draw
[->,ublue,thick] ([xshift=0.6em,yshift=0.2em]n4.south) .. controls +(south:2em) and +(north:2em) .. (join.90);
\draw
[->,ublue,thick] ([xshift=0em,yshift=1em]gl1.south east) .. controls +(east:2em) and +(south:2em) .. (join.-90);
\draw
[->,ublue,thick] (join.0) -- ([xshift=2.3em]join.0);
\end{scope}
\end{tikzpicture}
...
...
Chapter8/Figures/figure-extract-hierarchical-phrase-rules.tex
查看文件 @
3ff9f20a
...
...
@@ -63,7 +63,7 @@
{
\scriptsize
\node
(phrase)
{
\textbf
{
抽取得到的短语:
}}
;
\draw
[-]
(phrase.south west)--([xshift=1.9in]phrase.south west);
\node
[anchor=north west]
(rules) at ([yshift=-7.5em]phrase.south west)
{
\textbf
{
抽取得到的规则:
}}
;
\node
[anchor=north west]
(rules) at ([yshift=-7.5em]phrase.south west)
{
\textbf
{
抽取得到的
层次短语
规则:
}}
;
\draw
[-]
(rules.south west)--([xshift=1.9in]rules.south west);
{
...
...
Chapter8/Figures/figure-hierarchical-phrase-rule-match-generate.tex
查看文件 @
3ff9f20a
...
...
@@ -35,8 +35,11 @@
\node
[rectangle,inner sep=0.1em,rounded corners=1pt,draw] [fit = (h1) (h5) (h6)] (gl1)
{}
;
\node
[rectangle,inner sep=0.1em,rounded corners=1pt,draw] [fit = (h21) (h25)] (gl2)
{}
;
\draw
[->,ublue,thick] ([xshift=0.6em,yshift=0.2em]n2.south) .. controls +(south:2em) and +(east:0em) .. ([xshift=-0em,yshift=2em]gl2.west);
\draw
[->,ublue,thick] ([xshift=0em,yshift=1em]gl1.east) .. controls +(north:2.2em) and +(east:0em) .. ([xshift=-0em,yshift=2em]gl2.west);
\node
[anchor=east,circle,inner sep=2pt,drop shadow,thick,draw=ublue,fill=white] (join) at ([xshift=3em,yshift=-2em]gl1.north east)
{
\tiny
{
组合
}}
;
\draw
[->,ublue,thick] ([xshift=0.6em,yshift=0.2em]n2.south) .. controls +(south:2em) and +(north:2em) .. (join.90);
\draw
[->,ublue,thick] ([xshift=0em,yshift=1em]gl1.south east) .. controls +(east:2em) and +(south:2em) .. (join.-90);
\draw
[->,ublue,thick] (join.0) -- ([xshift=1.7em]join.0);
\end{scope}
\end{tikzpicture}
...
...
Chapter8/chapter8.tex
查看文件 @
3ff9f20a
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论