pointer-generator icon indicating copy to clipboard operation
pointer-generator copied to clipboard

Difference in paper and codes.

Open caoxu915683474 opened this issue 6 years ago • 1 comments

https://github.com/abisee/pointer-generator/blob/a7317f573d01b944c31a76bde7218bcfc890ef6a/attention_decoder.py#L173

Hi, abisee! I am confused about the codes in this line. In your paper, the function is V[s_t, h*_t] + b But in the codes, you use rnn_output instead.

Thanks for your help!

caoxu915683474 avatar Aug 08 '18 08:08 caoxu915683474

It's not a difference actually. The cell output is in fact identical to s_t, which is hidden state of current lstm cell. See https://github.com/abisee/pointer-generator/blob/a7317f573d01b944c31a76bde7218bcfc890ef6a/attention_decoder.py#L152

mmlynarik avatar Aug 18 '23 22:08 mmlynarik