为什么scarebleu
句子需要以点结尾?如果我删除点,则该值为零。
import sacrebleu, nltk
sys = ["This is cat."]
refs = [["This is a cat."],
["This is a bad cat."]]
b3 = sacrebleu.corpus_bleu(sys, refs)
print("b3", b3.score)
print("b3", round(b3.score,2))
这将返回以下内容:
b3 35.1862973998119
b3 35.19
当我删除结束点时。
sys = ["This is cat"]
refs = [["This is a cat"],
["This is a bad cat"]]
b3 = sacrebleu.corpus_bleu(sys, refs)
print("b3", b3.score)
print("b3", round(b3.score,2))
它使用 scarebleu 打印零,这又很奇怪!:
b3 0.0
b3 0.0