def sentence_bleu(references, hypothesis, weights=(0.25, 0.25, 0.25, 0.25), smoothing_function=None, auto_reweigh=False):
 return corpus_bleu([references], [hypothesis], weights, smoothing_function, auto_reweigh)

def sentence_bleu ( references , hypothesis , weights = ( 0.25 , 0.25 , 0.25 , 0.25 ) , smoothing_function = None , auto_reweigh = False ) : return corpus_bleu ( [ references ] , [ hypothesis ] , weights , smoothing_function , auto_reweigh )
calculate bleu score from papineni .