mirror of https://github.com/explosion/spaCy.git
Add __contains__ to PhraseMatcher
This commit is contained in:
parent
50ad50f96a
commit
7123139b2b
|
@ -440,6 +440,9 @@ cdef class PhraseMatcher:
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
def __contains__(self):
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
def __reduce__(self):
|
def __reduce__(self):
|
||||||
return (self.__class__, (self.vocab,), None, None)
|
return (self.__class__, (self.vocab,), None, None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue