We typically apply this procedure in the tropical semiring (Viterbi likelihoods), so that only the best rule derivation that generated each translation candidate is taken into account when extracting feature contributions for MERT.
given the alignment transducer L, this could also be performed in the log semiring (marginal likelihoods), taking into account the feature contributions from all rule derivations, for each translation candidate.