mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix dropout bug in beam parser
This commit is contained in:
parent
9cc202d670
commit
4b72c38556
|
@ -525,7 +525,7 @@ cdef class Parser:
|
|||
if n_states == 0:
|
||||
break
|
||||
vectors, _ = state2vec.begin_update(token_ids[:n_states], drop)
|
||||
scores, _ = vec2scores(vectors, drop)
|
||||
scores, _ = vec2scores.begin_update(vectors, drop=drop)
|
||||
c_scores = <float*>scores.data
|
||||
for beam in todo:
|
||||
for i in range(beam.size):
|
||||
|
|
Loading…
Reference in New Issue
Block a user