summaryrefslogtreecommitdiff
path: root/training/cllh_observer.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-10-16 01:42:55 -0400
committerChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-10-16 01:42:55 -0400
commitb98f7e8de2c35937c227236ddb986df4879edb5f (patch)
treee6ebc489593c6c9a7ff08ea75c9e12e6c2c9128c /training/cllh_observer.cc
parent51b5c16c9110999ac573bd3383d7eb0e3f10fc37 (diff)
c++11 compatibility
Diffstat (limited to 'training/cllh_observer.cc')
-rw-r--r--training/cllh_observer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/cllh_observer.cc b/training/cllh_observer.cc
index 58232769..4ec2fa65 100644
--- a/training/cllh_observer.cc
+++ b/training/cllh_observer.cc
@@ -45,7 +45,7 @@ void ConditionalLikelihoodObserver::NotifyAlignmentForest(const SentenceMetadata
cerr << "DIFF. ERR! log_model_z < log_ref_z: " << cur_obj << " " << log_ref_z << endl;
exit(1);
}
- assert(!isnan(log_ref_z));
+ assert(!std::isnan(log_ref_z));
acc_obj += (cur_obj - log_ref_z);
trg_words += smeta.GetReference().size();
}