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
单韦乔
Toy-MT-Introduction
Commits
fcb2aa20
Commit
fcb2aa20
authored
Feb 22, 2020
by
xiaotong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixes (section6 slides)
parent
b1a90ac1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
9 行删除
+11
-9
Section06-Neural-Machine-Translation/section06.tex
+11
-9
没有找到文件。
Section06-Neural-Machine-Translation/section06.tex
查看文件 @
fcb2aa20
...
...
@@ -1115,7 +1115,7 @@ NLP问题的隐含结构假设 & 无隐含结构假设,端到端学习 \\
\item
可以重新定义
\\
\vspace
{
-0.8em
}
\begin{displaymath}
\textrm
{
P
}
(y
_
j|
\textbf
{
y
}_{
<j
}
,
\textbf
{
x
}
)
\triangleq
\textrm
{
P
}
(y
_
j|
\textbf
{
s
}_{
j-1
}
,
\textbf
{
C
}
)
\textrm
{
P
}
(y
_
j|
\textbf
{
y
}_{
<j
}
,
\textbf
{
x
}
)
\triangleq
\textrm
{
P
}
(y
_
j|
\textbf
{
s
}_{
j-1
}
,
y
_{
j-1
}
,
\textbf
{
C
}
)
\end{displaymath}
对于上图中的模型,进一步化简为:
\\
...
...
@@ -1124,8 +1124,8 @@ NLP问题的隐含结构假设 & 无隐含结构假设,端到端学习 \\
\begin{displaymath}
\textrm
{
P
}
(y
_
j|
\textbf
{
y
}_{
<j
}
,
\textbf
{
x
}
)
\triangleq
\left\{
\begin{matrix}
\textrm
{
P
}
(y
_
j|
\textbf
{
C
}
)
\ \ \ \
&
j = 1
\\
\textrm
{
P
}
(y
_
j|
\textbf
{
s
}_{
j-1
}
)
&
j > 1
\textrm
{
P
}
(y
_
j|
\textbf
{
C
}
,y
_{
j-1
}
)
\ \ \ \
&
j = 1
\\
\textrm
{
P
}
(y
_
j|
\textbf
{
s
}_{
j-1
}
,y
_{
j-1
}
)
&
j > 1
\end{matrix}
\right
.
\end{displaymath}
...
...
@@ -1224,6 +1224,7 @@ NLP问题的隐含结构假设 & 无隐含结构假设,端到端学习 \\
\coordinate
(start) at (5.8
\base
,0.3
\base
);
\visible
<2->
{
\node
[anchor=south west] (one) at (start)
{
\scriptsize
{$
\begin
{
bmatrix
}
0
\\
0
\\
0
\\
\vdots
\\
0
\\
{
\color
{
ugreen
}
1
}
\\
0
\\
0
\end
{
bmatrix
}$}}
;
\node
[anchor=south west,inner sep=0pt] (T) at ([yshift=-0.5em,xshift=-0.5em]one.north east)
{
\tiny
{
T
}}
;
}
\visible
<3->
{
\node
[draw=ugreen,fill=green!20!white,rounded corners=0.3em,minimum width=3.8cm,minimum height=0.9em,anchor=south west] (emb) at ([shift=
{
(1.25cm,0.8cm)
}
]start)
{}
;
...
...
@@ -2494,12 +2495,13 @@ NLP问题的隐含结构假设 & 无隐含结构假设,端到端学习 \\
\item
对比
\end{itemize}
\vspace
{
-0.5em
}
\begin{center}
{
\
small
{
\
footnotesize
\begin{tabular}
{
l | l
}
引入注意力机制以前
&
引入注意力机制以后
\\
\hline
$
\textrm
{
``Have''
}
=
\argmax
_{
y
}
\textrm
{
P
}
(
y|
0
,
\alert
{
\textbf
{
C
}}
)
$
&
$
\textrm
{
``Have''
}
=
\argmax
_{
y
}
\textrm
{
P
}
(
y|
0
,
\alert
{
\textbf
{
C
}_
1
}
)
$
\\
$
\textrm
{
``you''
}
=
\argmax
_{
y
}
\textrm
{
P
}
(
y|
\textbf
{
s
}_
1
,
\alert
{
\textbf
{
C
}}
)
$
&
$
\textrm
{
``you''
}
=
\argmax
_{
y
}
\textrm
{
P
}
(
y|
\textbf
{
s
}_
1
,
\alert
{
\textbf
{
C
}_
2
}
)
$
$
\textrm
{
``Have''
}
=
\argmax
_{
y
_
1
}
\textrm
{
P
}
(
y
_
1
|
\alert
{
\textbf
{
C
}}
,y
_
0
)
$
&
$
\textrm
{
``Have''
}
=
\argmax
_{
y
_
1
}
\textrm
{
P
}
(
y
_
1
|
0
,
\alert
{
\textbf
{
C
}_
1
}
, y
_
0
)
$
\\
$
\textrm
{
``you''
}
=
\argmax
_{
y
_
2
}
\textrm
{
P
}
(
y
_
2
|
\textbf
{
s
}_
1
, y
_
1
)
$
&
$
\textrm
{
``you''
}
=
\argmax
_{
y
_
2
}
\textrm
{
P
}
(
y
_
2
|
\textbf
{
s
}_
1
,
\alert
{
\textbf
{
C
}_
2
}
,y
_
1
)
$
\end{tabular}
}
\end{center}
...
...
@@ -4160,7 +4162,7 @@ $\textrm{``you''} = \argmax_{y} \textrm{P}(y|\textbf{s}_1, \alert{\textbf{C}})$
\node
[posnode,anchor=north east] (pos2) at ([yshift=-1em]sa2.south east)
{
\tiny
{$
\textbf
{
Postion
}$}}
;
\node
[anchor=north] (outputs) at ([yshift=-3em]sa2.south)
{
\tiny
{$
\textbf
{
解码器输入:
$
<
$
SOS
$
>
$
I am fine
}$}}
;
\node
[anchor=east] (decoder) at ([xshift=-1em,yshift=-1.5em]o1.west)
{
\scriptsize
{
\textbf
{
解码器
}}}
;
\node
[anchor=north] (decoutputs) at ([yshift=1.5em]o1.north)
{
\tiny
{$
\textbf
{
解码器输出: I am fine
$
<
$
EOS
$
>
$
}$}}
;
\node
[anchor=north] (decoutputs) at ([yshift=1.5em]o1.north)
{
\tiny
{$
\textbf
{
解码器输出: I am fine
$
<
$
EOS
$
>
$
}$}}
;
\draw
[->] (sa2.north) -- (res3.south);
\draw
[->] (res3.north) -- (ed1.south);
...
...
@@ -4390,7 +4392,7 @@ PE_{(pos,2i+1)} = cos(pos/10000^{2i/d_{model}})
\node
[posnode,anchor=north east] (pos2) at ([yshift=-1em]sa2.south east)
{
\tiny
{$
\textbf
{
Postion
}$}}
;
\node
[anchor=north] (outputs) at ([yshift=-3em]sa2.south)
{
\tiny
{$
\textbf
{
解码器输入:
$
<
$
SOS
$
>
$
I am fine
}$}}
;
\node
[anchor=east] (decoder) at ([xshift=-1em,yshift=-1.5em]o1.west)
{
\scriptsize
{
\textbf
{
解码器
}}}
;
\node
[anchor=north] (decoutputs) at ([yshift=1.5em]o1.north)
{
\tiny
{$
\textbf
{
解码器输出: I am fine
$
<
$
EOS
$
>
$
}$}}
;
\node
[anchor=north] (decoutputs) at ([yshift=1.5em]o1.north)
{
\tiny
{$
\textbf
{
解码器输出: I am fine
$
<
$
EOS
$
>
$
}$}}
;
\draw
[->] (sa2.north) -- (res3.south);
\draw
[->] (res3.north) -- (ed1.south);
...
...
@@ -4776,7 +4778,7 @@ PE_{(pos,2i+1)} = cos(pos/10000^{2i/d_{model}})
\node
[posnode,anchor=north east] (pos2) at ([yshift=-1em]sa2.south east)
{
\tiny
{$
\textbf
{
Postion
}$}}
;
\node
[anchor=north] (outputs) at ([yshift=-3em]sa2.south)
{
\tiny
{$
\textbf
{
解码器输入:
$
<
$
SOS
$
>
$
I am fine
}$}}
;
\node
[anchor=east] (decoder) at ([xshift=-1em,yshift=-1.5em]o1.west)
{
\scriptsize
{
\textbf
{
解码器
}}}
;
\node
[anchor=north] (decoutputs) at ([yshift=1.5em]o1.north)
{
\tiny
{$
\textbf
{
解码器输出: I am fine
$
<
$
EOS
$
>
$
}$}}
;
\node
[anchor=north] (decoutputs) at ([yshift=1.5em]o1.north)
{
\tiny
{$
\textbf
{
解码器输出: I am fine
$
<
$
EOS
$
>
$
}$}}
;
\draw
[->] (sa2.north) -- (res3.south);
\draw
[->] (res3.north) -- (ed1.south);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论