From 1bb7b4ca714e318ca8de206dca74940cb0114d33 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 31 Mar 2017 13:59:19 +0200 Subject: [PATCH] Add comment --- spacy/syntax/parser.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index 764efea8b..123ae03da 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -257,6 +257,7 @@ cdef class Parser: cdef int parseC(self, TokenC* tokens, int length, int nr_feat) nogil: state = new StateC(tokens, length) # NB: This can change self.moves.n_moves! + # I think this causes memory errors if called by .pipe() self.moves.initialize_state(state) nr_class = self.moves.n_moves