Closed YuanEZhou closed 6 years ago
To remedy the bias towards short sentences during inference by length normalization. The search alone one beam stops once it encounters an END token. Breaking the loop once encountering beam_size END tokens simultaneously.
To remedy the bias towards short sentences during inference by length normalization. The search alone one beam stops once it encounters an END token. Breaking the loop once encountering beam_size END tokens simultaneously.