Add __contains__ to PhraseMatcher

This commit is contained in:
Ines Montani 2017-09-26 13:13:27 +02:00 committed by GitHub
parent 50ad50f96a
commit 7123139b2b
1 changed files with 3 additions and 0 deletions

View File

@ -440,6 +440,9 @@ cdef class PhraseMatcher:
def __len__(self):
raise NotImplementedError
def __contains__(self):
raise NotImplementedError
def __reduce__(self):
return (self.__class__, (self.vocab,), None, None)