mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Fix PhraseMatcher.__contains__
This commit is contained in:
parent
d02a41a8c9
commit
19c7c09bf7
|
@ -436,11 +436,11 @@ 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 __contains__(self):
|
||||
|
||||
def __contains__(self, key):
|
||||
raise NotImplementedError
|
||||
|
||||
def __reduce__(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user