Generate: better `compute_transition_scores` examples
# What does this PR do?

Adds further notes and details to the examples in `compute_transition_scores`, so it can be used out of the box with encoder-decoder models.

Inspired from the interaction in #21321 
_The documentation is not available anymore as the PR was closed or merged._