summaryrefslogtreecommitdiff
path: root/decoder/viterbi.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-08 19:32:26 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-08 19:32:26 +0000
commit2c1cc5f9f2aca7ee5ea1bda9631b5e478edb0ad5 (patch)
tree4735790b434f5d8e0aca428191ae0a8b7c64a072 /decoder/viterbi.cc
parent934ed3602c4226b667a2ff6b66228e897e814ccc (diff)
compile
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@188 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/viterbi.cc')
-rw-r--r--decoder/viterbi.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/viterbi.cc b/decoder/viterbi.cc
index ea0cd95e..f11b77ec 100644
--- a/decoder/viterbi.cc
+++ b/decoder/viterbi.cc
@@ -124,12 +124,12 @@ FeatureVector ViterbiFeatures(Hypergraph const& hg,FeatureWeights const* weights
double fv=r.dot(*weights);
const double EPSILON=1e-5;
if (!close_enough(logp,fv,EPSILON)) {
- complaint="ViterbiFeatures log prob disagrees with features.dot(weights)"+boost::lexical_cast<string>(logp)+"!="+boost::lexical_cast<string>(fv);
+ string complaint="ViterbiFeatures log prob disagrees with features.dot(weights)"+boost::lexical_cast<string>(logp)+"!="+boost::lexical_cast<string>(fv);
if (fatal_dotprod_disagreement)
throw std::runtime_error(complaint);
else
cerr<<complaint<<endl;
-
+ }
}
return r;
}