Commit a38a0450 authored by lintangsutawika's avatar lintangsutawika
Browse files

fix naming

parent 1cc2a764
import evaluate
def bleu(predictions, references):
rouge_fn = evaluate.load('bleu')
results = rouge_fn.compute(predictions=predictions, references=references)
return results['bleu']
def bleu(references, predictions):
bleu_fn = evaluate.load('bleu')
return bleu_fn.compute(predictions=predictions, references=references)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment