spaCy/spacy/displacy
Joachim Fainberg 4e1716223c
displaCy: Avoid increasing levels for identical arcs (#10639)
* Test for arc levels for identical arcs

Also moves the test in order with the other numbered tests.

* displaCy: filter identical arcs

Avoid increased levels due to identical arcs by first
filtering any identical arcs.

* Sort keys before filtering

Manual entry with keys out of order would previously become
different tuples and therefore not filtered correctly.

Co-authored-by: Joachim Fainberg <joachimfainberg@Joachims-MBP.lan>
2022-04-14 16:48:00 +02:00
..
__init__.py Add displacy support for overlapping Spans (#10332) 2022-03-16 18:14:34 +01:00
render.py displaCy: Avoid increasing levels for identical arcs (#10639) 2022-04-14 16:48:00 +02:00
templates.py Add displacy support for overlapping Spans (#10332) 2022-03-16 18:14:34 +01:00