mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 18:56:36 +03:00
* Fix Span comparison
This commit is contained in:
parent
af70dc166a
commit
cc8febcbe1
|
@ -37,7 +37,7 @@ cdef class Span:
|
||||||
elif op == 1:
|
elif op == 1:
|
||||||
return self.start_char <= other.start_char
|
return self.start_char <= other.start_char
|
||||||
elif op == 2:
|
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:
|
elif op == 3:
|
||||||
return self.start_char != other.start_char or self.end_char != other.end_char
|
return self.start_char != other.start_char or self.end_char != other.end_char
|
||||||
elif op == 4:
|
elif op == 4:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user