mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +03:00
Fix beam parsing
This commit is contained in:
parent
4bd6a12b1f
commit
0795857dcb
|
@ -370,6 +370,7 @@ cdef class Parser:
|
||||||
docs = list(docs)
|
docs = list(docs)
|
||||||
if beam_width == 1:
|
if beam_width == 1:
|
||||||
parse_states = self.parse_batch(docs)
|
parse_states = self.parse_batch(docs)
|
||||||
|
beams = []
|
||||||
else:
|
else:
|
||||||
beams = self.beam_parse(docs,
|
beams = self.beam_parse(docs,
|
||||||
beam_width=beam_width, beam_density=beam_density)
|
beam_width=beam_width, beam_density=beam_density)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user