Closed haoyangz closed 6 years ago
Thanks for the comment. It would probably better to just do this:
original_sentence = <start> i want to fly <eos>
enc_input = <start> i want to fly <eos> = original_sentence
dec_input = <start> i want to fly <eos> = original_sentence
dec_target = i want to fly <eos> <pad>
Fixed in 6f763ad
This line seems to assume that the text between sos and eos is always long enough such that there is no padding at the end of the sentence. Why?