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