-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Small extension for visualize_text function #401
Comments
Hi @heytitle, that is a great suggestion, thank you! We agree on offering the option to show such legend. Thanks! |
Because This is the code I added into
|
Thank you very much @heytitle! You are right, it is implemented in HTML. |
hi everyone, Thanks for the feedback! I'll create a PR soon. |
Summary: Related to #401. The PR adds an option for the user to show the legend for `visualize_text`. <img width="643" alt="image" src="https://user-images.githubusercontent.com/1214890/84386814-45d14780-abf2-11ea-8a5d-6445186597b8.png"> Pull Request resolved: #403 Reviewed By: bilalsal Differential Revision: D22758674 Pulled By: NarineK fbshipit-source-id: e8d3c7b222098a59f249e44b0f503230d1ca177e
Summary: Related to pytorch#401. The PR adds an option for the user to show the legend for `visualize_text`. <img width="643" alt="image" src="https://user-images.githubusercontent.com/1214890/84386814-45d14780-abf2-11ea-8a5d-6445186597b8.png"> Pull Request resolved: pytorch#403 Reviewed By: bilalsal Differential Revision: D22758674 Pulled By: NarineK fbshipit-source-id: e8d3c7b222098a59f249e44b0f503230d1ca177e
Hi,
As a user, it would be great if
visualize_text
can produce legend for me. Although it might be obvious that green is positive and red is for negative attributions, I still think it might be useful to show it explicitly via legend in some context or situation.Here is my prototype for the functionality purposed.
What do you think?
The text was updated successfully, but these errors were encountered: