
\begin{tikzpicture}[scale=0.8,transform shape]

\onslide<1->{
\node [rectangle, minimum height=10mm, minimum width=5mm, text width=7cm] (Doc) at (2.85, -2.5){\justifying \footnotesize
\textbf{Review:}  The first half of the movie was dry but the second half really picked up pace. The lead actor delivered an amazing performance};
}
\onslide<1->{\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (0,1){};
\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (0,-0.5){};
\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0,-1){\footnotesize The};
\draw[->](Aemb)--(A);


}
\onslide<1->{\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B) at ($(A) + (0.7,0)$){};
\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb) at ($(Aemb) + (0.7,0)$){};
\node [rectangle, minimum height=3mm, minimum width=3mm, text width=1cm, align=center] (w2) at ($(w1) + (0.7,0)$){\footnotesize first};
\draw[->](Bemb)--(B);
\draw[->](A)--(B);
}
\onslide<1->{
\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (C) at ($(A) + (1.4,0)$){};
\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (D) at ($(A) + (2.1,0)$){};
\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (E) at ($(A) + (2.8,0)$){};
\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (F) at ($(A) + (3.5,0)$){};

\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Cemb) at ($(Aemb) + (1.4,0)$){};
\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Demb) at ($(Aemb) + (2.1,0)$){};
\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Eemb) at ($(Aemb) + (2.8,0)$){};
\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Femb) at ($(Aemb) + (3.5,0)$){};

\draw[->](Cemb)--(C);
\draw[->](Demb)--(D);
\draw[->](Eemb)--(E);
\draw[->](Femb)--(F);

\draw[->](B)--(C);
\draw[->](C)--(D);
\draw[->](D)--(E);
\draw[->](E)--(F);
\draw[dotted, draw=blue](4,-1.25)--(4,4);


\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w3) at ($(w1) + (1.4,0)$){\footnotesize ...};
\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w4) at ($(w1) + (2.1,0)$){\footnotesize ...};
\node [rectangle, minimum height=3mm, minimum width=3mm, text width=1cm, align=center] (w5) at ($(w1) + (2.8,0)$){\footnotesize ...};
\node [rectangle, minimum height=3mm, minimum width=3mm, text width=1cm, align=center] (w6) at ($(w1) + (3.5,0)$){\footnotesize performance};

}



\onslide<1->{
\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!30, draw=black] (Bd) at ($(A) + (4.5,0)$){};
\node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!100, draw=black] (Bo) at ($(A) + (4.5,1.5)$){};
\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (y1) at (4.5,3.4){\footnotesize $+/-$};
\draw[->](Bd)--(Bo);
\draw[->, dotted](F)--(Bd);


}

%from decoder Cd to attention box
%from Attention box to decode Dd



  %From encoder to Attention box

%Arrows - Sakshee
%Encoder part


%Decoder part



%Dotted separation between encoder and decoder



%From Output to decocder

%

%\bendarrowsdecoder{(Bo)}{(Cd)}
%\bendarrows{(5.9,2.1)}{(6.1,2.1)}{(6.1,1.5)}{(6.1,4.3)}
\end{tikzpicture}
