Seeing n_best predictions while decoding

Hi there,

I wanna see the best n predictions at a spesific time while decoding. I know that we can see n best prediction sentence after decoding as full sentences. But how can i print current best predictions for at a spesific time (with changing coding in beam for instance) at decoding (i.e before the decoding ends)

Thanks in advance.


You could set -max_length to stop the decoding earlier. Is it what you are looking for?