Revert "Don't try to pickle matcher."

This reverts commit 97bd0c9d00.
This commit is contained in:
Matthew Honnibal 2016-10-17 16:49:43 +02:00
parent 97bd0c9d00
commit 2fd97c71cc
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,9 @@ cdef class Matcher:
for spec in specs:
self.add_pattern(entity_key, spec, label=etype)
def __reduce__(self):
return (self.__class__, (self.vocab, self._patterns), None, None)
property n_patterns:
def __get__(self): return self.patterns.size()