I am trying to draw the encoder–decoder architecture of the ACL'16 tutorial in TikZ (pp. 15 of the linked PDF).
However, I am absolutely lost as to how to
- Make things "flow" along the same line vertically, and
- Adjust the sizes of the trapeziums and the rectangle in the middle.
Some of the stuff I've tried:
\begin{tikzpicture}
\node[trapezium, draw, rotate=270] (encoder) {Encoder};
\node[left=of encoder.center] (input) {Input text};
\draw[->] (input) -- (encoder);
\node[rectangle, draw, right=of encoder.center] {\begin{tabular}{S}-0.2 \\ -0.1 \\ 0.1 \\ 0.4 \\ -0.3 \\ 1.1\end{tabular}};
\end{tikzpicture}
I would say it is an OK-ish way to go, but I do not know how to align the side of the trapezium to that of the rectangle, and I think that the way I'm centering things vertically is cumbersome.
Best Answer
Hope this helps
The output
The code