Fix bug in crossing span detection

This commit is contained in:
Paul O'Leary McCann 2021-06-28 18:20:33 +09:00
parent 23344857b9
commit 4f377d8de8

View File

@ -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