From 97bd0c9d00a6480a46ba64a5b8b40cc0b2074644 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 17 Oct 2016 16:38:40 +0200 Subject: [PATCH] Don't try to pickle matcher. --- spacy/matcher.pyx | 3 --- 1 file changed, 3 deletions(-) diff --git a/spacy/matcher.pyx b/spacy/matcher.pyx index 98772e271..7575d4648 100644 --- a/spacy/matcher.pyx +++ b/spacy/matcher.pyx @@ -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()