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
100ff5d1
Commit
100ff5d1
authored
Jan 11, 2021
by
xiaotong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wording (sec 13)
parent
37f6ca40
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
18 行删除
+19
-18
Chapter13/Figures/figure-bpe.tex
+19
-18
Chapter13/chapter13.tex
+0
-0
没有找到文件。
Chapter13/Figures/figure-bpe.tex
查看文件 @
100ff5d1
\begin{tikzpicture}
\tikzstyle
{
tnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=green!5,drop shadow]
\tikzstyle
{
pnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=yellow!5,drop shadow]
\tikzstyle
{
mnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=red!5,drop shadow]
\tikzstyle
{
tnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=green!
1
5,drop shadow]
\tikzstyle
{
pnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=yellow!
1
5,drop shadow]
\tikzstyle
{
mnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=red!
1
5,drop shadow]
\tikzstyle
{
wnode
}
= [inner sep=0em,minimum height=1.5em]
%第一排
...
...
@@ -19,13 +19,13 @@
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=0.7em,draw,ugreen!60,dashed,
very
thick,rounded corners=7pt] [fit = (n1) (n4)] (box1)
{}
;
\node
[rectangle,inner sep=0.7em,draw,ugreen!60,dashed,thick,rounded corners=7pt] [fit = (n1) (n4)] (box1)
{}
;
\end{pgfonlayer}
\node
[anchor=west,align=left,font=
\footnotesize
] (nt1) at ([xshift=0.1em,yshift=0em]n2.east)
{
统计词表和
\\
[0.5ex]
词频
}
;
\node
[anchor=west,align=left,font=
\footnotesize
] (nt2) at ([xshift=0.1em,yshift=1em]n3.east)
{
按字符切分
}
;
\draw
[->,
very
thick,ublue] ([xshift=0em,yshift=0em]n2.east)--([xshift=0em,yshift=0em]n3.west);
\draw
[->,
very
thick,ublue] ([xshift=0em,yshift=0em]n3.east)--([xshift=0em,yshift=0em]n4.west);
\draw
[->,thick,ublue] ([xshift=0em,yshift=0em]n2.east)--([xshift=0em,yshift=0em]n3.west);
\draw
[->,thick,ublue] ([xshift=0em,yshift=0em]n3.east)--([xshift=0em,yshift=0em]n4.west);
%第二排
\node
[anchor=north west,wnode,font=
\large
] (n5) at ([xshift=0em,yshift=-2em]n2.south west)
{
BPE学习
}
;
...
...
@@ -34,7 +34,7 @@
\node
[anchor=north west,align=left,font=
\footnotesize
] (n61) at ([xshift=0.2em,yshift=-0.2em]n6.north west)
{{
\small
词表
}
\\
l/o/w
\\
l/o/w/e/r
\\
n/e/w/e/s/t
\\
w/i/d/e/s/t
\\
$
\ldots
$}
;
\node
[anchor=north east,align=center,font=
\footnotesize
] (n62) at ([xshift=-0.2em,yshift=-0.2em]n6.north east)
{{
\small
频率
}
\\
6
\\
2
\\
6
\\
3
\\
$
\ldots
$}
;
\draw
[->,
very thick,ublue] ([xshift=-0em,yshift=-0em]n4.south) .. controls +(south:4em) and +(north:4em) .. ([xshift=-0
em,yshift=-0em]n6.north);
\draw
[->,
thick,ublue] ([xshift=-0em,yshift=-0em]n4.south) .. controls +(south:4em) and +(north:4em) .. ([xshift=1
em,yshift=-0em]n6.north);
\node
[anchor=west,pnode] (n7) at ([xshift=5em,yshift=0em]n6.east)
{}
;
\node
[anchor=north west,align=left,font=
\footnotesize
] (n71) at ([xshift=0.2em,yshift=-0.2em]n7.north west)
{{
\small
二元组
}
\\
(e,s)
\\
(s,t)
\\
(l,o)
\\
(o,w)
\\
$
\ldots
$}
;
...
...
@@ -45,15 +45,15 @@
\node
[anchor=west,align=left,font=
\footnotesize
] (nt3) at ([xshift=0.1em,yshift=0em]n6.east)
{
统计二元组
\\
[0.5ex]
的频次
}
;
\node
[anchor=west,align=left,font=
\footnotesize
] (nt4) at ([xshift=0em,yshift=-0.4em]n7.east)
{
频次最高的
\\
[0.5ex]
(e,s)加入表
\\
中
}
;
\draw
[->,
very
thick,ublue] ([xshift=0em,yshift=0em]n6.east)--([xshift=0em,yshift=0em]n7.west);
\draw
[->,
very
thick,ublue] ([xshift=0em,yshift=0em]n7.east)--([xshift=0em,yshift=0em]n8.west);
\draw
[->,thick,ublue] ([xshift=0em,yshift=0em]n6.east)--([xshift=0em,yshift=0em]n7.west);
\draw
[->,thick,ublue] ([xshift=0em,yshift=0em]n7.east)--([xshift=0em,yshift=0em]n8.west);
%第三排
\node
[anchor=north,tnode] (n9) at ([xshift=0em,yshift=-2.5em]n6.south)
{}
;
\node
[anchor=north west,align=left,font=
\footnotesize
] (n91) at ([xshift=0.2em,yshift=-0.2em]n9.north west)
{{
\small
词表
}
\\
l/o/w
\\
l/o/w/e/r
\\
n/e/w/
{
\red
es
}
/t
\\
w/i/d/
{
\red
es
}
/t
\\
$
\ldots
$}
;
\node
[anchor=north east,align=center,font=
\footnotesize
] (n92) at ([xshift=-0.2em,yshift=-0.2em]n9.north east)
{{
\small
频率
}
\\
6
\\
2
\\
6
\\
3
\\
$
\ldots
$}
;
\draw
[->,
very thick,ublue] ([xshift=-0em,yshift=-0em]n8.south) .. controls +(south:3em) and +(north:3em) .. ([xshift=-0
em,yshift=-0em]n9.north);
\draw
[->,
thick,ublue] ([xshift=-0em,yshift=-0em]n8.south) .. controls +(south:3em) and +(north:3em) .. ([xshift=1
em,yshift=-0em]n9.north);
\node
[anchor=north west,ublue,font=
\footnotesize
,align=left] (l1) at ([xshift=1em,yshift=-0em]n7.south east)
{
在词表中
\\
[0.8ex]
合并(e,s)
}
;
\node
[anchor=west,pnode] (n10) at ([xshift=5em,yshift=0em]n9.east)
{}
;
...
...
@@ -65,17 +65,17 @@
\node
[anchor=west,align=left,font=
\footnotesize
] (nt5) at ([xshift=0.1em,yshift=0em]n9.east)
{
统计二元组
\\
[0.5ex]
的频次
}
;
\node
[anchor=west,align=left,font=
\footnotesize
] (nt6) at ([xshift=0em,yshift=-0.4em]n10.east)
{
频次最高的
\\
[0.5ex]
(es,t)加入表
\\
中
}
;
\draw
[->,
very
thick,ublue] ([xshift=0em,yshift=0em]n9.east)--([xshift=0em,yshift=0em]n10.west);
\draw
[->,
very
thick,ublue] ([xshift=0em,yshift=0em]n10.east)--([xshift=0em,yshift=0em]n11.west);
\draw
[->,thick,ublue] ([xshift=0em,yshift=0em]n9.east)--([xshift=0em,yshift=0em]n10.west);
\draw
[->,thick,ublue] ([xshift=0em,yshift=0em]n10.east)--([xshift=0em,yshift=0em]n11.west);
%第四排
\node
[anchor=north,ublue] (cd) at ([xshift=0em,yshift=-
1.5
em]n10.south)
{$
\cdots
$}
;
\draw
[->,
very
thick,ublue] ([xshift=-0em,yshift=-0em]n11.south) .. controls +(south:2em) and +(north:2em) .. ([xshift=-0em,yshift=-0em]cd.north);
\node
[anchor=north west,ublue,font=
\footnotesize
,align=left] (l2) at ([xshift=1em,yshift=
0.6
em]n10.south east)
{
在词表中
\\
[0.8ex]
合并(es,t)
}
;
\node
[anchor=north,ublue] (cd) at ([xshift=0em,yshift=-
2.0
em]n10.south)
{$
\cdots
$}
;
\draw
[->,thick,ublue] ([xshift=-0em,yshift=-0em]n11.south) .. controls +(south:2em) and +(north:2em) .. ([xshift=-0em,yshift=-0em]cd.north);
\node
[anchor=north west,ublue,font=
\footnotesize
,align=left] (l2) at ([xshift=1em,yshift=
-1.0
em]n10.south east)
{
在词表中
\\
[0.8ex]
合并(es,t)
}
;
\node
[anchor=east,ublue,align=left,font=
\footnotesize
] (l3) at ([xshift=-0.5em,yshift=0em]cd.west)
{
直至达到设定的符号合
\\
并表大小或无法合并
}
;
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=0.7em,draw,orange!40,dashed,
very
thick,rounded corners=7pt] [fit = (n5) (n8) (l3) (cd)] (box2)
{}
;
\node
[rectangle,inner sep=0.7em,draw,orange!40,dashed,thick,rounded corners=7pt] [fit = (n5) (n8) (l3) (cd)] (box2)
{}
;
\end{pgfonlayer}
%第五排
...
...
@@ -90,9 +90,9 @@
\node
[anchor=south west,wnode,font=
\large
] (n13) at ([xshift=0em,yshift=0.5em]n12.north west)
{
输出符号合并表
}
;
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=0.7em,draw,red!40,dashed,
very
thick,rounded corners=7pt] [fit = (n12) (n13)] (box3)
{}
;
\node
[rectangle,inner sep=0.7em,draw,red!40,dashed,thick,rounded corners=7pt] [fit = (n12) (n13)] (box3)
{}
;
\end{pgfonlayer}
\draw
[->,
very
thick,ublue] ([xshift=0em,yshift=0em]cd.south)--([xshift=0em,yshift=0em]n12.north);
\draw
[->,thick,ublue] ([xshift=0em,yshift=0em]cd.south)--([xshift=0em,yshift=0em]n12.north);
\end{tikzpicture}
\ No newline at end of file
Chapter13/chapter13.tex
查看文件 @
100ff5d1
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论