How to calculate Bleu score on every epoch after validation end?

I’ve been try to implement the torchmetrics Bleu_score functionality.

I want the blue score to be calculated and logged after evey epoch after the validation loop is done.

Can anyone help me out on how to do it. The documentation isn’t very clear as of now.