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
50862afd
Commit
50862afd
authored
Nov 09, 2019
by
Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge RNN-MT figure
parent
baf58219
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
25 行增加
和
19 行删除
+25
-19
Section06-Neural-Machine-Translation/section06.tex
+25
-19
没有找到文件。
Section06-Neural-Machine-Translation/section06.tex
查看文件 @
50862afd
...
...
@@ -712,7 +712,7 @@ NLP问题的隐含结构假设 & 无隐含结构假设,端到端学习 \\
\begin{center}
\begin{tikzpicture}
\newlength
{
\base
}
\setlength
{
\base
}{
1
cm
}
\setlength
{
\base
}{
0.9
cm
}
\tikzstyle
{
rnnnode
}
= [rounded corners=1pt,minimum size=0.5
\base
,draw,inner sep=0pt,outer sep=0pt]
\tikzstyle
{
wordnode
}
= [font=
\tiny
]
...
...
@@ -750,22 +750,22 @@ NLP问题的隐含结构假设 & 无隐含结构假设,端到端学习 \\
\node
[wordnode,below=0pt of demb1]
(decwordin)
{$
\langle
$
sos
$
\rangle
$}
;
\ExtractX
{$
(
demb
2
.south
)
$}
\ExtractY
{$
(
decwordin.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
We
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
Do
}
;
\ExtractX
{$
(
demb
3
.south
)
$}
\ExtractY
{$
(
decwordin.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
`re
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
you
}
;
\ExtractX
{$
(
demb
4
.south
)
$}
\ExtractY
{$
(
decwordin.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
interested
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
know
}
;
\ExtractX
{$
(
demb
5
.south
)
$}
\ExtractY
{$
(
decwordin.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
in
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
the
}
;
\ExtractX
{$
(
demb
6
.south
)
$}
\ExtractY
{$
(
decwordin.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
the
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
way
}
;
\ExtractX
{$
(
demb
7
.south
)
$}
\ExtractY
{$
(
decwordin.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
climate
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
to
}
;
\ExtractX
{$
(
demb
8
.south
)
$}
\ExtractY
{$
(
decwordin.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
Beijing
}
;
...
...
@@ -777,44 +777,50 @@ NLP问题的隐含结构假设 & 无隐含结构假设,端到端学习 \\
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
Station
}
;
% Decoder output words
\node
[wordnode,above=0pt of softmax1]
(decwordout)
{
We
}
;
\node
[wordnode,above=0pt of softmax1]
(decwordout)
{
Do
}
;
\ExtractX
{$
(
softmax
2
.north
)
$}
\ExtractY
{$
(
decwordout.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
`re
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
you
}
;
\ExtractX
{$
(
softmax
3
.north
)
$}
\ExtractY
{$
(
decwordout.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
interested
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
know
}
;
\ExtractX
{$
(
softmax
4
.north
)
$}
\ExtractY
{$
(
decwordout.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
in
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
the
}
;
\ExtractX
{$
(
softmax
5
.north
)
$}
\ExtractY
{$
(
decwordout.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
the
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
way
}
;
\ExtractX
{$
(
softmax
6
.north
)
$}
\ExtractY
{$
(
decwordout.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
climate
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
to
}
;
\ExtractX
{$
(
softmax
7
.north
)
$}
\ExtractY
{$
(
decwordout.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
.
}
;
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
Beijing
}
;
\ExtractX
{$
(
softmax
8
.north
)
$}
\ExtractY
{$
(
decwordout.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
Railway
}
;
\ExtractX
{$
(
softmax
9
.north
)
$}
\ExtractY
{$
(
decwordout.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{
Station
}
;
\ExtractX
{$
(
softmax
10
.north
)
$}
\ExtractY
{$
(
decwordout.base
)
$}
\node
[wordnode,anchor=base]
() at (
\XCoord
,
\YCoord
)
{$
\langle
$
eos
$
\rangle
$}
;
% Connections
\draw
[-latex']
(init.east) to (enc1.west);
\foreach
\x
in
{
1,2,...,
8
}
\foreach
\x
in
{
1,2,...,
10
}
\draw
[-latex']
(eemb
\x
) to (enc
\x
);
\foreach
\x
in
{
1,2,...,
8
}
\foreach
\x
in
{
1,2,...,
10
}
\draw
[-latex']
(demb
\x
) to (dec
\x
);
\foreach
\x
in
{
1,2,...,
8
}
\foreach
\x
in
{
1,2,...,
10
}
\draw
[-latex']
(dec
\x
.north) to ([yshift=0.5
\base
]dec
\x
.north);
\foreach
\x
[count=
\y
from 2] in
{
1,2,...,
7
}
\foreach
\x
[count=
\y
from 2] in
{
1,2,...,
9
}
{
\draw
[-latex']
(enc
\x
.east) to (enc
\y
.west);
\draw
[-latex']
(dec
\x
.east) to (dec
\y
.west);
}
\coordinate
(bridge) at ([yshift=-1.2
\base
]demb2);
\draw
[-latex']
(enc
8
.north) .. controls +(north:
\base
) and +(east:1.5
\base
) .. (bridge) .. controls +(west:2.5
\base
) and +(west:0.6
\base
) .. (dec1.west);
\draw
[-latex']
(enc
10
.north) .. controls +(north:
\base
) and +(east:1.5
\base
) .. (bridge) .. controls +(west:2.5
\base
) and +(west:0.6
\base
) .. (dec1.west);
\end{scope}
% legend
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论