From cc8febcbe1179fca6d481ee1c6df6b9d0fb25b02 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 7 Nov 2015 09:54:14 +1100 Subject: [PATCH] * Fix Span comparison --- spacy/tokens/span.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/span.pyx b/spacy/tokens/span.pyx index 6033c9d5f..3e872139d 100644 --- a/spacy/tokens/span.pyx +++ b/spacy/tokens/span.pyx @@ -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: