Skip to content

Commit bfaad05

Browse files
committed
fix ordering of same-span subspans
this can happen easily with discontinuous mentions
1 parent 310e4c2 commit bfaad05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

udapi/core/coref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def __lt__(self, another):
276276
return True
277277
if len(self.words) < len(another.words):
278278
return False
279-
assert False
279+
return self.mention < another.mention
280280
return self.words[0].precedes(another.words[0])
281281

282282
@property

0 commit comments

Comments
 (0)