mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-11 17:56:30 +03:00
Fix beam parsing
This commit is contained in:
parent
4bd6a12b1f
commit
0795857dcb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user