Fix PhraseMatcher.__contains__

This commit is contained in:
Matthew Honnibal 2017-09-26 08:35:53 -05:00
parent d02a41a8c9
commit 19c7c09bf7
1 changed files with 3 additions and 3 deletions

View File

@ -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):