spaCy/spacy/displacy
Ines Montani 02fc73ca53
💫 Create random IDs for SVGs to prevent ID clashes (#2927)
Resolves #2924.

## Description
Fixes problem where multiple visualizations in Jupyter notebooks would have clashing arc IDs, resulting in weirdly positioned arc labels. Generating a random ID prefix so even identical parses won't receive the same IDs for consistency (even if effect of ID clash isn't noticable here.)

### Types of change
bug fix

## Checklist
<!--- Before you submit the PR, go over this checklist and make sure you can
tick off all the boxes. [] -> [x] -->
- [x] I have submitted the spaCy Contributor Agreement.
- [x] I ran the tests, and all new and existing tests passed.
- [x] My changes don't require a change to the documentation, or if they do, I've added all required information.
2018-11-15 11:40:10 +01:00
..
__init__.py Accept Span to displacy render (#2478) (closes #2477) 2018-06-25 14:55:16 +02:00
render.py 💫 Create random IDs for SVGs to prevent ID clashes (#2927) 2018-11-15 11:40:10 +01:00
templates.py Add letter spacing to arrow label 2017-06-03 13:25:41 +02:00