The reason for breaking the BLEU computation into three phases cook_refs(), cook_test(), and score_cooked() is to allow the caller to calculate BLEU scores for multiple test sets as efficiently as possible.
The reason for breaking the BLEU computation into three phases cook_refs(), cook_test(), and score_cooked() is to allow the caller to calculate BLEU scores for multiple test sets as efficiently as possible.
"""
"""
importsys,math,re,xml.sax.saxutils
importsubprocess
importos
# Added to bypass NIST-style pre-processing of hyp and ref files -- wade
# Added to bypass NIST-style pre-processing of hyp and ref files -- wade