From 0795857dcbb1f224e7ac3f45208ba1520730a82a Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 23 Sep 2017 02:59:18 +0200 Subject: [PATCH] Fix beam parsing --- spacy/syntax/nn_parser.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/syntax/nn_parser.pyx b/spacy/syntax/nn_parser.pyx index 77f99624a..a56ed35a8 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -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)