Generator
\[D={xi,yi}Ni=1xi={xi1,⋯,xim} and yi={yi0,yi1,⋯,yin},where y0=<BOS> and yn=<EOS>.\]generator
\[ˆyt=softmax(hdect⋅Wgen),where hdect∈Rbatch_size×1×hidden_size and Wgen∈Rhidden_size×|V|.\]from decoder,
\[hdect=RNNdec(embdec(ˆyt−1),hdect−1),where hdec0=hencm.\]