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
b42bfac2
Commit
b42bfac2
authored
Sep 22, 2020
by
曹润柘
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'caorunzhe' 到 'master'
Caorunzhe 查看合并请求
!250
parents
e407c2d5
fe7a0a94
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
27 行增加
和
27 行删除
+27
-27
Chapter5/Figures/figure-processes-smt.tex
+1
-1
Chapter6/Figures/figure-expression.tex
+6
-6
Chapter6/Figures/figure-probability-translation-process.tex
+2
-2
Chapter6/Figures/figure-word-alignment&probability-distribution-in-ibm-model-3.tex
+12
-12
Chapter6/Figures/figure-word-alignment.tex
+2
-2
Chapter7/Figures/figure-translation-option.tex
+1
-1
Chapter8/Figures/figure-chinese-syntax-tree.tex
+1
-1
Chapter8/Figures/figure-cky-algorithm.tex
+2
-2
没有找到文件。
Chapter5/Figures/figure-processes-smt.tex
查看文件 @
b42bfac2
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
\end{pgfonlayer}
\end{pgfonlayer}
}
}
\node
[anchor=west,ugreen] (P) at ([xshift=5em,yshift=-0.7em]corpus.east)
{
P(
$
\mathbf
{
t
}
|
\mathbf
{
s
}$
)
}
;
\node
[anchor=west,ugreen] (P) at ([xshift=5em,yshift=-0.7em]corpus.east)
{
$
\funp
{
P
}
(
\seq
{
t
}
|
\seq
{
s
}
)
$
}
;
\node
[anchor=south] (modellabel) at (P.north)
{{
\color
{
ublue
}
{
\scriptsize
\sffamily\bfseries
{
翻译模型
}}}}
;
\node
[anchor=south] (modellabel) at (P.north)
{{
\color
{
ublue
}
{
\scriptsize
\sffamily\bfseries
{
翻译模型
}}}}
;
\begin{pgfonlayer}
{
background
}
\begin{pgfonlayer}
{
background
}
...
...
Chapter6/Figures/figure-expression.tex
查看文件 @
b42bfac2
...
@@ -12,16 +12,16 @@
...
@@ -12,16 +12,16 @@
\node
[anchor=west,inner sep=2pt,minimum height=2.5em] (eq1) at (0,0)
{${
\
textrm
{
P
}
(
\tau
,
\pi
|
\mathbf
{
t
}
)
=
\prod
_{
i
=
1
}^{
l
}
\hspace
{
6
.
0
em
}
\times
\ \hspace
{
5
.
5
em
}
\times
}$}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.5em] (eq1) at (0,0)
{${
\
funp
{
P
}
(
\tau
,
\pi
|
\seq
{
t
}
)
=
\prod
_{
i
=
1
}^{
l
}
\hspace
{
6
.
0
em
}
\times
\ \hspace
{
5
.
5
em
}
\times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq2) at ([xshift=-16.06em,yshift=0.0em]eq1.south east)
{${
\prod
_{
i
=
0
}^
l
{
\prod
_{
k
=
1
}^{
\varphi
_
i
}
\hspace
{
9
.
6
em
}}
\ \ \times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq2) at ([xshift=-16.06em,yshift=0.0em]eq1.south east)
{${
\prod
_{
i
=
0
}^
l
{
\prod
_{
k
=
1
}^{
\varphi
_
i
}
\hspace
{
9
.
6
em
}}
\ \ \times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq3) at ([xshift=-16.05em,yshift=0.0em]eq2.south east)
{${
\prod
_{
i
=
1
}^
l
{
\prod
_{
k
=
1
}^{
\varphi
_
i
}}
\hspace
{
11
.
5
em
}
\times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq3) at ([xshift=-16.05em,yshift=0.0em]eq2.south east)
{${
\prod
_{
i
=
1
}^
l
{
\prod
_{
k
=
1
}^{
\varphi
_
i
}}
\hspace
{
11
.
5
em
}
\times
}$}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq4) at ([xshift=-17.44em,yshift=0.0em]eq3.south east)
{{${
\prod
_{
k
=
1
}^{
\varphi
_
0
}}$}}
;
\node
[anchor=north west,inner sep=2pt,minimum height=2.5em] (eq4) at ([xshift=-17.44em,yshift=0.0em]eq3.south east)
{{${
\prod
_{
k
=
1
}^{
\varphi
_
0
}}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=red!30] (part1) at ([xshift=-13.4em,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=red!30] (part1) at ([xshift=-13.4em,yshift=0.0em]eq1.east)
{{${
\
funp
{
P
}
(
\varphi
_
i|
\varphi
_{
1
}^{
i
-
1
}
,
\seq
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=blue!30] (part2) at ([xshift=-6.4em,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=blue!30] (part2) at ([xshift=-6.4em,yshift=0.0em]eq1.east)
{{${
\
funp
{
P
}
(
\varphi
_
0
|
\varphi
_{
1
}^{
l
}
,
\seq
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=green!30] (part3) at ([xshift=-11em,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=green!30] (part3) at ([xshift=-11em,yshift=0.0em]eq2.east)
{{${
\
funp
{
P
}
(
\tau
_{
ik
}
|
\tau
_{
i
1
}^{
k
-
1
}
,
\tau
_{
1
}^{
i
-
1
}
,
\varphi
_{
0
}^{
l
}
,
\seq
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=yellow!30] (part4) at ([xshift=-12.5em,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=yellow!30] (part4) at ([xshift=-12.5em,yshift=0.0em]eq3.east)
{{${
\
funp
{
P
}
(
\pi
_{
ik
}
|
\pi
_{
i
1
}^{
k
-
1
}
,
\pi
_{
1
}^{
i
-
1
}
,
\tau
_{
0
}^{
l
}
,
\varphi
_{
0
}^{
l
}
,
\seq
{
t
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=gray!30] (part5) at ([xshift=0.0em,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
}
)
}$}}
;
\node
[anchor=west,inner sep=2pt,minimum height=2.0em,fill=gray!30] (part5) at ([xshift=0.0em,yshift=0.0em]eq4.east)
{{${
\
funp
{
P
}
(
\pi
_{
0
k
}
|
\pi
_{
01
}^{
k
-
1
}
,
\pi
_{
1
}^{
l
}
,
\tau
_{
0
}^{
l
}
,
\varphi
_{
0
}^{
l
}
,
\seq
{
t
}
)
}$}}
;
\end{tikzpicture}
\end{tikzpicture}
...
...
Chapter6/Figures/figure-probability-translation-process.tex
查看文件 @
b42bfac2
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
{
{
{
{
\node
[anchor=north west] (st) at (0,0)
{$
\
mathbf
{
s
}$}
;
\node
[anchor=north west] (st) at (0,0)
{$
\
seq
{
s
}$}
;
\node
[anchor=north] (taut) at ([yshift=-3em]st.south)
{
\sffamily\bfseries
{$
\tau
$}}
;
\node
[anchor=north] (taut) at ([yshift=-3em]st.south)
{
\sffamily\bfseries
{$
\tau
$}}
;
\node
[anchor=north] (phit) at ([yshift=-3em]taut.south)
{
\sffamily\bfseries
{$
\phi
$}}
;
\node
[anchor=north] (phit) at ([yshift=-3em]taut.south)
{
\sffamily\bfseries
{$
\phi
$}}
;
\node
[anchor=north] (tt) at ([yshift=-3em]phit.south)
{$
\
mathbf
{
t
}$}
;
\node
[anchor=north] (tt) at ([yshift=-3em]phit.south)
{$
\
seq
{
t
}$}
;
}
}
{
\scriptsize
{
\scriptsize
\node
[anchor=west,minimum height=2.5em,minimum width=5.0em] (sf1) at ([xshift=1em]st.east)
{}
;
\node
[anchor=west,minimum height=2.5em,minimum width=5.0em] (sf1) at ([xshift=1em]st.east)
{}
;
...
...
Chapter6/Figures/figure-word-alignment&probability-distribution-in-ibm-model-3.tex
查看文件 @
b42bfac2
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
mathbf
{
a
}_{
1
}$}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
seq
{
a
}_{
1
}$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
textrm
{
P
}
(
\mathbf
{
s
}
,
\mathbf
{
a
}_{
1
}
|
\mathbf
{
t
}
)=
0
.
5
$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
funp
{
P
}
(
\seq
{
s
}
,
\seq
{
a
}_{
1
}
|
\seq
{
t
}
)=
0
.
5
$}
;
\draw
[-,very thick](eq1.south) -- (eq3.north);
\draw
[-,very thick](eq1.south) -- (eq3.north);
\draw
[-,very thick](eq2.south) -- (eq4.north);
\draw
[-,very thick](eq2.south) -- (eq4.north);
\node
[anchor=west] (eq7) at ([xshift=13.1em,yshift=1.4em]eq2.east)
{}
;
\node
[anchor=west] (eq7) at ([xshift=13.1em,yshift=1.4em]eq2.east)
{}
;
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
mathbf
{
a
}_{
2
}$}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
seq
{
a
}_{
2
}$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
textrm
{
P
}
(
\mathbf
{
s
}
,
\mathbf
{
a
}_{
2
}
|
\mathbf
{
t
}
)=
0
.
1
$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
funp
{
P
}
(
\seq
{
s
}
,
\seq
{
a
}_{
2
}
|
\seq
{
t
}
)=
0
.
1
$}
;
\draw
[-,very thick](eq1.south) -- (eq4.north);
\draw
[-,very thick](eq1.south) -- (eq4.north);
\draw
[-,very thick](eq2.south) -- (eq3.north);
\draw
[-,very thick](eq2.south) -- (eq3.north);
\end{scope}
\end{scope}
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
mathbf
{
a
}_{
3
}$}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
seq
{
a
}_{
3
}$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
textrm
{
P
}
(
\mathbf
{
s
}
,
\mathbf
{
a
}_{
3
}
|
\mathbf
{
t
}
)=
0
.
1
$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
funp
{
P
}
(
\seq
{
s
}
,
\seq
{
a
}_{
3
}
|
\seq
{
t
}
)=
0
.
1
$}
;
\draw
[-,very thick](eq1.south) -- (eq3.north);
\draw
[-,very thick](eq1.south) -- (eq3.north);
\draw
[-,very thick](eq2.south) -- (eq3.north);
\draw
[-,very thick](eq2.south) -- (eq3.north);
\end{scope}
\end{scope}
...
@@ -55,8 +55,8 @@
...
@@ -55,8 +55,8 @@
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
mathbf
{
a
}_{
4
}$}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
seq
{
a
}_{
4
}$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
textrm
{
P
}
(
\mathbf
{
s
}
,
\mathbf
{
a
}_{
4
}
|
\mathbf
{
t
}
)=
0
.
1
$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
funp
{
P
}
(
\seq
{
s
}
,
\seq
{
a
}_{
4
}
|
\seq
{
t
}
)=
0
.
1
$}
;
\draw
[-,very thick](eq1.south) -- (eq4.north);
\draw
[-,very thick](eq1.south) -- (eq4.north);
\draw
[-,very thick](eq2.south) -- (eq4.north);
\draw
[-,very thick](eq2.south) -- (eq4.north);
\end{scope}
\end{scope}
...
@@ -66,8 +66,8 @@
...
@@ -66,8 +66,8 @@
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
mathbf
{
a
}_{
5
}$}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
seq
{
a
}_{
5
}$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
textrm
{
P
}
(
\mathbf
{
s
}
,
\mathbf
{
a
}_{
5
}
|
\mathbf
{
t
}
)=
0
.
05
$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
funp
{
P
}
(
\seq
{
s
}
,
\seq
{
a
}_{
5
}
|
\seq
{
t
}
)=
0
.
05
$}
;
\draw
[-,very thick](eq1.south) -- (eq3.north);
\draw
[-,very thick](eq1.south) -- (eq3.north);
\draw
[-,very thick](eq1.south) -- (eq4.north);
\draw
[-,very thick](eq1.south) -- (eq4.north);
\draw
[-,very thick](eq2.south) -- (eq3.north);
\draw
[-,very thick](eq2.south) -- (eq3.north);
...
@@ -81,8 +81,8 @@
...
@@ -81,8 +81,8 @@
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=west] (eq2) at ([xshift=3.0em,yshift=0.0em]eq1.east)
{
早饭
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq3) at ([xshift=0.0em,yshift=-2.0em]eq1.south)
{
have
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=north] (eq4) at ([xshift=0.0em,yshift=-2.0em]eq2.south)
{
breakfast
}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
mathbf
{
a
}_{
6
}$}
;
\node
[anchor=east] (eq5) at ([xshift=-1.0em,yshift=-1.8em]eq1.west)
{$
\
seq
{
a
}_{
6
}$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
textrm
{
P
}
(
\mathbf
{
s
}
,
\mathbf
{
a
}_{
6
}
|
\mathbf
{
t
}
)=
0
.
05
$}
;
\node
[anchor=west] (eq6) at ([xshift=1.0em,yshift=-1.8em]eq2.east)
{$
\
funp
{
P
}
(
\seq
{
s
}
,
\seq
{
a
}_{
6
}
|
\seq
{
t
}
)=
0
.
05
$}
;
\draw
[-,very thick](eq1.south) -- (eq3.north);
\draw
[-,very thick](eq1.south) -- (eq3.north);
\draw
[-,very thick](eq2.south) -- (eq4.north);
\draw
[-,very thick](eq2.south) -- (eq4.north);
\draw
[-,very thick](eq2.south) -- (eq3.north);
\draw
[-,very thick](eq2.south) -- (eq3.north);
...
...
Chapter6/Figures/figure-word-alignment.tex
查看文件 @
b42bfac2
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
\draw
[->,thick] (s5.south) -- (t6.north);
\draw
[->,thick] (s5.south) -- (t6.north);
}
}
\node
[anchor=east] (ss) at ([xshift=-0.5em]s1.west)
{$
\
mathbf
{
s
}$}
;
\node
[anchor=east] (ss) at ([xshift=-0.5em]s1.west)
{$
\
seq
{
s
}$}
;
\node
[anchor=east] (tt) at ([xshift=-0.5em]t1.west)
{$
\
mathbf
{
t
}$}
;
\node
[anchor=east] (tt) at ([xshift=-0.5em]t1.west)
{$
\
seq
{
t
}$}
;
}
}
\end{tikzpicture}
\end{tikzpicture}
...
...
Chapter7/Figures/figure-translation-option.tex
查看文件 @
b42bfac2
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
\begin{tikzpicture}
\begin{tikzpicture}
\begin{scope}
[minimum height = 16pt]
\begin{scope}
[minimum height = 16pt]
\node
[anchor=east]
(s0) at (-0.8em, 0)
{$
\
textbf
{
s
}$
:
}
;
\node
[anchor=east]
(s0) at (-0.8em, 0)
{$
\
seq
{
s
}$
:
}
;
\node
[anchor=west]
(s1) at (0, 0)
{
桌子
}
;
\node
[anchor=west]
(s1) at (0, 0)
{
桌子
}
;
\node
[anchor=west]
(s2) at ([xshift=2em]s1.east)
{
上
}
;
\node
[anchor=west]
(s2) at ([xshift=2em]s1.east)
{
上
}
;
\node
[anchor=west]
(s3) at ([xshift=2.3em]s2.east)
{
有
}
;
\node
[anchor=west]
(s3) at ([xshift=2.3em]s2.east)
{
有
}
;
...
...
Chapter8/Figures/figure-chinese-syntax-tree.tex
查看文件 @
b42bfac2
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
[.NP
[.NP
[.NP
[.NP
[.DT the ]
[.DT the ]
[.NN import ]
[.NN import
s
]
]
]
[.IN in ]
[.IN in ]
[.NP
\edge
[roof]
;
{
North Korea
}
]
[.NP
\edge
[roof]
;
{
North Korea
}
]
...
...
Chapter8/Figures/figure-cky-algorithm.tex
查看文件 @
b42bfac2
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
\tikzstyle
{
srcnode
}
= [anchor=south west]
\tikzstyle
{
srcnode
}
= [anchor=south west]
\begin{scope}
[scale=0.85]
\begin{scope}
[scale=0.85]
\node
[srcnode]
(c1) at (0,0)
{
\normalsize
{
\textbf
{
Function
}
CKY-Algorithm(
$
\
textbf
{
s
}
,G
$
)
}}
;
\node
[srcnode]
(c1) at (0,0)
{
\normalsize
{
\textbf
{
Function
}
CKY-Algorithm(
$
\
seq
{
s
}
,G
$
)
}}
;
\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]
(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]
(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=north west]
(c3) at ([xshift=-1.5em,yshift=0.4em]c22.south west)
{
\normalsize
{
\textbf
{
for
}
$
l
$
= 1 to
$
J
$}}
;
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
\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]
(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
]
$}}
;
\node
[srcnode,anchor=north west]
(c8) at ([xshift=-4.5em,yshift=0.4em]c7.south west)
{
\normalsize
{
\textbf
{
return
}
$
span
[
0
, J
]
$}}
;
\node
[anchor=west]
(c9) at ([xshift=-3.2em,yshift=1.7em]c1.west)
{
\small
{
\textrm
{
参数:
}
\
textbf
{
s
}
为输入字符串。
$
G
$
为输入CFG。
$
J
$
为待分析字符串长度。
}}
;
\node
[anchor=west]
(c9) at ([xshift=-3.2em,yshift=1.7em]c1.west)
{
\small
{
\textrm
{
参数:
}
\
seq
{
s
}
为输入字符串。
$
G
$
为输入CFG。
$
J
$
为待分析字符串长度。
}}
;
\node
[anchor=west]
(c10) at ([xshift=0em,yshift=1.3em]c9.west)
{
\small
{
\textrm
{
输出:字符串全部可能的语法分析结果
}}}
;
\node
[anchor=west]
(c10) at ([xshift=0em,yshift=1.3em]c9.west)
{
\small
{
\textrm
{
输出:字符串全部可能的语法分析结果
}}}
;
\node
[anchor=west]
(c11) at ([xshift=0em,yshift=1.3em]c10.west)
{
\small
{
\textrm
{
输入:符合乔姆斯基范式的待分析字符串和一个上下文无关文法(CFG)
}}}
;
\node
[anchor=west]
(c11) at ([xshift=0em,yshift=1.3em]c10.west)
{
\small
{
\textrm
{
输入:符合乔姆斯基范式的待分析字符串和一个上下文无关文法(CFG)
}}}
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论