figure-model-training.tex 2 KB
Newer Older
孟霞 committed
1 2 3 4 5
%%%------------------------------------------------------------------------------------------------------------
\begin{tikzpicture}

\begin{scope}

孟霞 committed
6
\node [anchor=west,draw,thick,minimum width=4em,minimum height=1.7em,fill=blue!30] (encoder) at (0,0) {模块};
孟霞 committed
7 8 9
\node [anchor=south,minimum width=4em,minimum height=1.7em] (space) at ([yshift=0.3em]encoder.north) {\footnotesize{目标系统}};

\begin{pgfonlayer}{background}
孟霞 committed
10
\node [rectangle,draw,thick,fill=red!30] [fit = (encoder) (space)] (system) {};
孟霞 committed
11 12 13 14
\end{pgfonlayer}

\node [anchor=north] (data) at ([yshift=-1em]system.south) {\scriptsize{\textbf{目标任务有标注数据}}};
\draw [->,thick] (data.north) -- ([yshift=-0.1em]system.south);
15
\node [anchor=north] (label) at ([yshift=-0em]data.south) {\scriptsize{(a) 标准方法}};
孟霞 committed
16 17 18 19 20

\end{scope}

\begin{scope}[xshift=2.8in]

孟霞 committed
21
\node [anchor=west,draw,dashed,thick,minimum width=4em,minimum height=1.7em,fill=blue!30] (encoder) at (0,0) {模块};
孟霞 committed
22
\node [anchor=south,minimum width=4em,minimum height=1.7em] (space) at ([yshift=0.3em]encoder.north) {\footnotesize{目标系统}};
孟霞 committed
23
\node [anchor=center,draw,thick,minimum width=4em,minimum height=1.7em,fill=green!30] (encoderpre) at ([xshift=-7em]encoder.center) {\footnotesize{语言模型}};
孟霞 committed
24 25 26
\draw [->,thick] (encoderpre.east) -- (encoder.west);

\begin{pgfonlayer}{background}
孟霞 committed
27
\node [rectangle,draw,thick,fill=red!30] [fit = (encoder) (space)] (system) {};
孟霞 committed
28 29 30 31 32 33
\end{pgfonlayer}

\node [anchor=north] (data) at ([yshift=-1em]system.south) {\scriptsize{\textbf{目标任务有标注数据}}};
\draw [->,thick] (data.north) -- ([yshift=-0.1em]system.south);
\node [anchor=north] (data2) at ([yshift=-1em,xshift=-7em]system.south) {\scriptsize{\textbf{大规模无标注数据}}};
\draw [->,thick] (data2.north) -- ([yshift=-0.1em]encoderpre.south);
34
\node [anchor=north] (label) at ([yshift=-0em,xshift=-4em]data.south) {\scriptsize{(b) 预训练 + 微调}};
孟霞 committed
35 36 37 38 39 40

\end{scope}

\end{tikzpicture}
%%%------------------------------------------------------------------------------------------------------------