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
855b1b50
Commit
855b1b50
authored
Jan 19, 2021
by
孟霞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
17修改一致
parent
793927d0
全部展开
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
26 行增加
和
25 行删除
+26
-25
Chapter17/Figures/figure-an-end-to-end-voice-translation-model-based-on-transformer.tex
+1
-1
Chapter17/Figures/figure-cache.tex
+2
-2
Chapter17/Figures/figure-multiencoder.tex
+21
-20
Chapter17/Figures/figure-speech-recognition-model-based-on-transformer.tex
+1
-1
Chapter17/Figures/figure-speech-translation-model-based-on-CTC.tex
+1
-1
Chapter17/chapter17.tex
+0
-0
没有找到文件。
Chapter17/Figures/figure-an-end-to-end-voice-translation-model-based-on-transformer.tex
查看文件 @
855b1b50
...
...
@@ -11,7 +11,7 @@
\draw
[thick]
(en
_
add.0) -- (en
_
add.180);
\node
[layer,anchor=north,fill=yellow!20]
(en
_
cnn) at ([yshift=-1.0em]en
_
add.south)
{
CNN
}
;
\node
[anchor=east,font=\scriptsize,align=center]
(en
_
pos) at ([xshift=-2em]en
_
add.west)
{
位置编码
}
;
\node
[anchor=north,font=\scriptsize,align=center]
(en
_
input) at ([yshift=-1em]en
_
cnn.south)
{
源语言语音特征
\\
(FBank/MFCC)
}
;
\node
[anchor=north,font=\scriptsize,align=center]
(en
_
input) at ([yshift=-1em]en
_
cnn.south)
{
源语言语音特征
\\
(FBank/MFCC)
}
;
\draw
[->,thick]
(en
_
input.90) -- ([yshift=-0.1em]en
_
cnn.-90);
\draw
[->,thick]
([yshift=0.1em]en
_
cnn.90) -- ([yshift=-0.1em]en
_
add.-90);
...
...
Chapter17/Figures/figure-cache.tex
查看文件 @
855b1b50
...
...
@@ -13,8 +13,8 @@
\draw
[]
([yshift=-0.5em]value.180) -- ([yshift=-0.5em]value.0);
\draw
[]
([yshift=-1.5em]value.180) -- ([yshift=-1.5em]value.0);
\node
[anchor=south,font=\footnotesize,inner sep=0pt]
at ([yshift=0.1em]key.north)
{
key
}
;
\node
[anchor=south,font=\footnotesize,inner sep=0pt]
at ([yshift=0.
2em]value.north)
{
value
}
;
\node
[anchor=south,font=\footnotesize,inner sep=0pt]
at ([yshift=0.1em]key.north)
{
键
}
;
\node
[anchor=south,font=\footnotesize,inner sep=0pt]
at ([yshift=0.
1em]value.north)
{
值
}
;
\node
[anchor=south,font=\footnotesize,inner sep=0pt]
(cache)at ([yshift=2em,xshift=1.5em]key.north)
{
\small\bfnew
{
缓存
}}
;
\node
[draw,anchor=east,thick,minimum size=1.8em,fill=orange!30]
(dt) at ([yshift=2.1em,xshift=-4em]key.west)
{${
\mathbi
{
d
}}_{
t
}$}
;
...
...
Chapter17/Figures/figure-multiencoder.tex
查看文件 @
855b1b50
\definecolor
{
color1
}{
rgb
}{
1,0.725,0.058
}
\tikzstyle
{
coder
}
= [rectangle,thick,rounded corners,minimum width=2.8cm,minimum height=1.1cm,text centered,draw,fill=blue!30,drop shadow]
\tikzstyle
{
coder
}
= [rectangle,thick,rounded corners,minimum width=2.8cm,minimum height=1.1cm,text centered,draw
=black!
,fill=blue!30,drop shadow]
\tikzstyle
{
attention
}
= [rectangle,thick,rounded corners,minimum width=2.6cm,minimum height=0.9cm,text centered,draw=black,fill=green!30!white,drop shadow]
\begin{tikzpicture}
[node distance = 0,scale = 0.7]
...
...
@@ -8,9 +8,9 @@
\node
(encoder
_
s)[coder, right of = encoder
_
c, xshift=3.5cm, fill=red!30]
{
\large
{
编码器
}}
;
\node
(h
_
pre)[above of = encoder
_
c, yshift=1.3cm,scale=1.3]
{${
\mathbi
{
h
}}^{
\rm
pre
}$}
;
\node
(h)[above of = encoder
_
s, yshift=1.3cm,scale=1.3]
{$
\mathbi
{
h
}$}
;
\node
(cir)[circle,thick, right of = h, draw=black!90,minimum width=0.5cm,xshift=1.1cm]
{}
;
\draw
[-,
thick
]
([xshift=0.04cm]cir.west)--([xshift=-0.04cm]cir.east);
\draw
[-,
thick
]
([yshift=-0.04cm]cir.north)--([yshift=0.04cm]cir.south);
\node
(cir)[circle,
very
thick, right of = h, draw=black!90,minimum width=0.5cm,xshift=1.1cm]
{}
;
\draw
[-,
very thick,draw=black!90
]
([xshift=0.04cm]cir.west)--([xshift=-0.04cm]cir.east);
\draw
[-,
very thick,draw=black!90
]
([yshift=-0.04cm]cir.north)--([yshift=0.04cm]cir.south);
\node
(last)[below of = encoder
_
c, yshift=-1.3cm]
{
\large
{
前一个句子
}}
;
\node
(current)[below of = encoder
_
s, yshift=-1.3cm]
{
\large
{
当前句子
}}
;
\node
(attention
_
left)[attention, above of = encoder
_
c, xshift=2.4cm,yshift=3.1cm]
{
\large
{
注意力机制
}}
;
...
...
@@ -23,20 +23,20 @@
\node
(point
_
above)[above of = attention
_
right, yshift=1.8cm]
{
\Huge
{
...
}}
;
\node
(target
_
above)[above of = attention
_
right, yshift=3.3cm]
{
\large
{
目标语言句子
}}
;
\draw
[->,
thick]
(last)to([yshift=-0.05cm]encoder
_
c.south);
\draw
[->,
thick]
(current)to([yshift=-0.05cm]encoder
_
s.south);
\draw
[->,
thick]
(target.north)to([yshift=-0.05cm]point
_
below.south);
\draw
[->,
thick]
([yshift=0.05cm]encoder
_
c.north)to([yshift=0.03cm]h
_
pre.south);
\draw
[->,
thick]
([yshift=0.05cm]encoder
_
s.north)to(h.south);
\draw
[->,
thick]
([yshift=0cm]h.north)to([yshift=0.95cm]h.north);
\draw
[->,
thick,in=270,out=90]
([yshift=-0.15cm]h
_
pre.north)to([xshift=1.25cm,yshift=0.9cm]h
_
pre.north);
\draw
[->,
thick,in=270,out=80]
([yshift=-0.15cm]h
_
pre.north)to([xshift=2.4cm,yshift=0.9cm]h
_
pre.north);
\draw
[->,
thick]
([yshift=0.03cm]attention
_
left.north)to([yshift=0.1cm]d.south);
\draw
[->,
thick]
([xshift=-0.03cm]h.east)to([xshift=-0.03cm]cir.west);
\draw
[->,
thick]
(point
_
below.north)to([yshift=2.03cm]point
_
below.north);
\draw
[->,
thick]
(attention
_
right.north)to([yshift=-0.03cm]point
_
above.south);
\draw
[->,
thick]
(point
_
above.north)to([yshift=0.83cm]point
_
above.north);
\draw
[->,
thick, in=270,out=0]
([xshift=0.2cm]cir.east)to([xshift=3cm,yshift=0.88cm]cir.east);
\draw
[->,
thick, in=270,out=0]
([xshift=0.2cm]cir.east)to([xshift=2cm,yshift=0.88cm]cir.east);
\draw
[->,thick,]
([xshift=0.1cm]d.east)to([xshift=1.92cm]d.east)to([yshift=0.03cm]cir.north);
\draw
[->,thick]
(last)to([yshift=-0.05cm]encoder
_
c.south);
\draw
[->,thick]
(current)to([yshift=-0.05cm]encoder
_
s.south);
\draw
[->,thick]
(target.north)to([yshift=-0.05cm]point
_
below.south);
\draw
[->,thick]
([yshift=0.05cm]encoder
_
c.north)to([yshift=0.03cm]h
_
pre.south);
\draw
[->,thick]
([yshift=0.05cm]encoder
_
s.north)to(h.south);
\draw
[->,thick]
([yshift=0cm]h.north)to([yshift=0.95cm]h.north);
\draw
[->,thick,in=270,out=90]
([yshift=-0.15cm]h
_
pre.north)to([xshift=1.25cm,yshift=0.9cm]h
_
pre.north);
\draw
[->,thick,in=270,out=80]
([yshift=-0.15cm]h
_
pre.north)to([xshift=2.4cm,yshift=0.9cm]h
_
pre.north);
\draw
[->,thick]
([yshift=0.03cm]attention
_
left.north)to([yshift=0.1cm]d.south);
\draw
[->,thick]
([xshift=-0.03cm]h.east)to([xshift=-0.03cm]cir.west);
\draw
[->,thick]
(point
_
below.north)to([yshift=2.03cm]point
_
below.north);
\draw
[->,thick]
(attention
_
right.north)to([yshift=-0.03cm]point
_
above.south);
\draw
[->,thick]
(point
_
above.north)to([yshift=0.83cm]point
_
above.north);
\draw
[->,thick, in=270,out=0]
([xshift=0.2cm]cir.east)to([xshift=3cm,yshift=0.88cm]cir.east);
\draw
[->,thick, in=270,out=0]
([xshift=0.2cm]cir.east)to([xshift=2cm,yshift=0.88cm]cir.east);
\draw
[->,
very
thick,]
([xshift=0.1cm]d.east)to([xshift=1.92cm]d.east)to([yshift=0.03cm]cir.north);
\end{tikzpicture}
\ No newline at end of file
Chapter17/Figures/figure-speech-recognition-model-based-on-transformer.tex
查看文件 @
855b1b50
...
...
@@ -11,7 +11,7 @@
\draw
[thick]
(en
_
add.0) -- (en
_
add.180);
\node
[layer,anchor=north,fill=yellow!20]
(en
_
cnn) at ([yshift=-1.0em]en
_
add.south)
{
CNN
}
;
\node
[anchor=east,font=\scriptsize,align=center]
(en
_
pos) at ([xshift=-2em]en
_
add.west)
{
位置编码
}
;
\node
[anchor=north,font=\scriptsize,align=center]
(en
_
input) at ([yshift=-1em]en
_
cnn.south)
{
语音特征
\\
(FBank/MFCC)
}
;
\node
[anchor=north,font=\scriptsize,align=center]
(en
_
input) at ([yshift=-1em]en
_
cnn.south)
{
语音特征
\\
(FBank/MFCC)
}
;
\draw
[->,thick]
(en
_
input.90) -- ([yshift=-0.1em]en
_
cnn.-90);
\draw
[->,thick]
([yshift=0.1em]en
_
cnn.90) -- ([yshift=-0.1em]en
_
add.-90);
...
...
Chapter17/Figures/figure-speech-translation-model-based-on-CTC.tex
查看文件 @
855b1b50
...
...
@@ -12,7 +12,7 @@
\draw
[thick]
(en
_
add.0) -- (en
_
add.180);
\node
[layer,anchor=north,fill=yellow!20]
(en
_
cnn) at ([yshift=-1.0em]en
_
add.south)
{
CNN
}
;
\node
[anchor=east,font=\scriptsize,align=center]
(en
_
pos) at ([xshift=-2em]en
_
add.west)
{
位置编码
}
;
\node
[anchor=north,font=\scriptsize,align=center]
(en
_
input) at ([yshift=-1em]en
_
cnn.south)
{
源语言语音特征
\\
(FBank/MFCC)
}
;
\node
[anchor=north,font=\scriptsize,align=center]
(en
_
input) at ([yshift=-1em]en
_
cnn.south)
{
源语言语音特征
\\
(FBank/MFCC)
}
;
\draw
[->,thick]
(en
_
input.90) -- ([yshift=-0.1em]en
_
cnn.-90);
\draw
[->,thick]
([yshift=0.1em]en
_
cnn.90) -- ([yshift=-0.1em]en
_
add.-90);
...
...
Chapter17/chapter17.tex
查看文件 @
855b1b50
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论