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
46bb2778
Commit
46bb2778
authored
Nov 03, 2020
by
zengxin
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'zengxin' 到 'caorunzhe'
chapter10 查看合并请求
!337
parents
05532531
89467f90
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
Chapter10/Figures/figure-3-base-problom-of-p.tex
+3
-3
Chapter10/Figures/figure-calculation-process-of-context-vector-c.tex
+4
-4
Chapter10/Figures/mt-history.png
+0
-0
Chapter10/chapter10.tex
+0
-0
没有找到文件。
Chapter10/Figures/figure-3-base-problom-of-p.tex
查看文件 @
46bb2778
...
...
@@ -81,7 +81,7 @@
{
\node
[anchor=north west] (line11) at ([yshift=-1.8em]line4.west)
{
\scriptsize
{
每个词的one-hot
}}
;
\node
[anchor=north west] (line12) at ([yshift=0.3em]line11.south west)
{
\scriptsize
{
离散化表示都被转化为
}}
;
\node
[anchor=north west] (line12) at ([yshift=0.3em]line11.south west)
{
\scriptsize
{
离散化表示都被转化为
\ \ \ \
}}
;
\node
[anchor=north west] (line13) at ([yshift=0.3em]line12.south west)
{
\scriptsize
{
实数向量,即词嵌入
}}
;
\node
[anchor=north west] (line14) at ([yshift=0.3em]line13.south west)
{
\scriptsize
{
(
$
e
_
x
()
$
和
$
e
_
y
()
$
函数)
}}
;
}
...
...
@@ -95,13 +95,13 @@
\begin{pgfonlayer}
{
background
}
{
\node
[rectangle,inner sep=0.2em,rounded corners=1pt,fill=red!10,drop shadow,draw=red] [fit = (line1) (line2) (line3) (line4)] (box1)
{}
;
\node
[rectangle,inner sep=0.2em,rounded corners=1pt,fill=red!10,drop shadow,draw=red
,minimum width =9em
] [fit = (line1) (line2) (line3) (line4)] (box1)
{}
;
\node
[rectangle,inner sep=0.2em,rounded corners=1pt,very thick,dotted,draw=red] [fit = (softmax1) (softmax2) (softmax3)] (box4)
{}
;
\draw
[->,dotted,very thick,red] ([yshift=1em,xshift=2.5em]box1.east) -- ([yshift=1em,xshift=0.1em]box1.east);
}
{
\node
[rectangle,inner sep=0.2em,rounded corners=1pt,fill=green!10,drop shadow,draw=ugreen] [fit = (line11) (line12) (line13) (line14)] (box2)
{}
;
\node
[rectangle,inner sep=0.2em,rounded corners=1pt,fill=green!10,drop shadow,draw=ugreen
,minimum width =9em
] [fit = (line11) (line12) (line13) (line14)] (box2)
{}
;
\node
[rectangle,inner sep=0.2em,rounded corners=1pt,very thick,dotted,draw=ugreen] [fit = (eemb1) (eemb2) (eemb3)] (box5)
{}
;
\node
[rectangle,inner sep=0.2em,rounded corners=1pt,very thick,dotted,draw=ugreen] [fit = (demb1) (demb2) (demb3)] (box6)
{}
;
\draw
[->,dotted,very thick,ugreen] ([yshift=-1.3em,xshift=2.5em]box2.east) -- ([yshift=-1.3em,xshift=0.1em]box2.east);
...
...
Chapter10/Figures/figure-calculation-process-of-context-vector-c.tex
查看文件 @
46bb2778
...
...
@@ -39,19 +39,19 @@
\node
[anchor=north] (enc42) at ([yshift=0.5em]enc4.south)
{
\scriptsize
{
(位置
$
4
$
)
}}
;
{
\node
[anchor=west] (math1) at ([xshift=5em,yshift=1em]th2.east)
{$
\vectorn
{
C
}_
j
=
\sum
_{
i
}
\alpha
_{
i,j
}
\vectorn
{
h
}_
i
\ \
$
}
;
\node
[anchor=west] (math1) at ([xshift=5em,yshift=1em]th2.east)
{$
\vectorn
{
C
}_
j
=
\sum
_{
i
}
\alpha
_{
i,j
}
\vectorn
{
h
}_
i
$
\ \ \ \
}
;
}
{
\node
[anchor=north west] (math2) at ([yshift=-2em]math1.south west)
{$
\alpha
_{
i,j
}
=
\frac
{
\exp
(
\beta
_{
i,j
}
)
}{
\sum
_{
i'
}
\exp
(
\beta
_{
i',j
}
)
}$}
;
\node
[anchor=north west] (math2) at ([yshift=-2em
,xshift=-0.2em
]math1.south west)
{$
\alpha
_{
i,j
}
=
\frac
{
\exp
(
\beta
_{
i,j
}
)
}{
\sum
_{
i'
}
\exp
(
\beta
_{
i',j
}
)
}$}
;
\node
[anchor=north west] (math3) at ([yshift=-0em]math2.south west)
{$
\beta
_{
i,j
}
=
a
(
\vectorn
{
s
}_{
j
-
1
}
,
\vectorn
{
h
}_
i
)
$}
;
}
\begin{pgfonlayer}
{
background
}
{
\node
[rectangle,inner sep=0.4em,rounded corners=1pt,fill=blue!10,drop shadow] [fit = (math1)] (box1)
{}
;
\node
[rectangle,inner sep=0.4em,rounded corners=1pt,fill=blue!10,drop shadow
,minimum width=9.5em
] [fit = (math1)] (box1)
{}
;
}
{
\node
[rectangle,inner sep=0.4em,rounded corners=1pt,fill=orange!10,drop shadow] [fit = (math2) (math3)] (box2)
{}
;
\node
[rectangle,inner sep=0.4em,rounded corners=1pt,fill=orange!10,drop shadow
,minimum width=9.5em
] [fit = (math2) (math3)] (box2)
{}
;
}
\end{pgfonlayer}
...
...
Chapter10/Figures/mt-history.png
查看文件 @
46bb2778
170 KB
|
W:
|
H:
176 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Chapter10/chapter10.tex
查看文件 @
46bb2778
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论