Transformer icon indicating copy to clipboard operation
Transformer copied to clipboard

What is argument 'k' in translate.py?

Open shubhamsrivast4u opened this issue 1 year ago • 1 comments

Does this variable 'k' relates with any other variable when we trained, e.g. 'max_len' variable in test is 'max_strlen' in training.

shubhamsrivast4u avatar Mar 20 '23 07:03 shubhamsrivast4u

k is the beam width of the beam search.

congson1293 avatar Oct 10 '23 02:10 congson1293