diff --git a/spacy/matcher.pyx b/spacy/matcher.pyx index 84414c255..9d7e66835 100644 --- a/spacy/matcher.pyx +++ b/spacy/matcher.pyx @@ -439,6 +439,9 @@ cdef class PhraseMatcher: def __len__(self): raise NotImplementedError + + def __contains__(self): + raise NotImplementedError def __reduce__(self): return (self.__class__, (self.vocab,), None, None)