def corpus_ribes(list_of_references, hypotheses, alpha=0.25, beta=0.1):
 corpus_best_ribes = 0.0
 for (references, hypothesis) in zip(list_of_references, hypotheses):
  corpus_best_ribes += sentence_ribes(references, hypothesis, alpha, beta)
 return (corpus_best_ribes / len(hypotheses))

def corpus_ribes ( list_of_references , hypotheses , alpha = 0.25 , beta = 0.1 ) : corpus_best_ribes = 0.0 for ( references , hypothesis ) in zip ( list_of_references , hypotheses ) : corpus_best_ribes += sentence_ribes ( references , hypothesis , alpha , beta ) return ( corpus_best_ribes / len ( hypotheses ) )
this function "calculates ribes for a system output with multiple references .