How to apply a right-to-left seq2seq using Paytorch

Dear friends,

How I can apply a right-to-left seq2seq model and a left-to-right seq2seq model using Pytorch for GEC Task.

u can reverse the target sequence .

1 Like

Please example bro :slight_smile:

X = (x1, x2, x3, …, xn), Y=(y1, y2, y3,…ym), ^Y=(ym, …, y3, y2, y1)
seq2seq is left-to-right when u input the (X, Y) ;
seq2seq is right-to-left when u input the (X, ^Y) ;

Thank you bro, I will try this :slight_smile: