bertviz
bertviz copied to clipboard
How do I export vector graphics?
After using bertviz to visualize attention in a notebook, how to export vector pictures that meet the requirements of the paper?
This feature isn't yet available unfortunately, but I hope to add it at some point. Are you using the attention-head view?
Your work is excellent and I would like to thank you for it. Can I save the image I drew with head_view?
Hi @tom68-ll thanks for your kind words, and for the question. Unfortunately we don't support this feature yet. So I believe the best you can do currently is a screen print unfortunately.
I just capture(or print screen) the image and save it
For the head_view we can extract the attention values and draw a own graphic with plt for example and save it as svg.
There is now a branch that adds this feature but the functionality is somewhat limited (e.g. cannot select token prior to downloading image).
+1, needed for writing research papers