* Fix Span comparison

This commit is contained in:
Matthew Honnibal 2015-11-07 09:54:14 +11:00
parent af70dc166a
commit cc8febcbe1

View File

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