jalammar / ecco

Explain, analyze, and visualize NLP language models. Ecco creates interactive visualizations directly in Jupyter notebooks explaining the behavior of Transformer-based language models (like GPT2, BERT, RoBERTA, T5, and T0).
https://ecco.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.96k stars 167 forks source link

Save vectorized figure #80

Closed jadermcs closed 1 year ago

jadermcs commented 1 year ago

There's a way to save the output of primary_attributes to svg (or pdf)?

jadermcs commented 1 year ago

A hack I found is to copy the output html and generate the svg with:

https://www.hiqpdf.com/demo/ConvertHtmlToSvg.aspx