Skip to content

Question about copy mechanism implementation #15

@shota3506

Description

@shota3506

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions