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
f27e90ef
Commit
f27e90ef
authored
May 06, 2020
by
孟霞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fig-7.5.2
parent
36dc0159
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
101 行增加
和
98 行删除
+101
-98
Book/Chapter7/Figures/figure-MASS.tex
+27
-26
Book/Chapter7/Figures/figure-application-process-of-back-translation.tex
+12
-11
Book/Chapter7/Figures/figure-encoder-fin.tex
+25
-25
Book/Chapter7/Figures/figure-example-of-iterative-back-translation.tex
+21
-20
Book/Chapter7/Figures/figure-target-side-multi-task-learning.tex
+16
-16
没有找到文件。
Book/Chapter7/Figures/figure-MASS.tex
查看文件 @
f27e90ef
...
...
@@ -5,45 +5,45 @@
\node
[anchor=center] (ate) at (0,0)
{}
;
\node
[model,minimum width=10.5em] (decoder) at ([xshift=6em]ate.east)
{
Decoder
}
;
\node
[word] (w1) at ([yshift=-2em,xshift=1em]decoder.south)
{
$
x
_
3
$
}
;
\node
[model,minimum width=10.5em
,line width=0.7pt
] (decoder) at ([xshift=6em]ate.east)
{
Decoder
}
;
\node
[word] (w1) at ([yshift=-2em,xshift=1em]decoder.south)
{
\small
{$
x
_
3
$}
}
;
\node
[word] (w2) at ([xshift=-1em]w1.west)
{
\#
}
;
\node
[word] (w3) at ([xshift=-1em]w2.west)
{
\#
}
;
\node
[word] (w4) at ([xshift=-1em]w3.west)
{
\#
}
;
\node
[word] (w5) at ([xshift=1em]w1.east)
{
$
x
_
4
$
}
;
\node
[word] (w5) at ([xshift=1em]w1.east)
{
\small
{$
x
_
4
$}
}
;
\node
[word] (w6) at ([xshift=1em]w5.east)
{
\#
}
;
\node
[word] (w7) at ([yshift=2em,xshift=1em]decoder.north)
{
$
x
_
4
$
}
;
\node
[word] (w8) at ([yshift=0em,xshift=-1em]w7.west)
{
$
x
_
3
$
}
;
\node
[word] (w9) at ([yshift=0em,xshift=1em]w7.east)
{
$
x
_
5
$
}
;
\node
[word] (w7) at ([yshift=2em,xshift=1em]decoder.north)
{
\small
{$
x
_
4
$}
}
;
\node
[word] (w8) at ([yshift=0em,xshift=-1em]w7.west)
{
\small
{$
x
_
3
$}
}
;
\node
[word] (w9) at ([yshift=0em,xshift=1em]w7.east)
{
\small
{$
x
_
5
$}
}
;
\draw
[->
] (w1.north) -- ([yshift=1.4
em]w1.north);
\draw
[->
] (w2.north) -- ([yshift=1.3
em]w2.north);
\draw
[->
] (w3.north) -- ([yshift=1.3
em]w3.north);
\draw
[->
] (w4.north) -- ([yshift=1.3
em]w4.north);
\draw
[->
] (w5.north) -- ([yshift=1.4
em]w5.north);
\draw
[->
] (w6.north) -- ([yshift=1.3
em]w6.north);
\draw
[->
,thick] (w1.north) -- ([yshift=1.35
em]w1.north);
\draw
[->
,thick] (w2.north) -- ([yshift=1.35
em]w2.north);
\draw
[->
,thick] (w3.north) -- ([yshift=1.35
em]w3.north);
\draw
[->
,thick] (w4.north) -- ([yshift=1.35
em]w4.north);
\draw
[->
,thick] (w5.north) -- ([yshift=1.35
em]w5.north);
\draw
[->
,thick] (w6.north) -- ([yshift=1.35
em]w6.north);
\draw
[->] ([yshift=-1.4em]w7.south) -- (w7.south);
\draw
[->] ([yshift=-1.4em]w8.south) -- (w8.south);
\draw
[->] ([yshift=-1.4em]w9.south) -- (w9.south);
\draw
[->
,thick
] ([yshift=-1.4em]w7.south) -- (w7.south);
\draw
[->
,thick
] ([yshift=-1.4em]w8.south) -- (w8.south);
\draw
[->
,thick
] ([yshift=-1.4em]w9.south) -- (w9.south);
%encoder
\node
[model,minimum width=10.5em] (encoder) at ([xshift=-6em]ate.west)
{
Encoder
}
;
\node
[model,minimum width=10.5em
,line width=0.7pt
] (encoder) at ([xshift=-6em]ate.west)
{
Encoder
}
;
\node
[word] (we1) at ([yshift=-2em,xshift=1em]encoder.south)
{
\#
}
;
\node
[word] (we2) at ([xshift=-1em]we1.west)
{
\#
}
;
\node
[word] (we3) at ([xshift=-1em]we2.west)
{
$
x
_
2
$
}
;
\node
[word] (we4) at ([xshift=-1em]we3.west)
{
$
x
_
3
$
}
;
\node
[word] (we3) at ([xshift=-1em]we2.west)
{
\small
{$
x
_
2
$}
}
;
\node
[word] (we4) at ([xshift=-1em]we3.west)
{
\small
{$
x
_
3
$}
}
;
\node
[word] (we5) at ([xshift=1em]we1.east)
{
\#
}
;
\node
[word] (we6) at ([xshift=1em]we5.east)
{
$
x
_
6
$
}
;
\node
[word] (we6) at ([xshift=1em]we5.east)
{
\small
{$
x
_
6
$}
}
;
\draw
[->
] (we1.north) -- ([yshift=1.3
em]we1.north);
\draw
[->
] (we2.north) -- ([yshift=1.3
em]we2.north);
\draw
[->
] (we3.north) -- ([yshift=1.4
em]we3.north);
\draw
[->
] (we4.north) -- ([yshift=1.4
em]we4.north);
\draw
[->
] (we5.north) -- ([yshift=1.3
em]we5.north);
\draw
[->
] (we6.north) -- ([yshift=1.4
em]we6.north);
\draw
[->
,thick] (we1.north) -- ([yshift=1.35
em]we1.north);
\draw
[->
,thick] (we2.north) -- ([yshift=1.35
em]we2.north);
\draw
[->
,thick] (we3.north) -- ([yshift=1.35
em]we3.north);
\draw
[->
,thick] (we4.north) -- ([yshift=1.35
em]we4.north);
\draw
[->
,thick] (we5.north) -- ([yshift=1.35
em]we5.north);
\draw
[->
,thick] (we6.north) -- ([yshift=1.35
em]we6.north);
\draw
[->,
very thick
] ([xshift=0.5em]encoder)--([xshift=-0.5em]decoder);
\draw
[->,
line width=2pt
] ([xshift=0.5em]encoder)--([xshift=-0.5em]decoder);
\end{scope}
\end{tikzpicture}
\ No newline at end of file
Book/Chapter7/Figures/figure-application-process-of-back-translation.tex
查看文件 @
f27e90ef
...
...
@@ -3,19 +3,19 @@
\node
[anchor=center] (node1) at (-2.9,1)
{
\small
{
训练:
}}
;
\node
[anchor=center] (node11) at (-2.5,1)
{}
;
\node
[anchor=center] (node12) at (-1.7,1)
{}
;
\node
[anchor=center] (node2) at (-2.9,0.5)
{
\small
{
推
断
:
}}
;
\node
[anchor=center] (node2) at (-2.9,0.5)
{
\small
{
推
理
:
}}
;
\node
[anchor=center] (node21) at (-2.5,0.5)
{}
;
\node
[anchor=center] (node22) at (-1.7,0.5)
{}
;
\node
[anchor=west,draw=black,minimum width=5.6em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node1-1) at (0,0)
{
\footnotesize
{
双语数据
}}
;
\node
[anchor=south,draw=black,minimum width=4.5em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node1-2) at ([yshift=-5em]node1-1.south)
{
\footnotesize
{
目标语伪数据
}}
;
\node
[anchor=west,draw=black,minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node2-1) at ([xshift=-8.8em,yshift=-2.5em]node1-1.west)
{
\footnotesize
{
反向NMT系统
}}
;
\node
[anchor=west,draw=black,minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node3-1) at ([xshift=3em,yshift=-2.5em]node1-1.east)
{
\footnotesize
{
前向NMT系统
}}
;
\node
[anchor=west,
line width=0.6pt,
draw=black,minimum width=5.6em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node1-1) at (0,0)
{
\footnotesize
{
双语数据
}}
;
\node
[anchor=south,
line width=0.6pt,
draw=black,minimum width=4.5em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node1-2) at ([yshift=-5em]node1-1.south)
{
\footnotesize
{
目标语伪数据
}}
;
\node
[anchor=west,
line width=0.6pt,
draw=black,minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node2-1) at ([xshift=-8.8em,yshift=-2.5em]node1-1.west)
{
\footnotesize
{
反向NMT系统
}}
;
\node
[anchor=west,
line width=0.6pt,
draw=black,minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node3-1) at ([xshift=3em,yshift=-2.5em]node1-1.east)
{
\footnotesize
{
前向NMT系统
}}
;
\draw
[-
stealth
](node1-1.west)--([xshift=3em]node2-1.north);
\draw
[-
stealth
](node1-1.east)--([xshift=-3em]node3-1.north);
\draw
[-
stealth
](node1-2.east)--([xshift=-3em]node3-1.south);
\draw
[-
stealth
](node11.east)--(node12.west);
\draw
[-
stealth
,dashed](node21.east)--(node22.west);
\draw
[-
stealth
,dashed]([xshift=3em]node2-1.south)--(node1-2.west);
\draw
[-
>,line width=1pt
](node1-1.west)--([xshift=3em]node2-1.north);
\draw
[-
>,line width=1pt
](node1-1.east)--([xshift=-3em]node3-1.north);
\draw
[-
>,line width=1pt
](node1-2.east)--([xshift=-3em]node3-1.south);
\draw
[-
>,line width=1pt
](node11.east)--(node12.west);
\draw
[-
>,line width=1pt
,dashed](node21.east)--(node22.west);
\draw
[-
>,line width=1pt
,dashed]([xshift=3em]node2-1.south)--(node1-2.west);
\end{scope}
\end{tikzpicture}
\ No newline at end of file
Book/Chapter7/Figures/figure-encoder-fin.tex
查看文件 @
f27e90ef
\begin{tikzpicture}
\begin{scope}
\tikzstyle
{
word
}
= [font=
\scriptsize
]
\tikzstyle
{
model
}
= [rectangle,draw,minimum height=2.5em,minimum width=5em,rounded corners=4pt,fill=blue!15!white]
\tikzstyle
{
model
}
= [rectangle,draw,minimum height=2.5em,minimum width=5em,rounded corners=4pt,fill=blue!15!white
,line width=0.7pt
]
\node
[model,minimum width=10.5em] (encoder0) at (0,0)
{
Encoder
}
;
\node
[word] (w1) at ([yshift=-2em,xshift=1em]encoder0.south)
{
\#
}
;
\node
[word] (w2) at ([xshift=-1em]w1.west)
{
\#
}
;
\node
[word] (w3) at ([xshift=-1em]w2.west)
{
$
x
_
2
$
}
;
\node
[word] (w4) at ([xshift=-1em]w3.west)
{
$
x
_
1
$
}
;
\node
[word] (w3) at ([xshift=-1em]w2.west)
{
\small
{$
x
_
2
$}
}
;
\node
[word] (w4) at ([xshift=-1em]w3.west)
{
\small
{$
x
_
1
$}
}
;
\node
[word] (w5) at ([xshift=1em]w1.east)
{
\#
}
;
\node
[word] (w6) at ([xshift=1em]w5.east)
{
$
x
_
6
$
}
;
\node
[word] (w6) at ([xshift=1em]w5.east)
{
\small
{$
x
_
6
$}
}
;
\node
[word] (w7) at ([yshift=2em,xshift=1
em]encoder0.north)
{$
x
_
4
$
}
;
\node
[word] (w8) at ([yshift=
0em,xshift=-1em]w7.west)
{$
x
_
3
$
}
;
\node
[word] (w9) at ([yshift=
0em,xshift=1em]w7.east)
{$
x
_
5
$
}
;
\node
[word] (w7) at ([yshift=2em,xshift=1
.0em]encoder0.north)
{
\small
{$
x
_
4
$}
}
;
\node
[word] (w8) at ([yshift=
5.95em]w2.north)
{
\small
{$
x
_
3
$}
}
;
\node
[word] (w9) at ([yshift=
5.95em]w5.north)
{
\small
{$
x
_
5
$}
}
;
\draw
[->
] (w1.north) -- ([yshift=1.3
em]w1.north);
\draw
[->
] (w2.north) -- ([yshift=1.3
em]w2.north);
\draw
[->
] (w3.north) -- ([yshift=1.4
em]w3.north);
\draw
[->
] (w4.north) -- ([yshift=1.4
em]w4.north);
\draw
[->
] (w5.north) -- ([yshift=1.3
em]w5.north);
\draw
[->
] (w6.north) -- ([yshift=1.4
em]w6.north);
\draw
[->
,line width=1pt] (w1.north) -- ([yshift=1.35
em]w1.north);
\draw
[->
,line width=1pt] (w2.north) -- ([yshift=1.35
em]w2.north);
\draw
[->
,line width=1pt] (w3.north) -- ([yshift=1.35
em]w3.north);
\draw
[->
,line width=1pt] (w4.north) -- ([yshift=1.35
em]w4.north);
\draw
[->
,line width=1pt] (w5.north) -- ([yshift=1.35
em]w5.north);
\draw
[->
,line width=1pt] (w6.north) -- ([yshift=1.35
em]w6.north);
\draw
[->
] (w7.south) -- ([yshift=-1.4em]
w7.south);
\draw
[->
] (w8.south) -- ([yshift=-1.4em]
w8.south);
\draw
[->
] (w9.south) -- ([yshift=-1.4em]
w9.south);
\draw
[->
,line width=1pt] ([yshift=-1.4em]w7.south) -- (
w7.south);
\draw
[->
,line width=1pt] ([yshift=-1.4em]w8.south) -- (
w8.south);
\draw
[->
,line width=1pt] ([yshift=-1.4em]w9.south) -- (
w9.south);
\node
[model] (encoder1) at ([xshift=8em]encoder0.east)
{
Encoder
}
;
...
...
@@ -33,18 +33,18 @@
\node
[] (tinput) at ([yshift=-3em]decoder.south)
{
\footnotesize
{
目标语输入
}}
;
\node
[] (output) at ([yshift=3em]decoder.north)
{
\footnotesize
{
目标语输出
}}
;
\draw
[->] (sinput) -- (encoder1);
\draw
[->] (tinput) -- (decoder);
\draw
[->] (decoder) -- (output);
\draw
[->
,line width=1pt
] (sinput) -- (encoder1);
\draw
[->
,line width=1pt
] (tinput) -- (decoder);
\draw
[->
,line width=1pt
] (decoder) -- (output);
\coordinate
(do0) at ([yshift=1em]encoder1.north);
\coordinate
(do1) at ([xshift=3.5em]do0.east);
\coordinate
(do2) at ([yshift=-2.3em]do1.south);
\draw
[-] (encoder1.north) -- (do0);
\draw
[-] (do0) -- (do1);
\draw
[-] (do1) -- (do2);
\draw
[->] (do2) -- (decoder.west);
\draw
[-
,line width=1pt
] (encoder1.north) -- (do0);
\draw
[-
,line width=1pt
] (do0) -- (do1);
\draw
[-
,line width=1pt
] (do1) -- (do2);
\draw
[->
,line width=1pt
] (do2) -- (decoder.west);
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=1em,fill=black!5,rounded corners=4pt] [fit =(w4) (w6) (w9) (encoder0) ] (box)
{}
;
...
...
@@ -54,8 +54,8 @@
\node
[] (right) at ([xshift=11em]left.east)
{
在翻译任务上进行微调
}
;
\node
[anchor=north]
(arrow1) at (3.
7
,0.1)
{}
;
\draw
[fill=yellow!20]
([yshift=-0.3em]arrow1.north)--([xshift=-1em,yshift=0.5em]arrow1.north west)--([xshift=-1em,yshift=0.1em]arrow1.north west)--([xshift=-2.6em,yshift=0.1em]arrow1.north west)--([xshift=-2.6em,yshift=-0.1em]arrow1.south west)--([xshift=-1em,yshift=-0.1em]arrow1.south west)--([xshift=-1em,yshift=-0.5em]arrow1.south west)--([yshift=-0.3em]arrow1.north);
\node
[anchor=north]
(arrow1) at (3.
85
,0.1)
{}
;
\draw
[fill=yellow!20
,draw=yellow
]
([yshift=-0.3em]arrow1.north)--([xshift=-1em,yshift=0.5em]arrow1.north west)--([xshift=-1em,yshift=0.1em]arrow1.north west)--([xshift=-2.6em,yshift=0.1em]arrow1.north west)--([xshift=-2.6em,yshift=-0.1em]arrow1.south west)--([xshift=-1em,yshift=-0.1em]arrow1.south west)--([xshift=-1em,yshift=-0.5em]arrow1.south west)--([yshift=-0.3em]arrow1.north);
\end{scope}
...
...
Book/Chapter7/Figures/figure-example-of-iterative-back-translation.tex
查看文件 @
f27e90ef
\begin{tikzpicture}
\begin{scope}
\node
[anchor=center] (node1) at (-2.
3
,1)
{
\small
{
训练:
}}
;
\node
[anchor=center] (node11) at (-2.
0
,1)
{}
;
\node
[anchor=center] (node1) at (-2.
6
,1)
{
\small
{
训练:
}}
;
\node
[anchor=center] (node11) at (-2.
2
,1)
{}
;
\node
[anchor=center] (node12) at (-1.1,1)
{}
;
\node
[anchor=center] (node2) at (-2.
3,0.5)
{
\small
{
推断
:
}}
;
\node
[anchor=center] (node21) at (-2.
0
,0.5)
{}
;
\node
[anchor=center] (node2) at (-2.
6,0.5)
{
\small
{
推理
:
}}
;
\node
[anchor=center] (node21) at (-2.
2
,0.5)
{}
;
\node
[anchor=center] (node22) at (-1.1,0.5)
{}
;
\node
[anchor=west,draw=black,minimum width=5.6em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node1-1) at (0,0)
{
\footnotesize
{
双语数据
}}
;
\node
[anchor=south,draw=black,minimum width=4.5em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node1-2) at ([yshift=-5em]node1-1.south)
{
\footnotesize
{
目标语伪数据
}}
;
\node
[anchor=west,draw=black,
minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node2-1) at ([xshift=-7.3
em,yshift=-2.5em]node1-1.west)
{
\footnotesize
{
前向NMT系统
}}
;
\node
[anchor=west,draw=black,minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node3-1) at ([xshift=1.5em,yshift=-2.5em]node1-1.east)
{
\footnotesize
{
反向NMT系统
}}
;
\node
[anchor=west,draw=black,
line width=0.6pt,
minimum width=5.6em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node1-1) at (0,0)
{
\footnotesize
{
双语数据
}}
;
\node
[anchor=south,draw=black,
line width=0.6pt,
minimum width=4.5em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node1-2) at ([yshift=-5em]node1-1.south)
{
\footnotesize
{
目标语伪数据
}}
;
\node
[anchor=west,draw=black,
line width=0.6pt,minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node2-1) at ([xshift=-7.7
em,yshift=-2.5em]node1-1.west)
{
\footnotesize
{
前向NMT系统
}}
;
\node
[anchor=west,draw=black,
line width=0.6pt,
minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node3-1) at ([xshift=1.5em,yshift=-2.5em]node1-1.east)
{
\footnotesize
{
反向NMT系统
}}
;
\node
[anchor=east,draw=black,minimum width=5.6em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node4-1) at ([xshift=18em]node1-1)
{
\footnotesize
{
双语数据
}}
;
\node
[anchor=south,draw=black,minimum width=4.5em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node4-2) at ([yshift=-5em]node4-1.south)
{
\footnotesize
{
目标语伪数据
}}
;
\node
[anchor=east,draw=black,
line width=0.6pt,
minimum width=5.6em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node4-1) at ([xshift=18em]node1-1)
{
\footnotesize
{
双语数据
}}
;
\node
[anchor=south,draw=black,
line width=0.6pt,
minimum width=4.5em,minimum height=2.2em,fill=blue!20,rounded corners=2pt] (node4-2) at ([yshift=-5em]node4-1.south)
{
\footnotesize
{
目标语伪数据
}}
;
\node
[anchor=east,draw=black,
minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node5-1) at ([xshift=15.5
em]node3-1.east)
{
\footnotesize
{
前向NMT系统
}}
;
\node
[anchor=east,draw=black,
line width=0.6pt,minimum width=4.5em,minimum height=2.2em,fill=red!20,rounded corners=2pt] (node5-1) at ([xshift=15.2
em]node3-1.east)
{
\footnotesize
{
前向NMT系统
}}
;
\draw
[-
stealth
](node1-1.west)--([xshift=3em]node2-1.north);
\draw
[-
stealth
](node1-1.east)--([xshift=-3em]node3-1.north);
\draw
[-
stealth
](node1-2.east)--([xshift=-3em]node3-1.south);
\draw
[-
stealth
](node11.east)--(node12.west);
\draw
[-
stealth
,dashed](node21.east)--(node22.west);
\draw
[-
stealth,dashed]([xshift=3em]node2-1.south)--(
node1-2.west);
\draw
[-
stealth,dashed]([xshift=3em]node3-1.south)--(
node4-2.west);
\draw
[-
stealth
](node4-1.east)--([xshift=-3em]node5-1.north);
\draw
[-
stealth
](node4-2.east)--([xshift=-3em]node5-1.south);
\draw
[-
>,line width=1pt
](node1-1.west)--([xshift=3em]node2-1.north);
\draw
[-
>,line width=1pt
](node1-1.east)--([xshift=-3em]node3-1.north);
\draw
[-
>,line width=1pt
](node1-2.east)--([xshift=-3em]node3-1.south);
\draw
[-
>,line width=1pt
](node11.east)--(node12.west);
\draw
[-
>,line width=1pt
,dashed](node21.east)--(node22.west);
\draw
[-
>,line width=1pt,dashed]([xshift=3em]node2-1.south)--([xshift=-0.1em]
node1-2.west);
\draw
[-
>,line width=1pt,dashed]([xshift=3em]node3-1.south)--([xshift=-0.1em]
node4-2.west);
\draw
[-
>,line width=1pt
](node4-1.east)--([xshift=-3em]node5-1.north);
\draw
[-
>,line width=1pt
](node4-2.east)--([xshift=-3em]node5-1.south);
\end{scope}
\end{tikzpicture}
\ No newline at end of file
Book/Chapter7/Figures/figure-target-side-multi-task-learning.tex
查看文件 @
f27e90ef
...
...
@@ -5,28 +5,28 @@
\node
[anchor=center] (node2) at (-2.1,-0.5)
{
\small
{$
z
$}
:单语数据
}
;
\node
[anchor=center] (node1-1) at (0,0)
{
\small
{$
y'
$}}
;
\node
[anchor=center] (node3-1) at ([xshift=5.5em,yshift=-0.1em]node1-1.east)
{
\small
{$
z'
$}}
;
\node
[anchor=south,draw,rounded corners,minimum height=1.5em,minimum width=4em,fill=blue!20]
(node1-2) at ([yshift=-3em]node1-1.south)
{
\small
{
softamx
}}
;
\node
[anchor=south,draw,rounded corners,minimum height=1.5em,minimum width=4em,fill=blue!20]
(node3-2) at ([yshift=-3em]node3-1.south)
{
\small
{
softamx
}}
;
\node
[anchor=south,draw,rounded corners,minimum height=2.2em,minimum width=4em,fill=red!20]
(node1-3) at ([yshift=-4.0em]node1-2.south)
{
\small
{
Decoder
}}
;
\node
[anchor=south,draw,rounded corners,minimum height=2.2em,minimum width=4em,fill=yellow!20]
(node3-3) at ([yshift=-4.0em]node3-2.south)
{
\small
{
LM
}}
;
\node
[anchor=south]
(node1-4) at ([xshift=-0.6em,yshift=-3em]node1-3.south)
{
\
small
{$
y
$
}}
;
\node
[anchor=south,
line width=0.6pt,
draw,rounded corners,minimum height=1.5em,minimum width=4em,fill=blue!20]
(node1-2) at ([yshift=-3em]node1-1.south)
{
\small
{
softamx
}}
;
\node
[anchor=south,
line width=0.6pt,
draw,rounded corners,minimum height=1.5em,minimum width=4em,fill=blue!20]
(node3-2) at ([yshift=-3em]node3-1.south)
{
\small
{
softamx
}}
;
\node
[anchor=south,
line width=0.6pt,
draw,rounded corners,minimum height=2.2em,minimum width=4em,fill=red!20]
(node1-3) at ([yshift=-4.0em]node1-2.south)
{
\small
{
Decoder
}}
;
\node
[anchor=south,
line width=0.6pt,
draw,rounded corners,minimum height=2.2em,minimum width=4em,fill=yellow!20]
(node3-3) at ([yshift=-4.0em]node3-2.south)
{
\small
{
LM
}}
;
\node
[anchor=south]
(node1-4) at ([xshift=-0.6em,yshift=-3em]node1-3.south)
{
\
gray
{
\small
{$
y
$}
}}
;
\node
[anchor=south]
(node3-41) at ([xshift=-0.6em,yshift=-3em]node3-3.south)
{
\small
{$
y
$}}
;
\node
[anchor=south]
(node3-42) at ([xshift=0.6em,yshift=-2.9em]node3-3.south)
{
\small
{$
z
$}}
;
\node
[anchor=west]
(node2-2) at ([xshift=-4.9em]node1-4.west)
{
\small
{$
x
$}}
;
\node
[anchor=north,draw,rounded corners,minimum height=2.2em,minimum width=4em,fill=red!20]
(node2-1) at ([yshift=4em]node2-2.north)
{
\small
{
Encoder
}}
;
\node
[anchor=north,
line width=0.6pt,
draw,rounded corners,minimum height=2.2em,minimum width=4em,fill=red!20]
(node2-1) at ([yshift=4em]node2-2.north)
{
\small
{
Encoder
}}
;
\node
[rectangle,rounded corners,draw=red,line width=0.2mm,densely dashed,inner sep=0.4em] [fit = (node3-2) (node3-3)] (inputshadow)
{}
;
\draw
[->](node1-4.north)--([xshift=-0.6em]node1-3.south);
\draw
[->](node1-3.north)--(node1-2);
\draw
[->](node1-2.north)--(node1-1);
\draw
[->](node2-2.north)--(node2-1);
\draw
[->]
(node2-1.east)--(node1-3.west);
\draw
[->
,thick,draw=gray
](node1-4.north)--([xshift=-0.6em]node1-3.south);
\draw
[->
,thick
](node1-3.north)--(node1-2);
\draw
[->
,thick
](node1-2.north)--(node1-1);
\draw
[->
,thick
](node2-2.north)--(node2-1);
\draw
[->
,thick
]
(node2-1.east)--(node1-3.west);
\draw
[->](node3-41.north)--([xshift=-0.6em]node3-3.south);
\draw
[->](node3-42.north)--([xshift=0.6em]node3-3.south);
\draw
[->]([xshift=0.6em]node3-3.north)--([xshift=0.6em]node3-2.south);
\draw
[->](node3-2.north)--(node3-1);
\draw
[->]
([xshift=-0.6em]node3-3.north)--([xshift=-0.6em,yshift=0.6em]node3-3.north)--([xshift=-3em,yshift=0.6em]node3-3.north)--([xshift=-3em,yshift=-3em]node3-3.north)--([xshift=-5.6em,yshift=-3em]node3-3.north)--([xshift=0.6em]node1-3.south);
\draw
[->
,thick
](node3-41.north)--([xshift=-0.6em]node3-3.south);
\draw
[->
,thick
](node3-42.north)--([xshift=0.6em]node3-3.south);
\draw
[->
,thick
]([xshift=0.6em]node3-3.north)--([xshift=0.6em]node3-2.south);
\draw
[->
,thick
](node3-2.north)--(node3-1);
\draw
[->
,thick
]
([xshift=-0.6em]node3-3.north)--([xshift=-0.6em,yshift=0.6em]node3-3.north)--([xshift=-3em,yshift=0.6em]node3-3.north)--([xshift=-3em,yshift=-3em]node3-3.north)--([xshift=-5.6em,yshift=-3em]node3-3.north)--([xshift=0.6em]node1-3.south);
%\draw[->](node2-1.north)--([yshift=1em]node2-1.north)--([xshift=2.5em,yshift=1em]node2-1.north)--([xshift=2.5em,yshift=-0.4em]node2-1.north)--(node1-3.west);
\end{scope}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论