Fix bug that caused deprojectivisation to run multiple times

This commit is contained in:
Matthew Honnibal 2018-09-14 12:12:54 +02:00
parent 445b81ce3f
commit f32b52e611

View File

@ -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)