(self, beam, cov, beta=0.)
return beta * penalty
NMT coverage re-ranking score from
        "Google's Neural Machine Translation System" :cite:`wu2016google`.
NMT coverage re-ranking score from
        "Google's Neural Machine Translation System" :cite:`wu2016google`.
NMT coverage re - ranking score from Google s Neural Machine Translation System : cite : wu2016google .
def coverage_wu(self, beam, cov, beta=0.):
        """
        NMT coverage re-ranking score from
        "Google's Neural Machine Translation System" :cite:`wu2016google`.
        """
        penalty = -torch.min(cov, cov.clone().fill_(1.0)).log().sum(1)
        return beta * penalty
def coverage_wu ( self , beam , cov , beta = 0. ) : penalty = - torch . min ( cov , cov . clone ( ) . fill_ ( 1.0 ) ) . log ( ) . sum ( 1 ) return beta * penalty