From 9de218b7ba1f5b12d6e528d5a94567f3d732f7fc Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 8 Aug 2015 23:45:18 +0200 Subject: [PATCH] * Fix Parser.partial function --- spacy/syntax/parser.pyx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index a45f17339..c9e1b0412 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -96,11 +96,6 @@ cdef class Parser: for action_name in initial_actions: action = self.moves.lookup_transition(action_name) action.do(stcls, action.label) - - cdef Example eg = Example(self.model.n_classes, CONTEXT_SIZE, - self.model.n_feats, self.model.n_feats) - with nogil: - self.parse(stcls, eg.c) tokens.set_parse(stcls._sent) return stcls