mirror of https://github.com/explosion/spaCy.git
Don't try to pickle matcher.
This commit is contained in:
parent
dbe60644ab
commit
97bd0c9d00
|
@ -194,9 +194,6 @@ 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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue