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
fd5ecce3
Commit
fd5ecce3
authored
May 13, 2020
by
zengxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chapter6内容错误修正,语言不通顺,图片错误修改
parent
79d8cf93
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
68 行增加
和
25 行删除
+68
-25
Book/Chapter6/Chapter6.tex
+0
-0
Book/Chapter6/Figures/figure-GRU03.tex
+15
-4
Book/Chapter6/Figures/figure-LSTM02.tex
+5
-1
Book/Chapter6/Figures/figure-LSTM03.tex
+12
-4
Book/Chapter6/Figures/figure-LSTM04.tex
+15
-5
Book/Chapter6/Figures/figure-beam-search-process.tex
+1
-1
Book/Chapter6/Figures/figure-decode-the-word-probability-distribution-at-the-first-position.tex
+1
-1
Book/Chapter6/Figures/figure-decoding-process-based-on-greedy-method.tex
+1
-1
Book/Chapter6/Figures/figure-the-whole-of-LSTM.tex
+18
-8
没有找到文件。
Book/Chapter6/Chapter6.tex
查看文件 @
fd5ecce3
差异被折叠。
点击展开。
Book/Chapter6/Figures/figure-GRU03.tex
查看文件 @
fd5ecce3
...
...
@@ -100,10 +100,10 @@
\draw
[-latex,emph]
(aux71) -| (aux53) -- (aux23) -| (aux46) -- (z76);
\draw
[emph]
(aux12) |- (aux23) -| (aux46);
\node
[opnode,rectangle,rounded corners=2pt,inner sep=2pt,draw=red,thick]
(tanh) at (aux46)
{$
\mathrm
{
tanh
}$}
;
\node
[opnode,circle,draw=red,thick]
(
) at (aux53)
{
X
}
;
\node
[opnode,circle,draw=red,thick]
(
) at (aux56)
{
X
}
;
\node
[opnode,circle,draw=red,thick]
(
) at (aux75)
{
X
}
;
\node
[opnode,circle,draw=red,thick]
(
) at (aux76)
{
\textbf
{
+
}
}
;
\node
[opnode,circle,draw=red,thick]
(
a1) at (aux53)
{
}
;
\node
[opnode,circle,draw=red,thick]
(
a2) at (aux56)
{
}
;
\node
[opnode,circle,draw=red,thick]
(
a3) at (aux75)
{
}
;
\node
[opnode,circle,draw=red,thick]
(
a4) at (aux76)
{
}
;
}
\end{scope}
...
...
@@ -120,6 +120,16 @@
\begin{pgfonlayer}
{
background
}
\node
[draw,very thick,rectangle,fill=blue!10!white,rounded corners=5pt,inner sep=6pt,fit=(aux22) (aux76) (z76) (tanh)]
(GRU)
{}
;
\end{pgfonlayer}
%%new
\draw
[-]
(a1.north west) -- (a1.south east);
\draw
[-]
(a1.north east) -- (a1.south west);
\draw
[-]
(a2.north west) -- (a2.south east);
\draw
[-]
(a2.north east) -- (a2.south west);
\draw
[-]
(a3.north west) -- (a3.south east);
\draw
[-]
(a3.north east) -- (a3.south west);
\draw
[-,line width=0.8pt] (a4.north) -- (a4.south);
\draw
[-,line width=0.8pt] (a4.west) -- (a4.east);
\end{tikzpicture}
\ No newline at end of file
Book/Chapter6/Figures/figure-LSTM02.tex
查看文件 @
fd5ecce3
...
...
@@ -94,7 +94,7 @@
\draw
[emph]
(aux12) -- (aux22) -- (aux23);
\node
[opnode,circle,draw=red,thick]
() at (aux34)
{$
\sigma
$}
;
\node
[opnode,rectangle,rounded corners=2pt,inner sep=2pt,draw=red,thick]
() at (aux35)
{$
\mathrm
{
tanh
}$}
;
\node
[opnode,circle,draw=red,thick]
(i45) at (aux45)
{
X
}
;
\node
[opnode,circle,draw=red,thick]
(i45) at (aux45)
{}
;
}
\end{scope}
...
...
@@ -111,5 +111,8 @@
\node
[draw,very thick,rectangle,fill=blue!10!white,rounded corners=5pt,inner sep=4pt,fit=(aux22) (aux58) (u55) (o27)]
(LSTM)
{}
;
\end{pgfonlayer}
%%new
\draw
[-]
(i45.north west) -- (i45.south east);
\draw
[-]
(i45.north east) -- (i45.south west);
\end{tikzpicture}
\ No newline at end of file
Book/Chapter6/Figures/figure-LSTM03.tex
查看文件 @
fd5ecce3
...
...
@@ -101,13 +101,13 @@
\draw
[-latex,standard]
(aux21) -- (aux25) -- (u55);
\node
[opnode,circle]
() at (aux34)
{$
\sigma
$}
;
\node
[opnode,rectangle,rounded corners=2pt,inner sep=2pt]
() at (aux35)
{$
\mathrm
{
tanh
}$}
;
\node
[opnode,circle]
(i45) at (aux45)
{
X
}
;
\node
[opnode,circle]
(i45) at (aux45)
{}
;
}
% cell update
{
\draw
[-latex,emph]
(aux51) -- (aux59);
\node
[opnode,circle,draw=red,thick]
(f53) at (aux53)
{
X
}
;
\node
[opnode,circle,draw=red,thick]
(u55) at (aux55)
{
\textbf
{
+
}
}
;
\node
[opnode,circle,draw=red,thick]
(f53) at (aux53)
{}
;
\node
[opnode,circle,draw=red,thick]
(u55) at (aux55)
{}
;
}
\end{scope}
...
...
@@ -127,6 +127,13 @@
\begin{pgfonlayer}
{
background
}
\node
[draw,very thick,rectangle,fill=blue!10!white,rounded corners=5pt,inner sep=4pt,fit=(aux22) (aux58) (u55) (o27)]
(LSTM)
{}
;
\end{pgfonlayer}
%%new
\draw
[-]
(i45.north west) -- (i45.south east);
\draw
[-]
(i45.north east) -- (i45.south west);
\draw
[-]
(f53.north west) -- (f53.south east);
\draw
[-]
(f53.north east) -- (f53.south west);
\draw
[-,line width=0.8pt] (u55.north) -- (u55.south);
\draw
[-,line width=0.8pt] (u55.west) -- (u55.east);
\end{tikzpicture}
\ No newline at end of file
Book/Chapter6/Figures/figure-LSTM04.tex
查看文件 @
fd5ecce3
...
...
@@ -102,7 +102,7 @@
\draw
[-latex,standard]
(aux21) -- (aux25) -- (u55);
\node
[opnode,circle]
() at (aux34)
{$
\sigma
$}
;
\node
[opnode,rectangle,rounded corners=2pt,inner sep=2pt]
() at (aux35)
{$
\mathrm
{
tanh
}$}
;
\node
[opnode,circle]
(i45) at (aux45)
{
X
}
;
\node
[opnode,circle]
(i45) at (aux45)
{}
;
}
% cell update
{
...
...
@@ -112,12 +112,12 @@
}
{
\draw
[-latex,standard]
(aux51) -- (aux59);
\node
[opnode,circle]
(f53) at (aux53)
{
X
}
;
\node
[opnode,circle]
(u55) at (aux55)
{
\textbf
{
+
}
}
;
\node
[opnode,circle]
(f53) at (aux53)
{}
;
\node
[opnode,circle]
(u55) at (aux55)
{}
;
}
% output gate
{
\node
[opnode,circle,draw=red,thick]
(o27) at (aux27)
{
X
}
;
\node
[opnode,circle,draw=red,thick]
(o27) at (aux27)
{}
;
\draw
[-latex,emph]
(u55) -| (o27);
\draw
[-latex,emph]
(aux21) -- (o27);
\draw
[emph]
(aux12) -- (aux22) -- (aux23);
...
...
@@ -146,6 +146,15 @@
\begin{pgfonlayer}
{
background
}
\node
[draw,very thick,rectangle,fill=blue!10!white,rounded corners=5pt,inner sep=4pt,fit=(aux22) (aux58) (u55) (o27)]
(LSTM)
{}
;
\end{pgfonlayer}
%%new
\draw
[-]
(i45.north west) -- (i45.south east);
\draw
[-]
(i45.north east) -- (i45.south west);
\draw
[-]
(f53.north west) -- (f53.south east);
\draw
[-]
(f53.north east) -- (f53.south west);
\draw
[-,line width=0.8pt] (u55.north) -- (u55.south);
\draw
[-,line width=0.8pt] (u55.west) -- (u55.east);
\draw
[-]
(o27.north west) -- (o27.south east);
\draw
[-]
(o27.north east) -- (o27.south west);
\end{tikzpicture}
\ No newline at end of file
Book/Chapter6/Figures/figure-beam-search-process.tex
查看文件 @
fd5ecce3
...
...
@@ -40,7 +40,7 @@
\node
[anchor=west,inner sep=2pt] (o4) at ([xshift=0.3em]o3.east)
{
\scriptsize
{
...
}}
;
}
\node
[wnode,anchor=north] (wt1) at ([yshift=-0.8em]t1.south)
{
\scriptsize
{$
\langle
$
e
os
$
\rangle
$}}
;
\node
[wnode,anchor=north] (wt1) at ([yshift=-0.8em]t1.south)
{
\scriptsize
{$
\langle
$
s
os
$
\rangle
$}}
;
{
\node
[wnode,anchor=north] (wt2) at ([yshift=-0.8em]t2.south)
{
\scriptsize
{
Have
}}
;
...
...
Book/Chapter6/Figures/figure-decode-the-word-probability-distribution-at-the-first-position.tex
查看文件 @
fd5ecce3
...
...
@@ -16,7 +16,7 @@
\node
[rnnnode,anchor=south] (s1) at ([yshift=1em]t1.north)
{
\scriptsize
{$
\textbf
{
s
}_
1
$}}
;
}
\node
[wnode,anchor=north] (wt1) at ([yshift=-0.8em]t1.south)
{
\scriptsize
{$
\langle
$
e
os
$
\rangle
$}}
;
\node
[wnode,anchor=north] (wt1) at ([yshift=-0.8em]t1.south)
{
\scriptsize
{$
\langle
$
s
os
$
\rangle
$}}
;
{
\node
[rnnnode,anchor=south,fill=blue!20] (o1) at ([yshift=1em]s1.north)
{
\scriptsize
{
Softmax
}}
;
...
...
Book/Chapter6/Figures/figure-decoding-process-based-on-greedy-method.tex
查看文件 @
fd5ecce3
...
...
@@ -56,7 +56,7 @@
\node
[anchor=west,inner sep=2pt] (o5) at ([xshift=0.3em]o4.east)
{
\tiny
{
...
}}
;
}
{
\node
[anchor=north,inner sep=2pt] (wt1) at ([yshift=-0.6em]t1.south)
{
\tiny
{$
\langle
$
e
os
$
\rangle
$}}
;
\node
[anchor=north,inner sep=2pt] (wt1) at ([yshift=-0.6em]t1.south)
{
\tiny
{$
\langle
$
s
os
$
\rangle
$}}
;
}
{
\node
[anchor=north,inner sep=2pt] (wt2) at ([yshift=-0.6em]t2.south)
{
\tiny
{
Have
}}
;
...
...
Book/Chapter6/Figures/figure-the-whole-of-LSTM.tex
查看文件 @
fd5ecce3
...
...
@@ -95,7 +95,7 @@
\draw
[emph]
(aux12) -- (aux22) -- (aux23);
\node
[opnode,circle,draw=red,thick]
() at (aux34)
{$
\sigma
$}
;
\node
[opnode,rectangle,rounded corners=2pt,inner sep=2pt,draw=red,thick]
() at (aux35)
{$
\mathrm
{
tanh
}$}
;
\node
[opnode,circle,draw=red,thick]
(i45) at (aux45)
{
X
}
;
\node
[opnode,circle,draw=red,thick]
(i45) at (aux45)
{}
;
}
{
\node
[opnode,circle]
(i45) at (aux45)
{}
;
...
...
@@ -103,22 +103,22 @@
\draw
[-latex,standard]
(aux21) -- (aux25) -- (u55);
\node
[opnode,circle]
() at (aux34)
{$
\sigma
$}
;
\node
[opnode,rectangle,rounded corners=2pt,inner sep=2pt]
() at (aux35)
{$
\mathrm
{
tanh
}$}
;
\node
[opnode,circle]
(i45) at (aux45)
{
X
}
;
\node
[opnode,circle]
(i45) at (aux45)
{}
;
}
% cell update
{
\draw
[-latex,emph]
(aux51) -- (aux59);
\node
[opnode,circle,draw=red,thick]
(f53) at (aux53)
{
X
}
;
\node
[opnode,circle,draw=red,thick]
(u55) at (aux55)
{
\textbf
{
+
}
}
;
\node
[opnode,circle,draw=red,thick]
(f53) at (aux53)
{}
;
\node
[opnode,circle,draw=red,thick]
(u55) at (aux55)
{}
;
}
{
\draw
[-latex,standard]
(aux51) -- (aux59);
\node
[opnode,circle]
(f53) at (aux53)
{
X
}
;
\node
[opnode,circle]
(u55) at (aux55)
{
\textbf
{
+
}
}
;
\node
[opnode,circle]
(f53) at (aux53)
{}
;
\node
[opnode,circle]
(u55) at (aux55)
{}
;
}
% output gate
{
\node
[opnode,circle,draw=red,thick]
(o27) at (aux27)
{
X
}
;
\node
[opnode,circle,draw=red,thick]
(o27) at (aux27)
{}
;
\draw
[-latex,emph]
(u55) -| (o27);
\draw
[-latex,emph]
(aux21) -- (o27);
\draw
[emph]
(aux12) -- (aux22) -- (aux23);
...
...
@@ -129,7 +129,7 @@
\draw
[-latex,emph]
(o27) -| (aux68);
}
{
\node
[opnode,circle]
(o27) at (aux27)
{
X
}
;
\node
[opnode,circle]
(o27) at (aux27)
{}
;
\draw
[-latex,standard]
(u55) -| (o27);
\draw
[-latex,standard]
(aux21) -- (o27);
\node
[opnode,circle]
() at (aux26)
{$
\sigma
$}
;
...
...
@@ -157,6 +157,16 @@
\node
[draw,very thick,rectangle,fill=blue!10!white,rounded corners=5pt,inner sep=4pt,fit=(aux22) (aux58) (u55) (o27)]
(LSTM)
{}
;
\end{pgfonlayer}
%%new
\draw
[-]
(i45.north west) -- (i45.south east);
\draw
[-]
(i45.north east) -- (i45.south west);
\draw
[-]
(f53.north west) -- (f53.south east);
\draw
[-]
(f53.north east) -- (f53.south west);
\draw
[-,line width=0.8pt] (u55.north) -- (u55.south);
\draw
[-,line width=0.8pt] (u55.west) -- (u55.east);
\draw
[-]
(o27.north west) -- (o27.south east);
\draw
[-]
(o27.north east) -- (o27.south west);
\begin{scope}
{
% forget gate formula
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论