From 7123139b2bce61f21bcab3f10f179ec235d9ae67 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 26 Sep 2017 13:13:27 +0200 Subject: [PATCH] Add __contains__ to PhraseMatcher --- spacy/matcher.pyx | 3 +++ 1 file changed, 3 insertions(+) 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)