Lets say a sentence in the data set is (1,2,3,4) Then prepare_data function will create: X = (1,2,3) Y = (2,3,4) While predicting 2 and 3 your model can copy them from the input
Lets say a sentence in the data set is (1,2,3,4)
Then prepare_data function will create:
X = (1,2,3)
Y = (2,3,4)
While predicting 2 and 3 your model can copy them from the input