From a4cc71054a66fe45e763331b0395dbb1d8d07da5 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sun, 12 Aug 2012 10:36:45 -0400 Subject: new interface --- gi/pf/learn_cfg.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gi/pf/learn_cfg.cc') diff --git a/gi/pf/learn_cfg.cc b/gi/pf/learn_cfg.cc index 44eaa162..1d5126e4 100644 --- a/gi/pf/learn_cfg.cc +++ b/gi/pf/learn_cfg.cc @@ -160,7 +160,7 @@ struct HieroLMModel { p *= q; for (CCRP::const_iterator it = nts[i].begin(); it != nts[i].end(); ++it) { prob_t tp = p0(it->first); - tp.poweq(it->second.table_counts_.size()); + tp.poweq(it->second.num_tables()); p *= tp; } } @@ -169,7 +169,7 @@ struct HieroLMModel { p *= q; for (CCRP::const_iterator it = q0.begin(); it != q0.end(); ++it) { prob_t tp = base(it->first); - tp.poweq(it->second.table_counts_.size()); + tp.poweq(it->second.num_tables()); p *= tp; } } -- cgit v1.2.3