Transformer icon indicating copy to clipboard operation
Transformer copied to clipboard

Code bug in Beam.py with line 76-78

Open afarmer2005 opened this issue 2 years ago • 1 comments

i = vec[0] if sentence_lengths[i]==0: # First end symbol has not been found yet sentence_lengths[i] = vec[1] # Position of first end symbol

the above index i should be replaced by another j index.

afarmer2005 avatar Oct 03 '22 15:10 afarmer2005

Sorry, I don't see what you mean. Could you be more specific

ASIA0703 avatar Apr 16 '23 15:04 ASIA0703