nlp-tutorial icon indicating copy to clipboard operation
nlp-tutorial copied to clipboard

A questions about decoder in seq2seq-torch

Open acm5656 opened this issue 7 years ago • 1 comments

https://github.com/graykode/nlp-tutorial/blob/6e171b914ed28eb04dc9176916a99e9a996a7951/4-1.Seq2Seq/Seq2Seq-Torch.py#L92 Hi,I‘m a nlp rookie.I want to ask you a question.I read the seq2seq's paper,which use t-1 output as the t input in decoder. Your code in this line use 'SPPPPP' as the decoder input.So,is this way harm to the result? If you see this issues, please answer me in your free time. Although my english is poor, I still want to express my gratitude to you. image

acm5656 avatar Aug 12 '19 10:08 acm5656

Hi,after several years, you must understand the code. So i want to ask you a question. I think the code is different from the paper "Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation". In the paper, the summary of the encoder is used in every cell of the decoder whatever hidden or output. However, I did not see it show in the code. Is that right?

Angry-Echo avatar Feb 22 '23 12:02 Angry-Echo