From ad3d56c3baf8cf80802cb93e707d8024fe6b25af Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 29 Apr 2018 15:48:34 +0200 Subject: [PATCH] Fix compile error in matcher --- spacy/matcher.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/matcher.pyx b/spacy/matcher.pyx index e3be3d1db..db48666a3 100644 --- a/spacy/matcher.pyx +++ b/spacy/matcher.pyx @@ -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):