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
15c8412f
Commit
15c8412f
authored
4 years ago
by
曹润柘
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'caorunzhe' 到 'master'
chapter5 bug fix 查看合并请求
!212
parents
4c823f98
5cf68ea7
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
Chapter5/Figures/figure-alignment-of-all-words-in-zh-en-sentence.tex
+10
-10
Chapter5/Figures/figure-greedy-mt-decoding-pseudo-code.tex
+2
-2
Chapter5/Figures/figure-translation-pipeline.tex
+2
-2
Chapter5/chapter5.tex
+0
-0
没有找到文件。
Chapter5/Figures/figure-alignment-of-all-words-in-zh-en-sentence.tex
查看文件 @
15c8412f
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
\draw
[-] (s1.south) -- (t0.north);
\draw
[-] (s1.south) -- (t0.north);
\draw
[-] (s2.south) -- (t0.north);
\draw
[-] (s2.south) -- (t0.north);
{
{
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P(
}}}
;
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P
\;
(
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
}
}
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
\draw
[-] (s1.south) -- (t0.north);
\draw
[-] (s1.south) -- (t0.north);
\draw
[-] (s2.south) -- (t1.north);
\draw
[-] (s2.south) -- (t1.north);
{
{
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P(
}}}
;
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P
\;
(
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
}
}
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
\draw
[-] (s1.south) -- (t0.north);
\draw
[-] (s1.south) -- (t0.north);
\draw
[-] (s2.south) -- (t2.north);
\draw
[-] (s2.south) -- (t2.north);
{
{
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P(
}}}
;
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P
\;
(
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
}
}
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
\draw
[-] (s1.south) -- ([yshift=-0.2em]t1.north);
\draw
[-] (s1.south) -- ([yshift=-0.2em]t1.north);
\draw
[-] (s2.south) -- (t0.north);
\draw
[-] (s2.south) -- (t0.north);
{
{
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P(
}}}
;
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P
\;
(
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
}
}
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
\draw
[-] (s1.south) -- ([yshift=-0.2em]t1.north);
\draw
[-] (s1.south) -- ([yshift=-0.2em]t1.north);
\draw
[-] (s2.south) -- ([yshift=-0.2em]t1.north);
\draw
[-] (s2.south) -- ([yshift=-0.2em]t1.north);
{
{
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P(
}}}
;
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P
\;
(
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
}
}
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
\draw
[-] (s1.south) -- ([yshift=-0.2em]t1.north);
\draw
[-] (s1.south) -- ([yshift=-0.2em]t1.north);
\draw
[-] (s2.south) -- (t2.north);
\draw
[-] (s2.south) -- (t2.north);
{
{
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P(
}}}
;
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P
\;
(
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
}
}
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
\draw
[-] (s1.south) -- (t2.north);
\draw
[-] (s1.south) -- (t2.north);
\draw
[-] (s2.south) -- (t0.north);
\draw
[-] (s2.south) -- (t0.north);
{
{
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P(
}}}
;
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P
\;
(
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
}
}
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
\draw
[-] (s1.south) -- (t2.north);
\draw
[-] (s1.south) -- (t2.north);
\draw
[-] (s2.south) -- (t1.north);
\draw
[-] (s2.south) -- (t1.north);
{
{
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P(
}}}
;
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P
\;
(
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\small
{
+
}}
;
}
}
...
@@ -141,9 +141,9 @@
...
@@ -141,9 +141,9 @@
\draw
[-] (s1.south) -- (t2.north);
\draw
[-] (s1.south) -- (t2.north);
\draw
[-] (s2.south) -- (t2.north);
\draw
[-] (s2.south) -- (t2.north);
{
{
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P(
}}}
;
\node
[anchor=south east,inner sep=0pt] (p) at (t0.north west)
{
\small
{{
\color
{
ugreen
}
P
\;
(
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=south west,inner sep=0pt] (p2) at ([yshift=0.2em]t2.north east)
{
\small
{{
\color
{
ugreen
}
)
}}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\normalsize
{
=
\
P(
$
\mathbf
{
s
}
|
\mathbf
{
t
}$
)
}}
;
\node
[anchor=west] (eq) at ([xshift=0.7em]p2.east)
{
\normalsize
{
=
\
P
\,
(
$
\mathbf
{
s
}
|
\mathbf
{
t
}$
)
}}
;
}
}
}
}
\end{scope}
\end{scope}
...
...
This diff is collapsed.
Click to expand it.
Chapter5/Figures/figure-greedy-mt-decoding-pseudo-code.tex
查看文件 @
15c8412f
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
\node
[anchor=north west,inner sep=2pt,align=left] (line4) at ([yshift=-1pt]line3.south west)
{
\textrm
{
3:
\textbf
{
for
}
$
i
$
in
$
[
1
,m
]
$
\textbf
{
do
}}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line4) at ([yshift=-1pt]line3.south west)
{
\textrm
{
3:
\textbf
{
for
}
$
i
$
in
$
[
1
,m
]
$
\textbf
{
do
}}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line5) at ([yshift=-1pt]line4.south west)
{
\textrm
{
4:
\hspace
{
1em
}
$
h
=
\phi
$}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line5) at ([yshift=-1pt]line4.south west)
{
\textrm
{
4:
\hspace
{
1em
}
$
h
=
\phi
$}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line6) at ([yshift=-1pt]line5.south west)
{
\textrm
{
5:
\hspace
{
1em
}
\textbf
{
foreach
}
$
j
$
in
$
[
1
,m
]
$
\textbf
{
do
}}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line6) at ([yshift=-1pt]line5.south west)
{
\textrm
{
5:
\hspace
{
1em
}
\textbf
{
foreach
}
$
j
$
in
$
[
1
,m
]
$
\textbf
{
do
}}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line7) at ([yshift=-1pt]line6.south west)
{
\textrm
{
6:
\hspace
{
2em
}
\textbf
{
if
}
$
used
[
j
]=
$
\textbf
{
tru
e
}
\textbf
{
then
}}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line7) at ([yshift=-1pt]line6.south west)
{
\textrm
{
6:
\hspace
{
2em
}
\textbf
{
if
}
$
used
[
j
]=
$
\textbf
{
fals
e
}
\textbf
{
then
}}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line8) at ([yshift=-1pt]line7.south west)
{
\textrm
{
7:
\hspace
{
3em
}
$
h
=
h
\cup
\textrm
{
\textsc
{
Join
}}
(
best,
\pi
[
j
])
$}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line8) at ([yshift=-1pt]line7.south west)
{
\textrm
{
7:
\hspace
{
3em
}
$
h
=
h
\cup
\textrm
{
\textsc
{
Join
}}
(
best,
\pi
[
j
])
$}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line9) at ([yshift=-1pt]line8.south west)
{
\textrm
{
8:
\hspace
{
1em
}
$
best
=
\textrm
{
\textsc
{
PruneForTop
1
}}
(
h
)
$}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line9) at ([yshift=-1pt]line8.south west)
{
\textrm
{
8:
\hspace
{
1em
}
$
best
=
\textrm
{
\textsc
{
PruneForTop
1
}}
(
h
)
$}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line10) at ([yshift=-1pt]line9.south west)
{
\textrm
{
9:
\hspace
{
1em
}
$
used
[
best.j
]
=
\textrm
{
\text
sc
{
\textbf
{
true
}
}}$}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line10) at ([yshift=-1pt]line9.south west)
{
\textrm
{
9:
\hspace
{
1em
}
$
used
[
best.j
]
=
\textrm
{
\text
bf
{
true
}}$}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line11) at ([yshift=-1pt]line10.south west)
{
\textrm
{
10:
\textbf
{
return
}
$
best.translatoin
$}}
;
\node
[anchor=north west,inner sep=2pt,align=left] (line11) at ([yshift=-1pt]line10.south west)
{
\textrm
{
10:
\textbf
{
return
}
$
best.translatoin
$}}
;
\node
[anchor=south west,inner sep=2pt,align=left] (head1) at ([yshift=1pt]line1.north west)
{
输出: 找的最佳译文
}
;
\node
[anchor=south west,inner sep=2pt,align=left] (head1) at ([yshift=1pt]line1.north west)
{
输出: 找的最佳译文
}
;
...
...
This diff is collapsed.
Click to expand it.
Chapter5/Figures/figure-translation-pipeline.tex
查看文件 @
15c8412f
...
@@ -47,8 +47,8 @@
...
@@ -47,8 +47,8 @@
}
}
{
{
\node
[anchor=north west] (label1) at ([xshift=0.6em,yshift=0.0em]sent-1.south east)
{{
分析
}}
;
\node
[anchor=north west] (label1) at ([xshift=0.6em,yshift=0.0em]sent-1.south east)
{{
分析
}}
;
\node
[anchor=north west] (label2) at ([yshift=-1.
8
em]label1.south west)
{{
转换
}}
;
\node
[anchor=north west] (label2) at ([yshift=-1.
5
em]label1.south west)
{{
转换
}}
;
\node
[anchor=north west] (label3) at ([yshift=-1.
3
em]label2.south west)
{{
生成
}}
;
\node
[anchor=north west] (label3) at ([yshift=-1.
1
em]label2.south west)
{{
生成
}}
;
}
}
{
\scriptsize
{
\scriptsize
\begin{scope}
\begin{scope}
...
...
This diff is collapsed.
Click to expand it.
Chapter5/chapter5.tex
查看文件 @
15c8412f
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论