Update matcher.pyx

This commit is contained in:
Ines Montani 2017-09-26 13:11:17 +02:00 committed by GitHub
parent 842e21de9f
commit 50ad50f96a

View File

@ -437,6 +437,9 @@ cdef class PhraseMatcher:
self.matcher.add('Candidate', None, *abstract_patterns)
self._callbacks = {}
def __len__(self):
raise NotImplementedError
def __reduce__(self):
return (self.__class__, (self.vocab,), None, None)