mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-19 20:52:23 +03:00
Fix bug in crossing span detection
This commit is contained in:
parent
23344857b9
commit
4f377d8de8
|
@ -181,7 +181,7 @@ def select_non_crossing_spans(
|
|||
if end > max_end:
|
||||
start_to_max_end[start] = end
|
||||
min_start = end_to_min_start.get(end, -1)
|
||||
if start == -1 or start < min_start:
|
||||
if min_start == -1 or start < min_start:
|
||||
end_to_min_start[end] = start
|
||||
|
||||
# sort idxs by order in doc
|
||||
|
|
Loading…
Reference in New Issue
Block a user