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
NiuTrans
Toy-MT-Introduction
Commits
9dfb9915
Commit
9dfb9915
authored
Mar 30, 2020
by
曹润柘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update chapter6 figure
parent
b9cc76d0
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
22 行删除
+22
-22
Book/Chapter6/Figures/figure-numbers-of-WMT-systems.tex
+10
-10
Book/Chapter6/Figures/figure-score-of-mTER.tex
+11
-11
Book/Chapter6/Figures/figure-softmax.tex
+1
-1
没有找到文件。
Book/Chapter6/Figures/figure-numbers-of-WMT-systems.tex
查看文件 @
9dfb9915
...
...
@@ -13,33 +13,33 @@
\node
[font=\scriptsize]
at (0,4)
{
20
}
;
% 2015
\node
[minimum width=0.5cm,thick,minimum height=7*0.2cm,
draw,
fill=blue!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(smt2015) at (1.5*0.7,0.5pt)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=2*0.2cm,
draw,
fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2015) at (smt2015.south east)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=7*0.2cm,fill=blue!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(smt2015) at (1.5*0.7,0.5pt)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=2*0.2cm,fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2015) at (smt2015.south east)
{}
;
\node
[font=\scriptsize,anchor=north]
() at ([yshift=-0.2em]smt2015.south east)
{
2015
}
;
% 2016
\node
[minimum width=0.5cm,thick,minimum height=3*0.2cm,
draw,
fill=blue!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(smt2016) at (
$
(
nmt
2015
.south east
)+(
0
.
7
,
0
)
$
)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=8*0.2cm,
draw,
fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2016) at (smt2016.south east)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=3*0.2cm,fill=blue!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(smt2016) at (
$
(
nmt
2015
.south east
)+(
0
.
7
,
0
)
$
)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=8*0.2cm,fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2016) at (smt2016.south east)
{}
;
\node
[font=\scriptsize,anchor=north]
() at ([yshift=-0.2em]smt2016.south east)
{
2016
}
;
% 2017
\node
[minimum width=0.5cm,thick,minimum height=3*0.2cm,
draw,
fill=blue!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(smt2017) at (
$
(
nmt
2016
.south east
)+(
0
.
7
,
0
)
$
)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=13*0.2cm,
draw,
fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2017) at (smt2017.south east)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=3*0.2cm,fill=blue!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(smt2017) at (
$
(
nmt
2016
.south east
)+(
0
.
7
,
0
)
$
)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=13*0.2cm,fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2017) at (smt2017.south east)
{}
;
\node
[font=\scriptsize,anchor=north]
() at ([yshift=-0.2em]smt2017.south east)
{
2017
}
;
% 2018
\node
[minimum width=0.5cm,thick,minimum height=0cm,draw,fill=blue!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(smt2018) at (
$
(
nmt
2017
.south east
)+(
0
.
7
,
0
)
$
)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=14*0.2cm,
draw,
fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2018) at (smt2018.south east)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=14*0.2cm,fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2018) at (smt2018.south east)
{}
;
\node
[font=\scriptsize,anchor=north]
() at ([yshift=-0.2em]smt2018.south east)
{
2018
}
;
% 2019
\node
[minimum width=0.5cm,thick,minimum height=0cm,draw,fill=blue!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(smt2019) at (
$
(
nmt
2018
.south east
)+(
0
.
7
,
0
)
$
)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=21*0.2cm,
draw,
fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2019) at (smt2019.south east)
{}
;
\node
[minimum width=0.5cm,thick,minimum height=21*0.2cm,fill=red!30!white,inner sep=0pt,outer sep=0pt,anchor=south west]
(nmt2019) at (smt2019.south east)
{}
;
\node
[font=\scriptsize,anchor=north]
() at ([yshift=-0.2em]smt2019.south east)
{
2019
}
;
\end{scope}
% legend
\ExtractX
{$
(
nmt
2015
.west
)
$}
\ExtractY
{$
(
WMT.north
)
$}
\node
[minimum width=0.5cm,rectangle,
draw,
fill=blue!30!white,anchor=north west,label={[label distance=1pt,font=\scriptsize]
0:统计机器翻译
}
] () at (
\XCoord
,
\YCoord
)
{}
;
\node
[minimum width=0.5cm,rectangle,fill=blue!30!white,anchor=north west,label={[label distance=1pt,font=\scriptsize]
0:统计机器翻译
}
] () at (
\XCoord
,
\YCoord
)
{}
;
\ExtractX
{$
(
nmt
2017
.west
)
$}
\node
[minimum width=0.5cm,rectangle,
draw,
fill=red!30!white,anchor=north west,label={[label distance=1pt,font=\scriptsize]
0:神经机器翻译
}
] () at (
\XCoord
,
\YCoord
)
{}
;
\node
[minimum width=0.5cm,rectangle,fill=red!30!white,anchor=north west,label={[label distance=1pt,font=\scriptsize]
0:神经机器翻译
}
] () at (
\XCoord
,
\YCoord
)
{}
;
% \node[font=\normalsize,rotate=90] () at ([xshift=-1em]WMT.west) {数量};
...
...
Book/Chapter6/Figures/figure-score-of-mTER.tex
查看文件 @
9dfb9915
\definecolor
{
ublue
}{
rgb
}{
0.152,0.250,0.545
}
%
\definecolor{ublue}{rgb}{0.152,0.250,0.545}
\begin{tikzpicture}
\begin{axis}
[
width=10cm, height=5cm,
symbolic x coords=
{
1-15,16-25,26-35,>35
}
,
xtick=data,
ytick=
{
10
,12,...,28
}
,
ytick=
{
6
,12,...,28
}
,
xlabel=
{
句子长度(范围)
}
,
ylabel=
{$
\%
$
\footnotesize
{
mTER
}}
,
xlabel style=
{
align=center
}
,
...
...
@@ -14,17 +14,17 @@ y tick style={opacity=0},
x tick label style=
{
font=
\small
}
,
y tick label style=
{
font=
\small
}
,
tick align=inside,
ymajorgrids,
major grid style=
{
draw=ublue,dashed
}
,
%major grid style={draw=blue,dashed},
legend pos=outer north east,
legend style=
{
anchor=north west,yshift=-1cm
}
,
ymin=10,
%legend style={anchor=north west,yshift=-1cm},
legend style=
{
yshift=-4.5em,xshift=-6em,legend cell align=left,legend plot pos=right
}
,
ymin=6,
ymax=28]
\addplot
[sharp plot,very thick,
red!6
0,mark=diamond*] coordinates
{
(1-15,11.3) (16-25,16.4) (26-35,17) (>35,19.8)
}
;
\addplot
[sharp plot,very thick,
purple!60
,mark=triangle*] coordinates
{
(1-15,14.4) (16-25,22.6) (26-35,23.8) (>35,25.9)
}
;
\addplot
[sharp plot,very thick,
green
!60,mark=square*] coordinates
{
(1-15,14.9) (16-25,23.7) (26-35,24.7) (>35,26.4)
}
;
\addplot
[sharp plot,very thick,
blue!60
,mark=*] coordinates
{
(1-15,17.5) (16-25,24) (26-35,25) (>35,27)
}
;
\legend
{
\
scriptsize
{
NMT
}
,
\scriptsize
{
SPB
}
,
\scriptsize
{
HPB
}
,
\scriptsize
{
PBSY
}}
\addplot
[sharp plot,very thick,
black!7
0,mark=diamond*] coordinates
{
(1-15,11.3) (16-25,16.4) (26-35,17) (>35,19.8)
}
;
\addplot
[sharp plot,very thick,
teal
,mark=triangle*] coordinates
{
(1-15,14.4) (16-25,22.6) (26-35,23.8) (>35,25.9)
}
;
\addplot
[sharp plot,very thick,
darkgray
!60,mark=square*] coordinates
{
(1-15,14.9) (16-25,23.7) (26-35,24.7) (>35,26.4)
}
;
\addplot
[sharp plot,very thick,
ublue
,mark=*] coordinates
{
(1-15,17.5) (16-25,24) (26-35,25) (>35,27)
}
;
\legend
{
\
tiny
{
NMT
}
,
\tiny
{
SPB
}
,
\tiny
{
HPB
}
,
\tiny
{
PBSY
}}
\end{axis}
\end{tikzpicture}
...
...
Book/Chapter6/Figures/figure-softmax.tex
查看文件 @
9dfb9915
...
...
@@ -18,7 +18,7 @@
xmax=6,
ymin=0,
ymax=1]
\addplot
[draw=ublue,thick]
{
(tanh(x/2) + 1)/2
}
;
\addplot
[draw=ublue,
very
thick]
{
(tanh(x/2) + 1)/2
}
;
\end{axis}
\end{tikzpicture}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论