Calculate BLEU scores
参考:How to do calculate all bleu scores during evaluvaion #37
主要是参数的改变,默认计算的是BLEU4的分数,从源码中也可以看出来
# Calculate BLEU-4 scores
bleu4 = corpus_bleu(references, hypotheses)
# weights = (1.0 / 1.0,)
bleu1 = corpus_bleu(references,<
参考:How to do calculate all bleu scores during evaluvaion #37
主要是参数的改变,默认计算的是BLEU4的分数,从源码中也可以看出来
# Calculate BLEU-4 scores
bleu4 = corpus_bleu(references, hypotheses)
# weights = (1.0 / 1.0,)
bleu1 = corpus_bleu(references,<