takes input and output both as sequence (for machine transaltion)

why seq2seq is difficult?

  1. input sentence (eng) of variable length
  2. output sentence(hindi) of variable length
  3. we have studied to handle these variable length only for input in (lstm and gru’s)

encoder decoder came to solve this variable length problem.

image.png

Training the arch using backpropagation

encoder → context vector → decoder

Screenshot 2025-09-15 205536.png

this is what inside encoder(a set of lstm cell)

mostly used are lstm and gru’s

(used to produce timestamp)