Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

han.show_word_attention() does add up to 1 #2

Open
MalteHB opened this issue Jan 13, 2020 · 0 comments
Open

han.show_word_attention() does add up to 1 #2

MalteHB opened this issue Jan 13, 2020 · 0 comments

Comments

@MalteHB
Copy link

MalteHB commented Jan 13, 2020

I have tried to implement your functions, and i really do like your work. However, i find that when using the han.show_word_attention() function the attention weights does not add up to 1. How i have understood it, it should have because it is just supposed to be the softmax probabilities for the attention for each word. Do you know how i might fix this?
Best Regards
Malte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant