mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Fix compile error in matcher
This commit is contained in:
parent
a8bc947fd4
commit
ad3d56c3ba
|
@ -324,7 +324,8 @@ cdef attr_t get_pattern_key(const TokenPatternC* pattern) nogil:
|
|||
pattern += 1
|
||||
id_attr = pattern[0].attrs[0]
|
||||
if id_attr.attr != ID:
|
||||
raise ValueError(Errors.E074.format(attr=ID, bad_attr=id_attr.attr))
|
||||
with gil:
|
||||
raise ValueError(Errors.E074.format(attr=ID, bad_attr=id_attr.attr))
|
||||
return id_attr.value
|
||||
|
||||
def _convert_strings(token_specs, string_store):
|
||||
|
|
Loading…
Reference in New Issue
Block a user