From 50ad50f96acdd110cdbd4662ca9878dc33e74cea Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 26 Sep 2017 13:11:17 +0200 Subject: [PATCH] Update matcher.pyx --- spacy/matcher.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacy/matcher.pyx b/spacy/matcher.pyx index 5106161a0..84414c255 100644 --- a/spacy/matcher.pyx +++ b/spacy/matcher.pyx @@ -436,6 +436,9 @@ cdef class PhraseMatcher: abstract_patterns.append([{tag: True} for tag in get_bilou(length)]) self.matcher.add('Candidate', None, *abstract_patterns) self._callbacks = {} + + def __len__(self): + raise NotImplementedError def __reduce__(self): return (self.__class__, (self.vocab,), None, None)