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
15a2c29e
Commit
15a2c29e
authored
May 07, 2020
by
曹润柘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update chapter1 figures
parent
6fd9529f
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
16 行删除
+18
-16
Book/Chapter1/Figures/figure-Example-SMT.tex
+6
-6
Book/Chapter1/Figures/figure-zh-sentences-into-en-sentences.tex
+12
-10
没有找到文件。
Book/Chapter1/Figures/figure-Example-SMT.tex
查看文件 @
15a2c29e
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
\node
[anchor=north west] (entry3) at ([yshift=0.0em]entry2.south west)
{
\textbf
{
3:
}
Yes, you are right .
}
;
\node
[anchor=north west] (entry3) at ([yshift=0.0em]entry2.south west)
{
\textbf
{
3:
}
Yes, you are right .
}
;
\node
[anchor=north west] (entry4) at ([yshift=0.0em]entry3.south west)
{
\hspace
{
1em
}
...
}
;
\node
[anchor=north west] (entry4) at ([yshift=0.0em]entry3.south west)
{
\hspace
{
1em
}
...
}
;
\node
[anchor=north west] (entry5) at ([yshift=0.1em]entry4.south west)
{
\hspace
{
1em
}{
\quad
}}
;
\node
[anchor=north west] (entry5) at ([yshift=0.1em]entry4.south west)
{
\hspace
{
1em
}{
\quad
}}
;
\node
[anchor=north west] (entry6) at ([xshift=1
0.97
em,yshift=0.65em]entry5.south west)
{}
;
\node
[anchor=north west] (entry6) at ([xshift=1
1.6
em,yshift=0.65em]entry5.south west)
{}
;
\node
[anchor=south west] (monodatalabel) at (entry1.north west)
{{
\color
{
ublue
}
\small
{
资源2:单语语料
}}}
;
\node
[anchor=south west] (monodatalabel) at (entry1.north west)
{{
\color
{
ublue
}
\small
{
资源2:单语语料
}}}
;
}
}
...
@@ -96,11 +96,11 @@
...
@@ -96,11 +96,11 @@
}
}
{
{
\draw
[->,thick,ublue]
(bidata.east)--([xshift=2.2em]bidata.east) node[pos=0.5,above] (simexample)
{
\color
{
red
}{
\scriptsize
{
\scriptsize
\sffamily\bfseries
{
学习
}}}}
;
\draw
[->,thick,ublue]
(bidata.east)--([xshift=2.2em]bidata.east) node[pos=0.5,above] (simexample)
{
\color
{
red
}{
\scriptsize
{
\scriptsize
{
学习
}}}}
;
}
}
{
{
\draw
[->,thick,ublue]
(monodata.east)--([xshift=2.
7em]monodata.east) node[pos=0.5,above] (simexample)
{
\color
{
red
}{
\scriptsize
{
\scriptsize\sffamily\bfseries
{
学习
}}}}
;
\draw
[->,thick,ublue]
(monodata.east)--([xshift=2.
2em]monodata.east) node[pos=0.5,above] (simexample)
{
\color
{
red
}{
\scriptsize
{
\scriptsize
{
学习
}}}}
;
}
}
\begin{scope}
[xshift=3.6in]
\begin{scope}
[xshift=3.6in]
...
@@ -135,16 +135,16 @@ You and me & {0.02}\\
...
@@ -135,16 +135,16 @@ You and me & {0.02}\\
}
}
{
{
\draw
[->,thick,double,ublue]
(decoder.north) -- ([yshift=2.2em]decoder.north) node[pos=0.5,right] (decodinglabel)
{
\color
{
red
}{
\tiny
\sffamily\bfseries
{
枚举所有可能
}}}
;
\draw
[->,thick,double,ublue]
(decoder.north) -- ([yshift=2.2em]decoder.north) node[pos=0.5,right] (decodinglabel)
{
\color
{
red
}{
\tiny
{
枚举所有可能
}}}
;
}
}
{
{
\draw
[->,thick,double,ublue]
(decoder.east) .. controls +(east:3.5em) .. ([xshift=3.5em,yshift=3.0em]decoder.east) node[xshift=0.5em,pos=0.3,below] (decodinglabel)
{
\color
{
red
}{
\tiny
\sffamily\bfseries
{
计算翻译可能性
}}}
;
\draw
[->,thick,double,ublue]
(decoder.east) .. controls +(east:3.5em) .. ([xshift=3.5em,yshift=3.0em]decoder.east) node[xshift=0.5em,pos=0.3,below] (decodinglabel)
{
\color
{
red
}{
\tiny
{
计算翻译可能性
}}}
;
}
}
{
{
\node
[anchor=west,draw,thick,red,minimum width=11.5em,minimum height=1em]
(outputlabel) at ([xshift=-0.3em,yshift=-6.1em]srcsentence.south west)
{}
;
\node
[anchor=west,draw,thick,red,minimum width=11.5em,minimum height=1em]
(outputlabel) at ([xshift=-0.3em,yshift=-6.1em]srcsentence.south west)
{}
;
\node
[anchor=west]
(outputlabel2) at ([xshift=-0.3em]outputlabel.east)
{
\color
{
red
}{
\tiny
\sffamily\bfseries
{
输出
}}}
;
\node
[anchor=west]
(outputlabel2) at ([xshift=-0.3em]outputlabel.east)
{
\color
{
red
}{
\tiny
{
输出
}}}
;
}
}
}
}
...
...
Book/Chapter1/Figures/figure-zh-sentences-into-en-sentences.tex
查看文件 @
15a2c29e
...
@@ -35,12 +35,14 @@
...
@@ -35,12 +35,14 @@
\node
[anchor=north west] (entry3) at ([yshift=0.1em]entry2.south west)
{
\textbf
{
3:
}
满意
\hspace
{
-0.4em
}
$
\to
$
\hspace
{
-0.4em
}
satisfy
\hspace
{
-0.12em
}$
\mid
$
\hspace
{
-0.12em
}
satisfied ...
}
;
\node
[anchor=north west] (entry3) at ([yshift=0.1em]entry2.south west)
{
\textbf
{
3:
}
满意
\hspace
{
-0.4em
}
$
\to
$
\hspace
{
-0.4em
}
satisfy
\hspace
{
-0.12em
}$
\mid
$
\hspace
{
-0.12em
}
satisfied ...
}
;
\node
[anchor=north west] (entry4) at ([yshift=0.1em]entry3.south west)
{
\hspace
{
1em
}
...
}
;
\node
[anchor=north west] (entry4) at ([yshift=0.1em]entry3.south west)
{
\hspace
{
1em
}
...
}
;
\node
[anchor=south west] (dictionarylabel) at (entry1.north west)
{{
\color
{
ublue
}
资源2:翻译词典
}}
;
\node
[anchor=south west] (dictionarylabel) at (entry1.north west)
{{
\color
{
ublue
}
资源2:翻译词典
}}
;
\node
[anchor=west,opacity=0.0] (empty) at ([yshift=-0.2em]entry3.west)
{
\hspace
{
1em
}
译=``I am happy with him''
}
;
}
}
}
}
\begin{pgfonlayer}
{
background
}
\begin{pgfonlayer}
{
background
}
{
{
\node
[rectangle,draw=ublue, inner sep=0mm]
[fit = (entry1) (entry2) (entry3) (entry4) (dictionarylabel)]
{}
;
\node
[rectangle,draw=ublue, inner sep=0mm]
[fit = (entry1) (entry2) (entry3) (entry4) (dictionarylabel)
(empty)
]
{}
;
}
}
\end{pgfonlayer}
\end{pgfonlayer}
...
@@ -77,22 +79,22 @@
...
@@ -77,22 +79,22 @@
\end{scope}
\end{scope}
{
{
\draw
[<->,dotted,thick,red]
(example2.east)..controls +(east:
1.3) and +(west:1.3)..(c1.west) node[pos=0.9,left,xshift=0.6em,yshift=0.4em] (simexample)
{
\color
{
red
}{
\tiny\sffamily\bfseries
{
相似实例
}}}
;
\draw
[<->,dotted,thick,red]
(example2.east)..controls +(east:
0.6) and +(west:0.6)..(c1.west) node[pos=0.9,left,xshift=0.6em,yshift=0.4em] (simexample)
{
\color
{
red
}{
\tiny
{
相似实例
}}}
;
\draw
[<->,dotted,thick,red]
([xshift=-0.2em]example2part2.east)
--([xshift=4.5em]example2part2.ea
st);
\draw
[<->,dotted,thick,red]
([xshift=-0.2em]example2part2.east)
..controls +(east:0.5) and +(west:0.5)..(e1.we
st);
}
}
{
{
\draw
[<->,dotted,thick,ublue]
(w3.south)--(c3.north) node[pos=0.5,right] (mismatch1)
{
\color
{
red
}{
\tiny
\sffamily\bfseries
{
不匹配
}}}
;
\draw
[<->,dotted,thick,ublue]
(w3.south)--(c3.north) node[pos=0.5,right] (mismatch1)
{
\color
{
red
}{
\tiny
{
不匹配
}}}
;
\draw
[dotted,thick,ublue]
([xshift=-0.6em,yshift=0.0em]c3.south east)--([xshift=0.8em,yshift=0.0em]e5.north west);
\draw
[dotted,thick,ublue]
([xshift=-0.6em,yshift=0.0em]c3.south east)--([xshift=0.8em,yshift=0.0em]e5.north west);
}
}
{
{
\draw
[<->,dotted,thick,ublue]
(w5.south)--(c5.north) node[pos=0.5,right] (mismatch1)
{
\color
{
red
}{
\tiny
\sffamily\bfseries
{
不匹配
}}}
;
\draw
[<->,dotted,thick,ublue]
(w5.south)--(c5.north) node[pos=0.5,right] (mismatch1)
{
\color
{
red
}{
\tiny
{
不匹配
}}}
;
\draw
[dotted,thick,ublue]
([xshift=0.8em,yshift=0.0em]c5.south west)--([xshift=0.0em,yshift=-0.2em]e3.north);
\draw
[dotted,thick,ublue]
([xshift=0.8em,yshift=0.0em]c5.south west)--([xshift=0.0em,yshift=-0.2em]e3.north);
}
}
{
{
\draw
[double,->,thick,ublue]
(e3.south)--([yshift=-1.2em]e3.south) node[pos=0.5,right,xshift=0.2em,yshift=0.2em] (step1)
{
\color
{
red
}{
\tiny
\sffamily\bfseries
{
用`你'替换`他'
}}}
;
\draw
[double,->,thick,ublue]
(e3.south)--([yshift=-1.2em]e3.south) node[pos=0.5,right,xshift=0.2em,yshift=0.2em] (step1)
{
\color
{
red
}{
\tiny
{
用`你'替换`他'
}}}
;
\draw
[->,dotted,thick,red]
([xshift=-0.1em]entry2.east)..controls +(east:4) and +(west:4)..([yshift=-0.6em,xshift=-0.5em]e3.south) ;
\draw
[->,dotted,thick,red]
([xshift=-0.1em]entry2.east)..controls +(east:4) and +(west:4)..([yshift=-0.6em,xshift=-0.5em]e3.south) ;
}
}
...
@@ -101,7 +103,7 @@
...
@@ -101,7 +103,7 @@
{
\footnotesize
{
\footnotesize
\node
[anchor=north west,inner sep=1mm] (c1) at (0,0)
{
我
}
;
\node
[anchor=north west,inner sep=1mm] (c1) at (0,0)
{
我
}
;
\node
[anchor=north west,inner sep=1mm] (c2) at ([xshift=0.3em]c1.north east)
{
对
}
;
\node
[anchor=north west,inner sep=1mm] (c2) at ([xshift=0.3em]c1.north east)
{
对
}
;
\node
[anchor=north west,inner sep=1mm] (c3) at ([xshift=0.3em]c2.north east)
{
\footnotesize
\sffamily\bfseries
{{
\color
{
ublue
}
你
}}}
;
\node
[anchor=north west,inner sep=1mm] (c3) at ([xshift=0.3em]c2.north east)
{
\footnotesize
{{
\color
{
ublue
}
你
}}}
;
\node
[anchor=north west,inner sep=1mm] (c4) at ([xshift=0.3em]c3.north east)
{
感到
}
;
\node
[anchor=north west,inner sep=1mm] (c4) at ([xshift=0.3em]c3.north east)
{
感到
}
;
\node
[anchor=north west,inner sep=1mm] (c5) at ([xshift=0.3em]c4.north east)
{
高兴
}
;
\node
[anchor=north west,inner sep=1mm] (c5) at ([xshift=0.3em]c4.north east)
{
高兴
}
;
}
}
...
@@ -122,7 +124,7 @@
...
@@ -122,7 +124,7 @@
}
}
{
{
\draw
[double,->,thick,ublue]
(e3.south)--([yshift=-1.2em]e3.south) node[pos=0.5,right,xshift=0.2em,yshift=0.2em] (step1)
{
\color
{
red
}{
\tiny
\sffamily\bfseries
{
用`满意'替换`高兴'
}}}
;
\draw
[double,->,thick,ublue]
(e3.south)--([yshift=-1.2em]e3.south) node[pos=0.5,right,xshift=0.2em,yshift=0.2em] (step1)
{
\color
{
red
}{
\tiny
{
用`满意'替换`高兴'
}}}
;
\draw
[->,dotted,thick,red]
([xshift=-1.2em,yshift=-0.6em]entry3.north east)..controls +(east:2) and +(west:3)..([yshift=-0.6em,xshift=-0.5em]e3.south) ;
\draw
[->,dotted,thick,red]
([xshift=-1.2em,yshift=-0.6em]entry3.north east)..controls +(east:2) and +(west:3)..([yshift=-0.6em,xshift=-0.5em]e3.south) ;
}
}
...
@@ -133,7 +135,7 @@
...
@@ -133,7 +135,7 @@
\node
[anchor=north west,inner sep=1mm] (c2) at ([xshift=0.3em]c1.north east)
{
对
}
;
\node
[anchor=north west,inner sep=1mm] (c2) at ([xshift=0.3em]c1.north east)
{
对
}
;
\node
[anchor=north west,inner sep=1mm] (c3) at ([xshift=0.3em]c2.north east)
{
你
}
;
\node
[anchor=north west,inner sep=1mm] (c3) at ([xshift=0.3em]c2.north east)
{
你
}
;
\node
[anchor=north west,inner sep=1mm] (c4) at ([xshift=0.3em]c3.north east)
{
感到
}
;
\node
[anchor=north west,inner sep=1mm] (c4) at ([xshift=0.3em]c3.north east)
{
感到
}
;
\node
[anchor=north west,inner sep=1mm] (c5) at ([xshift=0.3em]c4.north east)
{
\footnotesize
\sffamily\bfseries
{{
\color
{
ublue
}
满意
}}}
;
\node
[anchor=north west,inner sep=1mm] (c5) at ([xshift=0.3em]c4.north east)
{
\footnotesize
{{
\color
{
ublue
}
满意
}}}
;
}
}
\end{scope}
\end{scope}
...
@@ -154,7 +156,7 @@
...
@@ -154,7 +156,7 @@
\begin{pgfonlayer}
{
background
}
\begin{pgfonlayer}
{
background
}
{
\footnotesize
{
\footnotesize
\node
[rectangle,draw=red,thick,inner sep=0mm]
[fit = (e1) (e2) (e3) (e4) (e5)]
{}
;
\node
[rectangle,draw=red,thick,inner sep=0mm]
[fit = (e1) (e2) (e3) (e4) (e5)]
{}
;
\node
[anchor=north]
(outputlabel) at (e3.south)
{
\footnotesize
\sffamily\bfseries
{
\color
{
red
}{
输出翻译结果
}}}
;
\node
[anchor=north]
(outputlabel) at (e3.south)
{
\footnotesize
{
\color
{
red
}{
输出翻译结果
}}}
;
}
}
\end{pgfonlayer}
\end{pgfonlayer}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论