From eb0a8931eb835d8a23c939ef61867a08c19ebf6b Mon Sep 17 00:00:00 2001 From: graehl Date: Tue, 20 Jul 2010 00:11:45 +0000 Subject: Score::TimesEquals for vlad-mira, intrusive refcount for Score, shared_ptr compile fixes for decoder progs git-svn-id: https://ws10smt.googlecode.com/svn/trunk@331 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/scorer.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'vest/scorer.cc') diff --git a/vest/scorer.cc b/vest/scorer.cc index 86894c32..05269a3b 100644 --- a/vest/scorer.cc +++ b/vest/scorer.cc @@ -28,6 +28,10 @@ using namespace std; const bool minimize_segments = true; // if adjacent segments have equal scores, merge them +void Score::TimesEquals(float scale) { + cerr<<"UNIMPLEMENTED except for BLEU (for MIRA): Score::TimesEquals"<(delta); correct_ngram_hit_counts = correct_ngram_hit_counts + (d.correct_ngram_hit_counts * scale); -- cgit v1.2.3