NLP - Text Generation
What will be the BLEU score output by this code snippet?
from nltk.translate.bleu_score import sentence_bleu, SmoothingFunction reference = [['a', 'quick', 'brown', 'fox']] candidate = ['a', 'fast', 'brown', 'fox'] score = sentence_bleu(reference, candidate, smoothing_function=SmoothingFunction().method1) print(round(score, 2))
