miyyer / scpn

syntactically controlled paraphrase networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about copy mechanism implementation

shota3506 opened this issue · comments

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.