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

Capturing attention weights and seeing which words contributed to the classification #36

Open
arunarn2 opened this issue Nov 7, 2018 · 1 comment

Comments

@arunarn2
Copy link

arunarn2 commented Nov 7, 2018

I am not clear on how to actually see which words contributed to a particular classification. I have been able to get the weights from the sentence level attention layer but unclear on how to process this 3D matrix to get information on if the word contributed to the classification.

@vr25
Copy link

vr25 commented Nov 13, 2018

I am not clear what the "sequences" is in the following code to find attention weights:

test_seq = pad_sequences([sequences[index]], maxlen=MAX_SEQUENCE_LENGTH)

Thank you!

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

2 participants