PyTorch-Beam-Search-Decoding icon indicating copy to clipboard operation
PyTorch-Beam-Search-Decoding copied to clipboard

questions about number_required

Open JuliRao opened this issue 4 years ago • 1 comments

Why do you use 'number_required' in your code? When topk=1, the beam search algorithm only generates one sentence!

JuliRao avatar Jul 29 '19 09:07 JuliRao

If you change topk to a larger number, the algorithm will generate more hypotheses as the number_required variable is dependent on it.

budzianowski avatar Aug 12 '19 20:08 budzianowski