Fix beam parsing

This commit is contained in:
Matthew Honnibal 2017-09-23 02:59:18 +02:00
parent 4bd6a12b1f
commit 0795857dcb

View File

@ -370,6 +370,7 @@ cdef class Parser:
docs = list(docs)
if beam_width == 1:
parse_states = self.parse_batch(docs)
beams = []
else:
beams = self.beam_parse(docs,
beam_width=beam_width, beam_density=beam_density)