From ed889db5eeb035c0ce8b1fca997c94ca6484afbf Mon Sep 17 00:00:00 2001 From: Source-Shen <82353723+Source-Shen@users.noreply.github.com> Date: Tue, 5 Jul 2022 17:09:29 +0800 Subject: [PATCH] Removal of formatting changes --- spacy/matcher/matcher.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/matcher/matcher.pyx b/spacy/matcher/matcher.pyx index fce15c1f3..135bd7831 100644 --- a/spacy/matcher/matcher.pyx +++ b/spacy/matcher/matcher.pyx @@ -587,6 +587,7 @@ cdef void finish_states(vector[MatchC]& matches, vector[PatternStateC]& states, else: state.pattern += 1 + cdef action_t get_action(PatternStateC state, const TokenC* token, const attr_t* extra_attrs, const int8_t* predicate_matches) nogil: @@ -861,7 +862,7 @@ cdef TokenPatternC* init_pattern(Pool mem, attr_t entity_id, object token_specs) pattern[i].attrs[j].attr = attr pattern[i].attrs[j].value = value if len(extensions) > 0: - pattern[i].extra_attrs = em.alloc(len(extensions), sizeof(IndexValueC)) + pattern[i].extra_attrs = mem.alloc(len(extensions), sizeof(IndexValueC)) for j, (index, value) in enumerate(extensions): pattern[i].extra_attrs[j].index = index pattern[i].extra_attrs[j].value = value