mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix Span comparison
This commit is contained in:
parent
af70dc166a
commit
cc8febcbe1
|
@ -37,7 +37,7 @@ cdef class Span:
|
|||
elif op == 1:
|
||||
return self.start_char <= other.start_char
|
||||
elif op == 2:
|
||||
return self.start_char == other.start_idx and self.end_char == other.end_char
|
||||
return self.start_char == other.start_char and self.end_char == other.end_char
|
||||
elif op == 3:
|
||||
return self.start_char != other.start_char or self.end_char != other.end_char
|
||||
elif op == 4:
|
||||
|
|
Loading…
Reference in New Issue
Block a user