From f32b52e611dacca013d494a6beab37d392dab3d0 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 14 Sep 2018 12:12:54 +0200 Subject: [PATCH] Fix bug that caused deprojectivisation to run multiple times --- spacy/syntax/nn_parser.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spacy/syntax/nn_parser.pyx b/spacy/syntax/nn_parser.pyx index b3d122e75..94b77ba7b 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -321,8 +321,7 @@ cdef class Parser: doc.c[j] = state.c._sent[j] self.moves.finalize_doc(doc) for hook in self.postprocesses: - for doc in docs: - hook(doc) + hook(doc) for beam in beams: _beam_utils.cleanup_beam(beam)