Spaces:
Runtime error
Runtime error
Delete utils.py
Browse files1234567from nltk.translate.bleu_score import sentence_bleu, SmoothingFunction
def compute_bleu(reference, hypothesis):smoothie = SmoothingFunction().method4ref = [reference.split()]hyp = hypothesis.split()return sentence_bleu(ref, hyp, smoothing_function=smoothie)utils.pyDeleted-7