summaryrefslogtreecommitdiff
path: root/gi/pf/pyp_lm.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-03-10 14:10:04 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2012-03-10 14:10:04 -0500
commit289f96779e665ba24adca3461a624c68aa37bd99 (patch)
tree8de8847d19c897351324461aef66dc318eaa2772 /gi/pf/pyp_lm.cc
parent38f28be7cd2bada87ebad78994e3c938e10c2cce (diff)
do Bayesian inference on quasimodel2 hyperparameters
Diffstat (limited to 'gi/pf/pyp_lm.cc')
-rw-r--r--gi/pf/pyp_lm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pf/pyp_lm.cc b/gi/pf/pyp_lm.cc
index 85635b8f..91029688 100644
--- a/gi/pf/pyp_lm.cc
+++ b/gi/pf/pyp_lm.cc
@@ -113,7 +113,7 @@ template <unsigned N> struct PYPLM {
typename unordered_map<vector<WordID>, CCRP<WordID>, boost::hash<vector<WordID> > >::const_iterator it;
for (it = p.begin(); it != p.end(); ++it)
llh += it->second.log_crp_prob();
- // TODO parametric likelihood from TiedResampler
+ llh += tr.LogLikelihood();
return llh;
}