Instead, we define the legitimate range of the sequence by setting minimum and maximum lengths.
in addition to the normal beam search procedure, we set two rules: • If the model generates the EOS tag when the output sequence is shorter than the minimum length, we discard the sequence from the beam.