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
2eaa09ff
Commit
2eaa09ff
authored
May 16, 2020
by
孟霞
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'caorunzhe' 到 'mengxia'
Caorunzhe 查看合并请求
!195
parents
7fce7e1a
bcaa66a9
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
45 行增加
和
47 行删除
+45
-47
Book/Chapter2/Figures/figure-MT-system-as-a-black-box.tex
+6
-39
Book/Chapter3/Figures/figure-expression.tex
+39
-8
没有找到文件。
Book/Chapter2/Figures/figure-MT-system-as-a-black-box.tex
查看文件 @
2eaa09ff
...
...
@@ -11,48 +11,15 @@
\begin{scope}
\node
[] (input) at (0,0)
{{
\scriptsize
猫喜欢吃鱼
}}
;
{
\begin{scope}
[scale=0.8,xshift=0.9in,yshift=-0.87in,level distance=20pt,sibling distance=-1pt,grow'=up]
{
\scriptsize
\Tree
[.
\node
(sn0)
{
IP
}
;
[.
\node
(sn1)
{
NP
}
;
[.
\node
(sn2)
{
NN
}
;
\node
(sw1)
{
猫
}
; ]
]
[.
\node
(sn3)
{
VP
}
;
[.
\node
(sn4)
{
VV
}
;
\node
(sw2)
{
喜欢
}
; ]
[.
\node
(sn5)
{
VP
}
;
\edge
[roof]
;
\node
(sw3)
{
吃
\
鱼
}
; ]
]
]
}
\end{scope}
\node
[anchor=west,draw,thick,inner sep=3pt,ublue] (mtengine) at ([xshift=1.05in]input.east)
{{
\scriptsize
MT系统
}}
;
\begin{scope}
[scale=0.8,xshift=3.0in,yshift=-0.87in,level distance=20pt,sibling distance=-3pt,grow'=up]
{
\scriptsize
\Tree
[.
\node
(tn0)
{
S
}
;
[.
\node
(tn1)
{
NP
}
;
[.
\node
(tn2)
{
NNS
}
;
\node
(tw1)
{
cats
}
; ]
]
[.
\node
(tn3)
{
VP
}
;
[.
\node
(tn4)
{
VB
}
;
\node
(tw2)
{
like
}
; ]
[.
\node
(tn5)
{
VP
}
;
\edge
[roof]
;
\node
(tw3)
{
eating fish
}
; ]
]
]
}
\end{scope}
}
\node
[] (output) at ([xshift=3.35in]input.east)
{{
\scriptsize
Cats like eating fish
}}
;
\draw
[->,thick]
([xshift=-1pt]input.east) -- ([xshift=8pt]input.east);
\draw
[->,thick]
([xshift=-10pt]output.west) -- ([xshift=-0pt]output.west);
{
\draw
[->,thick]
([xshift=-12pt]mtengine.west) -- ([xshift=-2pt]mtengine.west);
\draw
[->,thick]
([xshift=2pt]mtengine.east) -- ([xshift=12pt]mtengine.east);
}
%
{
%
\draw[->,thick] ([xshift=-12pt]mtengine.west) -- ([xshift=-2pt]mtengine.west);
%
\draw[->,thick] ([xshift=2pt]mtengine.east) -- ([xshift=12pt]mtengine.east);
%
}
{
\node
[minimum height=4em,minimum width=4.5em,fill=white]
(inputmarking) at (0.88in,-0.39in)
{}
;
...
...
@@ -63,8 +30,8 @@
\node
[anchor=south] (outputlabel) at ([yshift=-0.5em]output.north)
{{
\scriptsize
\color
{
red
}{
\textbf
{
输出
}}}}
;
{
\node
[anchor=west] (mtinputlabel) at ([xshift=0.32in]inputlabel.east)
{{
\scriptsize
\color
{
red
}{
\textbf
{
实际的输入
}}}}
;
\node
[anchor=west] (mtoutputlabel) at ([xshift=0.88in]mtinputlabel.east)
{{
\scriptsize
\color
{
red
}{
\textbf
{
实际的输出
}}}}
;
\node
[anchor=west] (mtinputlabel) at ([xshift=0.32in]inputlabel.east)
{{
\scriptsize
\color
{
red
}{
\textbf
{}}}}
;
\node
[anchor=west] (mtoutputlabel) at ([xshift=0.88in]mtinputlabel.east)
{{
\scriptsize
\color
{
red
}{
\textbf
{}}}}
;
\node
[rectangle,draw=ublue, inner sep=0mm]
[fit = (mtinputlabel) (mtoutputlabel) (inputmarking) (outputmarking)]
{}
;
}
...
...
Book/Chapter3/Figures/figure-expression.tex
查看文件 @
2eaa09ff
...
...
@@ -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
}
{
\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=-16.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=-1
5.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.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=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=-1
6.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.4
4em,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.
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=red!30] (part1) at ([xshift=-13.
4
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.
4
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=-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=yellow!30] (part4) at ([xshift=-12.5
3
em,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.4
em,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=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=gray!30] (part5) at ([xshift=
0.0
em,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
}
)
}$}}
;
\end{tikzpicture}
...
...
@@ -29,3 +29,34 @@
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论