Ejemplo n.º 1
0
 def __init__(self, counts_pkl_fname, score_attr="freq_score", oov_count=0):
     Scorer.__init__(self, score_attr)
     self.counts_pkl_fname = counts_pkl_fname
     self.oov_count = oov_count
Ejemplo n.º 2
0
 def __init__(self, ref_fname, score_attr):
     Scorer.__init__(self, score_attr)
     self.ref_fname = ref_fname
Ejemplo n.º 3
0
 def __init__(self, score_attr="rand_score"):
     Scorer.__init__(self, score_attr)
Ejemplo n.º 4
0
 def __init__(self, base_score_attrs, score_attr="best_score"):
     Scorer.__init__(self, score_attr)
     self.base_score_attrs = base_score_attrs