mirror of https://github.com/explosion/spaCy.git
Add __contains__ to PhraseMatcher
This commit is contained in:
parent
50ad50f96a
commit
7123139b2b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue