mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Update matcher.pyx
This commit is contained in:
parent
842e21de9f
commit
50ad50f96a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user