Question about copy mechanism implementation
shota3506 opened this issue · 0 comments
shota3506 commented
Thank you for sharing your code!
I have one question about the copy mechanism implementation
As far as I could see, you calculate the final word distribution as:
(1 - p_copy) * log word_dist_from_decoder + p_copy * log word_dist_by_copy
I think the logarithm should be removed.