![如何在 LaTex 中绘制以下图表](https://linux22.com/image/406500/%E5%A6%82%E4%BD%95%E5%9C%A8%20LaTex%20%E4%B8%AD%E7%BB%98%E5%88%B6%E4%BB%A5%E4%B8%8B%E5%9B%BE%E8%A1%A8.png)
答案1
欢迎!这是为了给你一个开始。
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[node font=\sffamily,node distance=1ex,
vector/.style={basic,minimum width=0em,inner
ysep=1pt,font=\Huge,text height=1.25em,node contents={\foreach \XX in
{1,...,#1}{\textbullet}}},vector/.default=5,
basic/.style={draw,rounded corners,minimum width=8.5em},
>=stealth,every edge/.append style={thick,->}]
\path[nodes=basic] foreach \X in {1,...,5}
{(\X,0) node(v\X)[rotate=90,vector]}
node[above=2em of v3.east,fill=blue!20](BilSTM) {BilSTM}
node[above=of BilSTM,fill=purple!20](CA) {Chunk Attention}
node[above=of CA,fill=red!20](BN) {Batch Norm}
node[above=2em of BN](v0)[vector=7,fill=gray!60,
label={[align=center,font=\small,minimum width=0em]right:Document\\ Vector}]
node[above=2em of v0,fill=green!20](D) {Defense}
node[above=of D,fill=yellow!20](S) {Softmax}
(v3.east) edge (BilSTM) (BN) edge (v0) (v0) edge (D);
\node[right=1em of v5.south,rotate=90,anchor=north,font=\small] {Chunk Embedding};
\end{tikzpicture}
\end{document}