diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-10 14:10:04 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-10 14:10:04 -0500 |
commit | 289f96779e665ba24adca3461a624c68aa37bd99 (patch) | |
tree | 8de8847d19c897351324461aef66dc318eaa2772 /gi/pf/pyp_lm.cc | |
parent | 38f28be7cd2bada87ebad78994e3c938e10c2cce (diff) |
do Bayesian inference on quasimodel2 hyperparameters
Diffstat (limited to 'gi/pf/pyp_lm.cc')
-rw-r--r-- | gi/pf/pyp_lm.cc | 2 |
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; } |