Fix compile error in matcher

This commit is contained in:
Matthew Honnibal 2018-04-29 15:48:34 +02:00
parent a8bc947fd4
commit ad3d56c3ba

View File

@ -324,7 +324,8 @@ cdef attr_t get_pattern_key(const TokenPatternC* pattern) nogil:
pattern += 1 pattern += 1
id_attr = pattern[0].attrs[0] id_attr = pattern[0].attrs[0]
if id_attr.attr != ID: 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 return id_attr.value
def _convert_strings(token_specs, string_store): def _convert_strings(token_specs, string_store):