-
Notifications
You must be signed in to change notification settings - Fork 13
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
435 long text does not fit in dashboard explanation image #526
435 long text does not fit in dashboard explanation image #526
Conversation
…ong-text-does-not-fit-in-dashboard-explanation-image
…ong-text-does-not-fit-in-dashboard-explanation-image
…ong-text-does-not-fit-in-dashboard-explanation-image
…ge' of https://github.com/dianna-ai/dianna into 435-long-text-does-not-fit-in-dashboard-explanation-image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks great! Amazing work @laurasootes. Go ahead and merge.
I did have a question: I see that no matter what sentence I give, the highlighting of the words are always in red. Is that intentional? or is there supposed to be some green in there too?
Yes, I've noticed this previously too, for LIME text you do get the range from blue to red, but for RISE text not. This is simply because RISE returns only positive values for the relevances, while LIME returns positive and negative numbers. For text, the highlighting is based on
i.e. positive relevances will always be a shade of red. This is the same in the DIANNA build-in visualisation: On the other hand, for images a blue-to-red heatmap is applied to the returned relances-> the blue-to-red heat map is then based on the range of the given relevances of the image |
Instead of creating an html element, making a screenshot of that, loading the screenshot and plotting that, highlighted text is placed into div elements, stacked word by word next to each other. The output is not an image of a screenshot, but a highlighted text element.
This improves the resolution of the highlighted text output and it prevents long text inputs from being cut off, instead they now continue on the next line (and this adjusts if you change the width of your screen)