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

Visualize the attention #9

Closed
saja1994 opened this issue Mar 15, 2019 · 2 comments
Closed

Visualize the attention #9

saja1994 opened this issue Mar 15, 2019 · 2 comments

Comments

@saja1994
Copy link

Hello

Thank you for the implementation. Please, can you help me to visualize the attention weights at each hop as mentioned figures in the original paper?

Regards,

@lpq29743
Copy link
Owner

lpq29743 commented Jun 1, 2019

  1. As mentioned in “Yequan Wang, Minlie Huang, Xiaoyan Zhu, and Li Zhao. 2016. Attention-based lstm for aspect-level sentiment classification. In EMNLP, pages 606–615.”, HEMI (Wankun Deng, Yongbo Wang, Zexian Liu, Han Cheng, and Yu Xue. 2014. Hemi: a toolkit for illustrating heatmaps. PloS one, 9(11):e111988.) was used to visualize the attention.
  2. Actually, I can't find some effective tools to visualize the attention, welcome to share your method if you find some useful tools.

@saja1994
Copy link
Author

saja1994 commented Jun 2, 2019

Thank you. Yes, I have used HEMI to visualize the attention. it's a simple and straightforward program to be used.

@lpq29743 lpq29743 closed this as completed Jun 4, 2019
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