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
3262c694
Commit
3262c694
authored
Nov 20, 2019
by
xiaotong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/liyanyang'
parents
3ed062e9
9c3891b4
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
107 行增加
和
0 行删除
+107
-0
Section06-Neural-Machine-Translation/section06.tex
+107
-0
没有找到文件。
Section06-Neural-Machine-Translation/section06.tex
查看文件 @
3262c694
...
...
@@ -22,6 +22,7 @@
\usepackage
{
esvect
}
\usepackage
{
CJKulem
}
\usepackage
{
booktabs
}
\usepackage
{
amsmath
}
\usepackage
{
tcolorbox
}
\tcbuselibrary
{
skins
}
...
...
@@ -1153,6 +1154,112 @@ NLP问题的隐含结构假设 & 无隐含结构假设,端到端学习 \\
\item
LSTM
\end{itemize}
%%% 图
\begin{center}
\begin{tikzpicture}
\setlength
{
\base
}{
1cm
}
\tikzstyle
{
wordnode
}
= [font=
\normalsize
,align=left]
\tikzstyle
{
auxnode
}
= [inner sep=0pt,outer sep=0pt,opacity=0,draw=red,fill=red,circle,minimum size=3pt]
\tikzstyle
{
opnode
}
= [inner sep=0pt,outer sep=0pt,fill=white,font=
\normalsize
]
\tikzstyle
{
standard
}
= [rounded corners=5pt]
\tikzstyle
{
emph
}
= [rounded corners=5pt,very thick,draw=red]
% Skeleton
\begin{scope}
[every label/.append style=
{
label distance=1pt,font=
\tiny
,inner sep=0pt,opacity=0
}
]
\coordinate
(aux12) at (0,0);
\node
[auxnode,label={-45:12}]
() at (aux12)
{}
;
\coordinate
(aux22) at ([yshift=
\base
]aux12);
\node
[auxnode,label={-45:22}]
() at (aux22)
{}
;
\coordinate
(aux21) at ([xshift=-
\base
]aux22);
\node
[auxnode,label={-45:21}]
() at (aux21)
{}
;
\coordinate
(aux23) at ([xshift=
\base
]aux22);
\node
[auxnode,label={-45:23}]
() at (aux23)
{}
;
\coordinate
(aux24) at ([xshift=
\base
]aux23);
\node
[auxnode,label={-45:24}]
() at (aux24)
{}
;
\coordinate
(aux25) at ([xshift=
\base
]aux24);
\node
[auxnode,label={-45:25}]
() at (aux25)
{}
;
\coordinate
(aux26) at ([xshift=
\base
]aux25);
\node
[auxnode,label={-45:26}]
() at (aux26)
{}
;
\coordinate
(aux27) at ([xshift=
\base
]aux26);
\node
[auxnode,label={-45:27}]
() at (aux27)
{}
;
\coordinate
(aux28) at ([xshift=
\base
]aux27);
\node
[auxnode,label={-45:28}]
() at (aux28)
{}
;
\coordinate
(aux29) at ([xshift=
\base
]aux28);
\node
[auxnode,label={-45:29}]
() at (aux29)
{}
;
\coordinate
(aux33) at ([yshift=
\base
]aux23);
\node
[auxnode,label={-45:33}]
() at (aux33)
{}
;
\coordinate
(aux34) at ([yshift=
\base
]aux24);
\node
[auxnode,label={-45:34}]
() at (aux34)
{}
;
\coordinate
(aux35) at ([yshift=
\base
]aux25);
\node
[auxnode,label={-45:35}]
() at (aux35)
{}
;
\coordinate
(aux37) at ([yshift=
\base
]aux27);
\node
[auxnode,label={-45:37}]
() at (aux37)
{}
;
\coordinate
(aux45) at ([yshift=
\base
]aux35);
\node
[auxnode,label={-45:45}]
() at (aux45)
{}
;
\coordinate
(aux55) at ([yshift=
\base
]aux45);
\node
[auxnode,label={-45:55}]
() at (aux55)
{}
;
\ExtractX
{$
(
aux
21
)
$}
\ExtractY
{$
(
aux
55
)
$}
\coordinate
(aux51) at (
\XCoord
,
\YCoord
);
\node
[auxnode,label={-45:51}]
() at (aux51)
{}
;
\ExtractX
{$
(
aux
23
)
$}
\ExtractY
{$
(
aux
55
)
$}
\coordinate
(aux53) at (
\XCoord
,
\YCoord
);
\node
[auxnode,label={-45:53}]
() at (aux53)
{}
;
\ExtractX
{$
(
aux
28
)
$}
\ExtractY
{$
(
aux
55
)
$}
\coordinate
(aux58) at (
\XCoord
,
\YCoord
);
\node
[auxnode,label={-45:58}]
() at (aux58)
{}
;
\ExtractX
{$
(
aux
29
)
$}
\ExtractY
{$
(
aux
55
)
$}
\coordinate
(aux59) at (
\XCoord
,
\YCoord
);
\node
[auxnode,label={-45:59}]
() at (aux59)
{}
;
\coordinate
(aux68) at ([yshift=
\base
]aux58);
\node
[auxnode,label={-45:68}]
() at (aux68)
{}
;
\end{scope}
\begin{scope}
\node
[opnode]
(f53) at (aux53)
{$
\bigotimes
$}
;
\node
[opnode]
(u55) at (aux55)
{$
\bigoplus
$}
;
% forget gate
\draw
[standard]
(aux21) -- (aux23) -- (aux33);
\draw
[-latex,standard]
(aux12) -- (aux22) -- (aux23) -- (f53);
\node
[opnode]
() at (aux33)
{$
\bigodot
$}
;
% input gate
\node
[opnode]
(i45) at (aux45)
{$
\bigotimes
$}
;
\draw
[-latex,standard]
(aux21) -- (aux24) |- (i45);
\draw
[-latex,standard]
(aux21) -- (aux25) -- (u55);
\node
[opnode]
() at (aux34)
{$
\bigodot
$}
;
\node
[opnode,draw,rectangle,rounded corners=2pt,inner sep=3pt,font=\small]
() at (aux35)
{$
\mathrm
{
tanh
}$}
;
\node
[opnode]
(i45) at (aux45)
{$
\bigotimes
$}
;
% cell update
\draw
[-latex,standard]
(aux51) -- (aux59);
\node
[opnode]
(f53) at (aux53)
{$
\bigotimes
$}
;
\node
[opnode]
(u55) at (aux55)
{$
\bigoplus
$}
;
% output gate
\node
[opnode]
(o27) at (aux27)
{$
\bigotimes
$}
;
\draw
[-latex,standard]
(u55) -| (o27);
\draw
[-latex,standard]
(aux21) -- (o27);
\node
[opnode]
() at (aux26)
{$
\bigodot
$}
;
\node
[opnode,draw,rectangle,rounded corners=2pt,inner sep=3pt,font=\small]
() at (aux37)
{$
\mathrm
{
tanh
}$}
;
\draw
[-latex,standard]
(o27) -- (aux29);
\draw
[-latex,standard]
(o27) -| (aux68);
\end{scope}
\node
[wordnode,anchor=south west]
() at (aux21)
{$
h
_
t
$}
;
\node
[wordnode,anchor=south west]
() at (aux51)
{$
c
_
t
$}
;
\node
[wordnode,anchor=south east]
() at (aux29)
{$
h
_{
t
+
1
}$}
;
\node
[wordnode,anchor=south east]
() at (aux59)
{$
c
_{
t
+
1
}$}
;
\node
[wordnode,anchor=south west]
() at (aux12)
{$
x
_
t
$}
;
\node
[wordnode,anchor=north east]
() at (aux68)
{$
h
_{
t
+
1
}$}
;
\end{tikzpicture}
\end{center}
\end{frame}
%%%------------------------------------------------------------------------------------------------------------
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论