batch save displaCy SVGs #11875
Unanswered
maddeldad
asked this question in
Help: Coding & Implementations
Replies: 1 comment 5 replies
-
If I do this:
Then I can open that SVG file in Chrome without issue. What code are you generating your SVG files with, and what browser are you using? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking at some tweet text data using spaCy. I would like to try some visualization experiments with displaCy image outputs.
a simple case:
I would like batch of list of tweet texts into displaCy SVG diagrams, then potentially explore aligning/averaging those images as layers, just to see what kinds of interesting things emerge. perhaps some tic of language, some phrase or phrase structure, stands out visually under the right conditions.
for this purpose, it might be helpful first to textually align POS or other tags, DNA-style. I think I can wrangle that part, but with the images I am having trouble getting a single SVG to save. When I try to view the SVG output in a browsers, I see this message: "This XML file does not appear to have any style information associated with it. The document tree is shown below."
I am using this method and can see the SVG in by notebook, but not in the save file:
https://stackoverflow.com/questions/56181929/save-spacy-render-file-as-svg-using-displacy
Beta Was this translation helpful? Give feedback.
All reactions