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
6f1d5300
Commit
6f1d5300
authored
Dec 21, 2020
by
曹润柘
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'caorunzhe' 到 'master'
Caorunzhe 查看合并请求
!658
parents
de69d535
de614c93
全部展开
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
5 行增加
和
152 行删除
+5
-152
Chapter13/Figures/figure-batch-generation-method.tex
+0
-55
Chapter13/Figures/figure-bpe.tex
+4
-4
Chapter13/Figures/figure-increase-the-encoder.tex
+0
-61
Chapter13/Figures/figure-randomly-generation-vs-generate-by-sentence-length.tex
+0
-31
Chapter13/chapter13.tex
+0
-0
Chapter16/Figures/figure-multitask-learning-in-machine-translation-1.tex
+1
-1
Chapter16/chapter16.tex
+0
-0
bibliography.bib
+0
-0
没有找到文件。
Chapter13/Figures/figure-batch-generation-method.tex
deleted
100644 → 0
查看文件 @
de69d535
\begin{tikzpicture}
\tikzstyle
{
node
}
= [minimum height=1.0*1.2em,draw,fill=green!20]
\tikzstyle
{
legend
}
= [minimum height=1.0*1.2em,minimum width=1.0*1.2em,draw]
\tikzstyle
{
node2
}
= [minimum width=1.0*1.2em,minimum height=4.1*1.2em,draw,fill=blue!20]
\node
[node,minimum width=2.8*1.2em]
(node1) at (0,0)
{}
;
\node
[node,minimum width=4.0*1.2em,anchor=north west]
(node2) at (node1.south west)
{}
;
\node
[node,minimum width=3.2*1.2em,anchor=north west]
(node3) at (node2.south west)
{}
;
\node
[node,minimum width=3.0*1.2em,anchor=north west]
(node4) at (node3.south west)
{}
;
\node
[node2,anchor = north west]
(grad1) at ([xshift=1.2em]node1.north east)
{}
;
\node
[node,minimum width=3.7*1.2em,anchor=north west]
(node5) at (grad1.north east)
{}
;
\node
[node,minimum width=2.8*1.2em,anchor=north west]
(node6) at (node5.south west)
{}
;
\node
[node,minimum width=3.2*1.2em,anchor=north west]
(node7) at (node6.south west)
{}
;
\node
[node,minimum width=4.0*1.2em,anchor=north west]
(node8) at (node7.south west)
{}
;
\node
[font=\footnotesize,anchor=east]
(line1) at (node1.west)
{
GPU1
}
;
\node
[font=\footnotesize,anchor=east]
(line2) at (node2.west)
{
GPU2
}
;
\node
[font=\footnotesize,anchor=east]
(line3) at (node3.west)
{
GPU3
}
;
\node
[font=\footnotesize,anchor=east]
(line4) at (node4.west)
{
GPU4
}
;
\node
[node2,anchor = north west]
(grad2) at ([xshift=0.3em]node5.north east)
{}
;
\draw
[->,thick]
(-1.4em*1.2,-3.62*1.2em) -- (9em*1.2,-3.62*1.2em);
\node
[node,minimum width=2.8*1.2em]
(node9) at (16em,0)
{}
;
\node
[node,minimum width=4.0*1.2em,anchor=north west]
(node10) at (node9.south west)
{}
;
\node
[node,minimum width=3.2*1.2em,anchor=north west]
(node11) at (node10.south west)
{}
;
\node
[node,minimum width=3.0*1.2em,anchor=north west]
(node12) at (node11.south west)
{}
;
\node
[node,minimum width=3.7*1.2em,anchor=north west]
(node13) at (node9.north east)
{}
;
\node
[node,minimum width=2.8*1.2em,anchor=north west]
(node14) at (node10.north east)
{}
;
\node
[node,minimum width=3.2*1.2em,anchor=north west]
(node15) at (node11.north east)
{}
;
\node
[node,minimum width=4.0*1.2em,anchor=north west]
(node16) at (node12.north east)
{}
;
\node
[node2,anchor = north west]
(grad3) at ([xshift=0.5em]node13.north east)
{}
;
\node
[font=\footnotesize,anchor=east]
(line1) at (node9.west)
{
GPU1
}
;
\node
[font=\footnotesize,anchor=east]
(line2) at (node10.west)
{
GPU2
}
;
\node
[font=\footnotesize,anchor=east]
(line3) at (node11.west)
{
GPU3
}
;
\node
[font=\footnotesize,anchor=east]
(line4) at (node12.west)
{
GPU4
}
;
\draw
[->,thick]
(node12.south west) -- ([xshift=3em]node16.south east);
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=-0.0em,draw] [fit = (node1) (node2) (node3) (node4)] (box1)
{}
;
\node
[rectangle,inner sep=-0.0em,draw] [fit = (node5) (node6) (node7) (node8)] (box2)
{}
;
\node
[rectangle,inner sep=-0.0em,draw] [fit = (node9) (node13) (node12) (node16)] (box2)
{}
;
\end{pgfonlayer}
\node
[font=\footnotesize,anchor=north]
(legend1) at ([xshift=3em]node4.south)
{
一步一更新
}
;
\node
[font=\footnotesize,anchor=north]
(legend2) at ([xshift=2.5em]node12.south)
{
累积两步更新
}
;
\node
[font=\footnotesize,anchor=north]
(time1) at (grad2.south)
{
time
}
;
\node
[font=\footnotesize,anchor=north]
(time1) at (grad3.south)
{
time
}
;
\node
[legend]
(legend3) at (2em,2em)
{}
;
\node
[font=\footnotesize,anchor=west]
(idle) at (legend3.east)
{
:空闲
}
;
\node
[legend,anchor=west,draw,fill=green!30]
(legend4) at ([xshift = 2em]idle.east)
{}
;
\node
[font=\footnotesize,anchor=west]
(FB) at (legend4.east)
{
:前向/反向
}
;
\node
[legend,anchor=west,draw,fill=blue!30]
(legend5) at ([xshift = 2em]FB.east)
{}
;
\node
[font=\footnotesize,anchor=west]
(grad
_
sync) at (legend5.east)
{
:梯度更新
}
;
\end{tikzpicture}
\ No newline at end of file
Chapter13/Figures/figure-bpe.tex
查看文件 @
6f1d5300
...
...
@@ -19,10 +19,10 @@
\node
[node,anchor = west]
(node8) at ([xshift = 2em,yshift = 2em]node7.east)
{
对于词表外的词lowest
}
;
\node
[node,anchor = north west]
(node9) at ([yshift = 0.3em]node8.south west)
{
可以被分割为low est
}
;
\node
[node,font=\scriptsize,anchor = north,fill=ugreen!5,drop shadow]
(dict) at ([xshift =
8
em,yshift = -5em]node6.south)
{
\begin{tabular}
{
llllll
}
\multirow
{
3
}{
*
}{
子词词表:
}
&
`es'
&
`est'
&
`est
$
<
$
e
$
>
$
'
&
`lo'
&
`low'
\\
&
`ne'
&
`new'
&
`newest
$
<
$
e
$
>
$
'
&
`low
$
<
$
e
$
>
$
'
&
`wi'
\\
&
`wid'
&
`widest
$
<
$
e
$
>
$
'
&
`lowe'
&
`lower'
&
`lower
$
<
$
e
$
>
$
'
\node
[node,font=\scriptsize,anchor = north,fill=ugreen!5,drop shadow]
(dict) at ([xshift =
5
em,yshift = -5em]node6.south)
{
\begin{tabular}
{
llllll
}
\multirow
{
3
}{
*
}{
符号合并表:
}
&
('e','s')
&
('es','t')
&
('est','
$
<
$
e
$
>
$
')
&
('l','o')
&
('lo','w')
\\
&
('n','e')
&
('ne','w')
&
('new','est
$
<
$
e
$
>
$
')
&
('low','
$
<
$
e
$
>
$
')
&
'w','i')
\\
&
('wi','d')
&
('wid','est
$
<
$
e
$
>
$
')
&
('low','e')
&
('lowe','r')
&
('lower','
$
<
$
e
$
>
$
')
\end{tabular}
}
;
\node
[node,anchor=west]
(line1) at ([xshift = 8em]node1.south east)
{
按字符拆分,并添加
}
;
...
...
Chapter13/Figures/figure-increase-the-encoder.tex
deleted
100644 → 0
查看文件 @
de69d535
\begin{tikzpicture}
\setlength
{
\base
}{
1.2em
}
\tikzstyle
{
node
}
= [rounded corners=1pt,minimum width=1.2em,minimum height=1.2em,draw,fill=green!30!white]
\tikzstyle
{
node2
}
= [rounded corners=1pt,minimum width=1.2em,minimum height=1.2em,draw,fill=blue!30!white]
\node
[node]
(enc1) at (0,0)
{}
;
\node
[node]
(enc2) at ([xshift =
\base
]enc1.east)
{}
;
\node
[node]
(enc3) at ([xshift =
\base
]enc2.east)
{}
;
\node
[node]
(enc4) at ([xshift =
\base
]enc3.east)
{}
;
\node
[node]
(enc5) at ([xshift =
\base
]enc4.east)
{}
;
\node
[node]
(enc6) at ([xshift =
\base
]enc5.east)
{}
;
\node
[]
(enc7) at ([xshift =
\base
]enc6.east)
{
...
}
;
\node
[node]
(enc8) at ([xshift =
\base
]enc7.east)
{}
;
\node
[node]
(enc9) at ([xshift =
\base
]enc8.east)
{}
;
\node
[node]
(enc10) at ([xshift =
\base
]enc9.east)
{}
;
\node
[font=\scriptsize,rotate=270]
(src) at ([xshift = -
\base
]enc1.west)
{
src
}
;
\draw
[->] ([xshift=-0.75em]enc1.west) -- (enc1.west);
\draw
[decorate,decoration=
{
brace
}
] ([yshift=0.3em]enc1.north west) to node [auto,anchor=south,font=
\scriptsize
]
{$
N
$
x
}
([yshift=0.3em]enc10.north east);
\draw
[->] (enc1.east) -- (enc2.west);
\draw
[->] (enc2.east) -- (enc3.west);
\draw
[->] (enc3.east) -- (enc4.west);
\draw
[->] (enc4.east) -- (enc5.west);
\draw
[->] (enc5.east) -- (enc6.west);
\draw
[->] (enc8.east) -- (enc9.west);
\draw
[->] (enc9.east) -- (enc10.west);
\node
[node2,anchor=north]
(dec1) at ([yshift=-2em]enc1.south)
{}
;
\node
[node2,anchor=north]
(dec2) at ([yshift=-2em]enc2.south)
{}
;
\node
[node2,anchor=north]
(dec3) at ([yshift=-2em]enc3.south)
{}
;
\node
[node2,anchor=north]
(dec4) at ([yshift=-2em]enc4.south)
{}
;
\node
[node2,anchor=north]
(dec5) at ([yshift=-2em]enc5.south)
{}
;
\node
[node2,anchor=north]
(dec6) at ([yshift=-2em]enc6.south)
{}
;
\node
[font=\scriptsize,rotate=270]
(tgt) at ([xshift = -
\base
]dec1.west)
{
tgt
}
;
\node
[font=\scriptsize,rotate=270]
(tgt) at ([xshift =
\base
]dec6.east)
{
out
}
;
\draw
[->] ([xshift=-0.75em]dec1.west) -- (dec1.west);
\draw
[->] (dec6.east) -- ([xshift=0.75em]dec6.east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([yshift=-0.3em]dec1.south west) to node [auto,anchor=north,font=
\scriptsize
]
{
6x
}
([yshift=-0.3em]dec6.south east);
\draw
[->] (dec1.east) -- (dec2.west);
\draw
[->] (dec2.east) -- (dec3.west);
\draw
[->] (dec3.east) -- (dec4.west);
\draw
[->] (dec4.east) -- (dec5.west);
\draw
[->] (dec5.east) -- (dec6.west);
\node
[node]
(enc
_
legend) at ([xshift = 2
\base
]enc10.east)
{}
;
\node
[node2,anchor=north]
(dec
_
legend) at ([yshift = -
\base
]enc
_
legend.south)
{}
;
\node
[font=\scriptsize,anchor=west]
(line1) at (enc
_
legend.east)
{
:编码层
}
;
\node
[font=\scriptsize,anchor=west]
(line1) at (dec
_
legend.east)
{
:解码层
}
;
%\node[node] (dec1) at ([xshift=4em]enc1.east) {Decoder};
%\node[node2] (enc2) at ([xshift=4em]dec1.east) {Encoder};
%\node[node] (dec2) at ([xshift=4em]enc2.east) {Decoder};
\coordinate
(c1) at ([xshift=1em]enc10.east);
\coordinate
(c2) at ([yshift=-1.6em]c1.south);
\draw
[->,rounded corners] (enc10.east) -- (c1) -- (c2)--([yshift=1em]dec1.north) -- (dec1.north);
\draw
[->,rounded corners] (enc10.east) -- (c1) -- (c2)--([yshift=1em]dec2.north) -- (dec2.north);
\draw
[->,rounded corners] (enc10.east) -- (c1) -- (c2)--([yshift=1em]dec3.north) -- (dec3.north);
\draw
[->,rounded corners] (enc10.east) -- (c1) -- (c2)--([yshift=1em]dec4.north) -- (dec4.north);
\draw
[->,rounded corners] (enc10.east) -- (c1) -- (c2)--([yshift=1em]dec5.north) -- (dec5.north);
\draw
[->,rounded corners] (enc10.east) -- (c1) -- (c2)--([yshift=1em]dec6.north) -- (dec6.north);
\end{tikzpicture}
\ No newline at end of file
Chapter13/Figures/figure-randomly-generation-vs-generate-by-sentence-length.tex
deleted
100644 → 0
查看文件 @
de69d535
\begin{tikzpicture}
\tikzstyle
{
node
}
= [minimum height=1.0*1.2em,draw,fill=green!20]
\node
[node,minimum width=2.0*1.2em]
(sent1) at (0,0)
{}
;
\node
[node,minimum width=5.0*1.2em,anchor=north west]
(sent2) at (sent1.south west)
{}
;
\node
[node,minimum width=1.0*1.2em,anchor=north west]
(sent3) at (sent2.south west)
{}
;
\node
[node,minimum width=3.0*1.2em,anchor=north west]
(sent4) at (sent3.south west)
{}
;
\node
[node,minimum width=4.0*1.2em]
(sent5) at (14em,0)
{}
;
\node
[node,minimum width=4.5*1.2em,anchor=north west]
(sent6) at (sent5.south west)
{}
;
\node
[node,minimum width=4.5*1.2em,anchor=north west]
(sent7) at (sent6.south west)
{}
;
\node
[node,minimum width=5*1.2em,anchor=north west]
(sent8) at (sent7.south west)
{}
;
\node
[font=\footnotesize,anchor=east]
(line1) at (sent1.west)
{
句子1
}
;
\node
[font=\footnotesize,anchor=east]
(line2) at (sent2.west)
{
句子2
}
;
\node
[font=\footnotesize,anchor=east]
(line3) at (sent3.west)
{
句子3
}
;
\node
[font=\footnotesize,anchor=east]
(line4) at (sent4.west)
{
句子4
}
;
\node
[font=\footnotesize,anchor=east]
(line5) at (sent5.west)
{
句子1
}
;
\node
[font=\footnotesize,anchor=east]
(line6) at (sent6.west)
{
句子2
}
;
\node
[font=\footnotesize,anchor=east]
(line7) at (sent7.west)
{
句子3
}
;
\node
[font=\footnotesize,anchor=east]
(line8) at (sent8.west)
{
句子4
}
;
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=-0.0em,draw] [fit = (sent1) (sent2) (sent3) (sent4)] (box1)
{}
;
\node
[rectangle,inner sep=-0.0em,draw] [fit = (sent5) (sent6) (sent7) (sent8)] (box2)
{}
;
\end{pgfonlayer}
\node
[font=\footnotesize]
(node1) at ([yshift=-3.4em]sent2.south)
{
随机生成
}
;
\node
[font=\footnotesize]
(node2) at ([yshift=-1em]sent8.south)
{
排序生成
}
;
\end{tikzpicture}
\ No newline at end of file
Chapter13/chapter13.tex
查看文件 @
6f1d5300
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Chapter16/Figures/figure-multitask-learning-in-machine-translation-1.tex
查看文件 @
6f1d5300
...
...
@@ -31,7 +31,7 @@
\draw
[->,thick](node2-3.east)--(node2-6.west)node[pos=0.5,above,font=
\scriptsize
]
{
重排序
}
;
\draw
[->,thick](node2-6.north)--(node2-7.south);
\node
[anchor=east] (node1) at ([xshift=-2.0em]node1-1.west)
{
\small
{$
x,y
$
:双语数据
}}
;
\node
[anchor=north](pos1) at ([yshift=0em]node1-4.south)
{
\small
{
(a)单任务学习
}}
;
\node
[anchor=west](pos2) at ([xshift=10.0em]pos1.east)
{
\small
{
(b)多任务学习
}}
;
...
...
Chapter16/chapter16.tex
查看文件 @
6f1d5300
差异被折叠。
点击展开。
bibliography.bib
查看文件 @
6f1d5300
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论