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
NiuTrans
Toy-MT-Introduction
Commits
19f0d8e5
Commit
19f0d8e5
authored
May 06, 2020
by
zengxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chapter3 figures
parent
5b3957f4
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
19 行增加
和
19 行删除
+19
-19
Book/Chapter3/Figures/figure-a-more-detailed-explanation-of-formula-3.40.tex
+1
-1
Book/Chapter3/Figures/figure-expression.tex
+9
-9
Book/Chapter3/Figures/figure-greedy-MT-decoding-pseudo-code.tex
+3
-3
Book/Chapter3/Figures/figure-processes-SMT.tex
+4
-4
Book/mt-book-xelatex.tex
+2
-2
没有找到文件。
Book/Chapter3/Figures/figure-a-more-detailed-explanation-of-formula-3.40.tex
查看文件 @
19f0d8e5
...
...
@@ -46,7 +46,7 @@
{
\draw
[decorate,thick,decoration={brace,amplitude=5pt,mirror}]
([yshift=-0.2em]eq5.south west) -- ([yshift=-0.2em]eq6.south east) node [pos=0.4,below,xshift=-0.0em,yshift=-0.3em] (expcount1)
{
\footnotesize
{{
``
$
t
_
v
$
翻译为
$
s
_
u
$
''这个事件
}}}
;
\node
[anchor=north west] (expcount2) at ([yshift=0.5em]expcount1.south west)
{
\footnotesize
{{
出现次数的期望的估计
}}}
;
\node
[anchor=north west] (expcount3) at ([yshift=0.5em]expcount2.south west)
{
\footnotesize
{{
称之为期望频次
}}
(
expected c
ount)
}
;
\node
[anchor=north west] (expcount3) at ([yshift=0.5em]expcount2.south west)
{
\footnotesize
{{
称之为期望频次
}}
(
Expected C
ount)
}
;
}
\end{tikzpicture}
...
...
Book/Chapter3/Figures/figure-expression.tex
查看文件 @
19f0d8e5
...
...
@@ -12,15 +12,15 @@
\node
[anchor=west,inner sep=2pt,minimum height=2.5em] (eq1) at (0,0)
{${
\textrm
{
P
}
(
\tau
,
\pi
|
\mathbf
{
t
}
)
=
\prod
_{
i
=
1
}^{
l
}{
\textrm
{
P
}
(
\varphi
_
i|
\varphi
_{
1
}^{
i
-
1
}
,
\mathbf
{
t
}
)
}
\
times
{
\textrm
{
P
}
(
\varphi
_
0
|
\varphi
_{
1
}^{
l
}
,
\mathbf
{
t
}
)
}
\times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq2) at ([xshift=-1
5.06em,yshift=0.0em]eq1.south east)
{${
\prod
_{
i
=
0
}^
l
{
\prod
_{
k
=
1
}^{
\varphi
_
i
}{
\textrm
{
P
}
(
\tau
_{
ik
}
|
\tau
_{
i
1
}^{
k
-
1
}
,
\tau
_{
1
}^{
i
-
1
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}}
\times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq3) at ([xshift=-15.
56em,yshift=0.0em]eq2.south east)
{${
\prod
_{
i
=
1
}^
l
{
\prod
_{
k
=
1
}^{
\varphi
_
i
}{
\textrm
{
P
}
(
\pi
_{
ik
}
|
\pi
_{
i
1
}^{
k
-
1
}
,
\pi
_{
1
}^{
i
-
1
}
,
\tau
_{
0
}^{
l
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}}
\times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq4) at ([xshift=-17.
1
0em,yshift=0.0em]eq3.south east)
{{${
\prod
_{
k
=
1
}^{
\varphi
_
0
}{
\textrm
{
P
}
(
\pi
_{
0
k
}
|
\pi
_{
01
}^{
k
-
1
}
,
\pi
_{
1
}^{
l
}
,
\tau
_{
0
}^{
l
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=red!30] (part1) at ([xshift=-1
2.3
em,yshift=0.0em]eq1.east)
{{${
\textrm
{
P
}
(
\varphi
_
i|
\varphi
_{
1
}^{
i
-
1
}
,
\mathbf
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=blue!30] (part2) at ([xshift=-
5.9
em,yshift=0.0em]eq1.east)
{{${
\textrm
{
P
}
(
\varphi
_
0
|
\varphi
_{
1
}^{
l
}
,
\mathbf
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=green!30] (part3) at ([xshift=-1
0.5
em,yshift=0.0em]eq2.east)
{{${
\textrm
{
P
}
(
\tau
_{
ik
}
|
\tau
_{
i
1
}^{
k
-
1
}
,
\tau
_{
1
}^{
i
-
1
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=yellow!30] (part4) at ([xshift=-12.
0
3em,yshift=0.0em]eq3.east)
{{${
\textrm
{
P
}
(
\pi
_{
ik
}
|
\pi
_{
i
1
}^{
k
-
1
}
,
\pi
_{
1
}^{
i
-
1
}
,
\tau
_{
0
}^{
l
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.5em] (eq1) at (0,0)
{${
\textrm
{
P
}
(
\tau
,
\pi
|
\mathbf
{
t
}
)
=
\prod
_{
i
=
1
}^{
l
}{
\textrm
{
P
}
(
\varphi
_
i|
\varphi
_{
1
}^{
i
-
1
}
,
\mathbf
{
t
}
)
}
\
\ \times
\ \
{
\textrm
{
P
}
(
\varphi
_
0
|
\varphi
_{
1
}^{
l
}
,
\mathbf
{
t
}
)
}
\ \
\times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq2) at ([xshift=-1
6.06em,yshift=0.0em]eq1.south east)
{${
\prod
_{
i
=
0
}^
l
{
\prod
_{
k
=
1
}^{
\varphi
_
i
}{
\textrm
{
P
}
(
\tau
_{
ik
}
|
\tau
_{
i
1
}^{
k
-
1
}
,
\tau
_{
1
}^{
i
-
1
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}}
\ \
\times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq3) at ([xshift=-15.
9em,yshift=0.0em]eq2.south east)
{${
\prod
_{
i
=
1
}^
l
{
\prod
_{
k
=
1
}^{
\varphi
_
i
}{
\textrm
{
P
}
(
\pi
_{
ik
}
|
\pi
_{
i
1
}^{
k
-
1
}
,
\pi
_{
1
}^{
i
-
1
}
,
\tau
_{
0
}^{
l
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}}
\ \
\times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq4) at ([xshift=-17.
4
0em,yshift=0.0em]eq3.south east)
{{${
\prod
_{
k
=
1
}^{
\varphi
_
0
}{
\textrm
{
P
}
(
\pi
_{
0
k
}
|
\pi
_{
01
}^{
k
-
1
}
,
\pi
_{
1
}^{
l
}
,
\tau
_{
0
}^{
l
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=red!30] (part1) at ([xshift=-1
3.8
em,yshift=0.0em]eq1.east)
{{${
\textrm
{
P
}
(
\varphi
_
i|
\varphi
_{
1
}^{
i
-
1
}
,
\mathbf
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=blue!30] (part2) at ([xshift=-
6.3
em,yshift=0.0em]eq1.east)
{{${
\textrm
{
P
}
(
\varphi
_
0
|
\varphi
_{
1
}^{
l
}
,
\mathbf
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=green!30] (part3) at ([xshift=-1
1
em,yshift=0.0em]eq2.east)
{{${
\textrm
{
P
}
(
\tau
_{
ik
}
|
\tau
_{
i
1
}^{
k
-
1
}
,
\tau
_{
1
}^{
i
-
1
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=yellow!30] (part4) at ([xshift=-12.
5
3em,yshift=0.0em]eq3.east)
{{${
\textrm
{
P
}
(
\pi
_{
ik
}
|
\pi
_{
i
1
}^{
k
-
1
}
,
\pi
_{
1
}^{
i
-
1
}
,
\tau
_{
0
}^{
l
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=gray!30] (part5) at ([xshift=-10.4em,yshift=0.0em]eq4.east)
{{${
\textrm
{
P
}
(
\pi
_{
0
k
}
|
\pi
_{
01
}^{
k
-
1
}
,
\pi
_{
1
}^{
l
}
,
\tau
_{
0
}^{
l
}
,
\varphi
_{
0
}^{
l
}
,
\mathbf
{
t
}
)
}$}}
;
...
...
Book/Chapter3/Figures/figure-greedy-MT-decoding-pseudo-code.tex
查看文件 @
19f0d8e5
...
...
@@ -101,11 +101,11 @@
\node
[anchor=north west,inner sep=2pt,align=left] (remark4) at ([xshift=0.31em,yshift=-0.8em]remark3.south west)
{
\textsc
{
Join
}
(
$
a,b
$
) 返回
\\
$
a
$
和
$
b
$
的所有组合
}
;
{
\scriptsize
\node
[anchor=north west,inner sep=1pt,align=center,draw
] (a1) at ([yshift=-0.5em]remark4.north east)
{
a1
\\
a2
}
;
\node
[anchor=north west,inner sep=1pt,align=center,draw
,minimum height=2.3em] (a1) at ([yshift=-0.5em]remark4.north east)
{$
a
_
1
$
\\
$
a
_
2
$
}
;
\node
[anchor=west] (join) at (a1.east)
{$
\times
$}
;
\node
[anchor=north west,inner sep=1pt,align=center,draw
] (b1) at ([xshift=1.5em]a1.north east)
{
b1
\\
b2
}
;
\node
[anchor=north west,inner sep=1pt,align=center,draw
,minimum height=2.3em] (b1) at ([xshift=1.5em]a1.north east)
{$
b
_
1
$
\\
$
b
_
2
$
}
;
\node
[anchor=west] (join) at (b1.east)
{$
=
$}
;
\node
[anchor=north west,inner sep=1pt,align=center,draw] (result) at ([xshift=1.5em]b1.north east)
{
a1b1 a1b2
\\
a2b1 a2b2
}
;
\node
[anchor=north west,inner sep=1pt,align=center,draw] (result) at ([xshift=1.5em]b1.north east)
{
$
a
_
1
b
_
1
$
$
a
_
1
b
_
2
$
\\
$
a
_
2
b
_
1
$
$
a
_
2
b
_
2
$
}
;
}
\begin{pgfonlayer}
{
background
}
...
...
Book/Chapter3/Figures/figure-processes-SMT.tex
查看文件 @
19f0d8e5
...
...
@@ -16,20 +16,20 @@
\end{pgfonlayer}
}
\node
[anchor=west,ugreen] (P) at ([xshift=
4
em,yshift=-0.7em]corpus.east)
{
P(
$
\mathbf
{
t
}
|
\mathbf
{
s
}$
)
}
;
\node
[anchor=west,ugreen] (P) at ([xshift=
5
em,yshift=-0.7em]corpus.east)
{
P(
$
\mathbf
{
t
}
|
\mathbf
{
s
}$
)
}
;
\node
[anchor=south] (modellabel) at (P.north)
{{
\color
{
ublue
}
{
\scriptsize
\sffamily\bfseries
{
翻译模型
}}}}
;
\begin{pgfonlayer}
{
background
}
\node
[rectangle,draw=ublue,thick,inner sep=0.2em,fill=white,drop shadow,minimum height=1.6cm]
[fit = (P) (modellabel)] (model)
{}
;
\end{pgfonlayer}
\draw
[->,very thick,ublue] ([xshift=0.2em]corpus.east) -- ([xshift=
3
.2em]corpus.east) node [pos=0.5, above]
{
\color
{
red
}{
\scriptsize
{
模型学习
}}}
;
\draw
[->,very thick,ublue] ([xshift=0.2em]corpus.east) -- ([xshift=
4
.2em]corpus.east) node [pos=0.5, above]
{
\color
{
red
}{
\scriptsize
{
模型学习
}}}
;
{
\draw
[->,very thick,ublue] ([xshift=0.4em]model.east) -- ([xshift=
3
.4em]model.east) node [inner sep=0pt,pos=0.5, above,yshift=0.3em] (decodingarrow)
{
\color
{
red
}{
\scriptsize
{
搜索
\&
计算
}}}
;
\draw
[->,very thick,ublue] ([xshift=0.4em]model.east) -- ([xshift=
4
.4em]model.east) node [inner sep=0pt,pos=0.5, above,yshift=0.3em] (decodingarrow)
{
\color
{
red
}{
\scriptsize
{
搜索
\&
计算
}}}
;
{
\scriptsize
\node
[anchor=north west,inner sep=2pt] (sentlabel) at ([xshift=
5
.5em,yshift=-0.9em]model.north east)
{{
\color
{
ublue
}
\sffamily\bfseries
{
机器翻译引擎
}}}
;
\node
[anchor=north west,inner sep=2pt] (sentlabel) at ([xshift=
6
.5em,yshift=-0.9em]model.north east)
{{
\color
{
ublue
}
\sffamily\bfseries
{
机器翻译引擎
}}}
;
\node
[anchor=north west] (sent) at ([yshift=-0.5em]sentlabel.south west)
{{
对任意句子进行翻译
}}
;
\node
[anchor=north west] (sentpart2) at ([yshift=0.3em]sent.south west)
{
\textbf
{
\quad
}}
;
}
...
...
Book/mt-book-xelatex.tex
查看文件 @
19f0d8e5
...
...
@@ -123,9 +123,9 @@
%\include{Chapter1/chapter1}
%\include{Chapter2/chapter2}
%
\include{Chapter3/chapter3}
\include
{
Chapter3/chapter3
}
%\include{Chapter4/chapter4}
\include
{
Chapter5/chapter5
}
%
\include{Chapter5/chapter5}
%\include{Chapter6/chapter6}
%\include{Chapter7/chapter7}
%\include{ChapterAppend/chapterappend}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论